Forum: Ruby on Rails validates_* requirements

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
straightflush (Guest)
on 2005-11-27 01:42
(Received via mailing list)

 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

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 ?

This topic is locked and can not be replied to.