- 09 1月, 2010 6 次提交
-
-
由 Lawrence Pit 提交于
Signed-off-by: NEloy Duran <eloy.de.enige@gmail.com>
-
由 Bryan Stearns 提交于
-
由 José Valim 提交于
Mailer should give self as payload because it contains all the information needed (as the template rendered and the mailer name).
-
由 José Valim 提交于
validates :email, :presence => true, :format => /@/ validates :genre, :inclusion => %w(m f) validates :password, :length => 6..20
-
由 José Valim 提交于
Compile length validator options still at the class level, so whenever the validator is called, it just needs to check for :maximum, :minimum and :is values.
-
由 David Heinemeier Hansson 提交于
-
- 08 1月, 2010 18 次提交
-
-
由 David Heinemeier Hansson 提交于
Fixed that fragment caching should return a cache hit as html_safe (or it would all just get escaped) [DHH]
-
由 Mikel Lindsaar 提交于
-
由 Jeremy Kemper 提交于
-
由 Jeremy Kemper 提交于
-
由 Jeremy Kemper 提交于
-
由 Mikel Lindsaar 提交于
Conflicts: actionmailer/actionmailer.gemspec actionmailer/lib/action_mailer/vendor/text-format-0.6.3/text/format.rb
-
由 Mikel Lindsaar 提交于
-
由 Jeremy Kemper 提交于
Restore the connection method which was added so it can be overridden. This reverts commit e428c75d.
-
由 José Valim 提交于
-
由 José Valim 提交于
-
由 Joshua Peek 提交于
-
由 José Valim 提交于
-
由 José Valim 提交于
-
由 José Valim 提交于
-
由 jamie 提交于
class Person < ActiveRecord::Base include MyValidators validates :name, :presence => true, :uniqueness => true, :length => { :maximum => 100 } validates :email, :presence => true, :email => true end [#3058 status:resolved] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
由 Jeffrey Hardy 提交于
-
由 Jeffrey Hardy 提交于
-
由 José Valim 提交于
-
- 07 1月, 2010 16 次提交
-
-
由 José Valim 提交于
This allows the following setup to work: # app/controllers/application_controller.rb class ApplicationController def default_url_options(options=nil) { :locale => I18n.locale } end end # From your views and controllers: I18n.locale #=> :en users_url #=> "/en/users" users_url(:pl) #=> "/pl/users" user_url(1) #=> "/en/users/1" user_url(:pl, 1) #=> "/pl/users/1" user_url(1, :locale => :pl) #=> "/pl/users/1" If you provide all expected parameters, it still works as previously. But if any parameter is missing, it tries to assign all possible ones with the hash returned in default_url_options or the one passed straight to the named route method. Beware that default_url_options in ApplicationController is not shared with ActionMailer, so you are required to always give the locale in your email views.
-
由 José Valim 提交于
Remove duplicated url_for code and move methods shared between ActionMailer and ActionController up to AbstractController.
-
由 José Valim 提交于
-
由 José Valim 提交于
For example, you could easily specify :created_at and :updated_at translations as: en: attributes: created_at: "Created at" updated_at: "Updated at" This configuration is built on ActiveModel, so it means those translations are shared between different ORMs as well (but always as a fallback).
-
由 José Valim 提交于
-
由 José Valim 提交于
-
由 José Valim 提交于
-
由 José Valim 提交于
-
由 José Valim 提交于
-
由 Eloy Duran 提交于
Raise a RecordNotFound if an ID in nested attributes is given but doesn't return a record. [#2415 state:resolved]
-
由 Eloy Duran 提交于
Moved the validation logic to the association reflection and refactored autosave_association.rb a bit.
-
由 Eloy Duran 提交于
-
由 Eloy Duran 提交于
-
由 Eloy Duran 提交于
Don't use strings for callbacks, as these will be evaled. Rather use symbols, which uses a direct method dispatch. Patch by Comron Sattari. [#3429 state:resolved]
-
由 Eloy Duran 提交于
Cleanup some code in nested_attributes.rb, autosave_association.rb, and associations.rb with AssociationReflection#collection_association? Also cache the result value.
-
由 Eloy Duran 提交于
Add AssociationReflection#collection_association? which returns true if it's for a has_many or has_and_belongs_to_many association.
-