search for: password_max_length

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

2009 Sep 12
3
Cannot get my password to validate
...ng through the railsspace tutorrial, and i''ve noticed that the password 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.includ...