What I want is that I want to show error just below every input fields. For example I have two fields name and description,then it should display error relating to name just below the name input fields and description just below the description input field.
Share
We’ve recently started using
client_side_validations, and it’s pretty nice. You essentially just need to add:validate => trueto your forms:You may need to add some custom JavaScript too. Check out the RailsCast for it too.