I am able to display error messages when a user tries to sign up for
my site but doesnt pass the validations, but I am having trouble
displaying them for another controller in my site. I have included:
<%= error_messages_for ''spec'' %> in my view spec
controller but this
only displays the single message defined in the controller:
flash[:error] = "There was a problem updating."
For my other user controller, when something doesnt pass the
validations I get specific error messages like this:
4 errors prohibited this user from being saved
There were problems with the following fields:
* Username is too short (minimum is 4 characters)
* Password doesn''t match confirmation
* Password is too short (minimum is 4 characters)
* Email is too short (minimum is 5 characters)
Anyone know how to get these? And if so, how do you change the CSS of
these messages?
Thanks so much.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---