alberto wrote:
> On Feb 5, 1:26�am, Johnroy World <rails-mailing-l...@andreas-s.net>
> 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.

nice one know i know, thanks a lot, your the man.. keep up the good work
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to