search for: password_range

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

Did you mean: password_change
2009 Sep 12
3
Cannot get my password to validate
...assword validation is no longer working. I can get screen_name and email to validate, but for some reason, the password field is ignored... here''s what i have so far: within user.rb file PASSWORD_MIN_LENGTH = 4 PASSWORD_MAX_LENGTH = 40 validates_length_of :password, :within => PASSWORD_RANGE def validate errors.add(:email, "must be valid.") unless email.include?("@") if screen_name.include?(" ") errors.add(:screen_name, "cannot include spaces.") if password.include?(" ") errors.add(:password, "Must be filled...