hi everyone here i go again, i have problem we error message validation here is the sample of my code:
error_messages_for :user, :header_message => 'X errors, please find red mark', :message => 'Following errors were found:' the problem is that how where going to get the value "X errors" or the number of errors if they have when the is submitted. I like the idea of the default error message that have a counter of errors like for example "2 errors prohibited this user from being saved". My purpose is to make my own error message but the idea of displaying the number of errors is my problem. Please help me on how to do it. Thank you in advance.... -- 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 -~----------~----~----~----~------~----~------~--~---