Forum: Ruby on Rails validates_* requirements

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F15fdc7cb2e911b3808837f2be244add?d=identicon&s=25 straightflush (Guest)
on 2005-11-27 00:42
(Received via mailing list)
Hello,

 I have the following in my user.rb model:

-----------------------
validates_numericality_of :zipcode, :message => "<font color='red'> =>
ZipCode must be a number</font>"

validates_length_of :zipcode, :minimum => 5, :message => "<font
color='red'> => Please enter a zip code at least 5 numbers in
length</font>"

validates_uniqueness_of :email, :message => "<font color='red'> =>
Email address already taken, please choose another</font>"

validates_uniqueness_of :username, :message => "<font color='red'> =>
Username already taken, please choose another</font>"

validates_length_of :password, :minimum => 5, :message => "<font
color='red'> => Password Can Not Be Blank</font>"

validates_confirmation_of :password, :message =>"Passwords do not match
"
-----------------------------

However, the password length and confirmation just dont work.  Are
there any specific requirements that would prevent this from working ?

thanks
adam
This topic is locked and can not be replied to.