Rails Validation query....

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

There were problems with the following fields:

  • Enter your name
  • Enter your e-mail address
  • So i need to modify the above mention default errors…
    Only i want to display
    "
  • Enter your name
  • Enter your e-mail address
  • "

So please let me know how i can edit…

Thanks n regards
abhi…

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