On Feb 5, 1:26 am, Johnroy World <[email protected]>
wrote:
> error_messages_for :user, :header_message => 'X errors, please find red
> mark', :message => 'Following errors were found:'
@user.errors.full_messages
that will return an array of the text messages. So you can do
@user.errors.full_messages.size and then iterate on them to create
your own error message.
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---