search for: validations_presence_of

Displaying 1 result from an estimated 1 matches for "validations_presence_of".

2006 Apr 26
1
Possible acts_as_authenticated bug (or rails)
...; :password_required? validates_presence_of :password_confirmation, :if => :password_required? validates_length_of :password, :within => 5..40, :if => :password_required? validates_confirmation_of :password, :if => :password_required? I though the validations_presence_of :password_confirmation was a bit redundant, so I removed it. Unfortunately, that breaks the password_required? method. Here''s how I fixed it: def password_required? logger.debug(''hi'') crypted_password.blank? or not password.blank? end I added a debug statement,...