hi,
Based on the validation done in a model, how can I show errors in a
custom manner , eg. instead of showing like :
2 errors prohibited this textbrand from being saved
There were problems with the following fields:
* Textbrand already exists
* Textbrand approved is not numeric.
By using in view :
<%= error_messages_for ‘textbrand’ %>
How can I show messages like :
There were problems with the following fields:
* Textbrand
* Textbrand approved
And in the form next to the textbrand , I want to show ‘already exists’.
and next to approve text field, I want to show ’ is not numeric’.
Any help is greatly appreciated.