On 2 Sep 2008, at 10:54, Abhishek shukla wrote:
> Hello Friend,
> Need a help...
> Whenever i am doing rails validation its give me an output at
>
> 3 errors prohibited this customer from being saved</h2><p>There
were
> problems with the following fields:</p><ul><li>Enter your
name </
> li><li>Enter your e-mail address</li>
>
> So i need to modify the above mention default errors....
>
> Only i want to display
> "<li>Enter your name </li><li>Enter your e-mail
address</li>"
>
> So please let me know how i can edit....
If you want to customise the layout of error messages and stuff like
that your best bet is to stop using error_messages_for and write your
own replacement (it''s not hard. look at the source for
error_messages_for and fiddle with @your_object.errors.full_messages)
Fred
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---