How do i access the errors produced by validates_X_of ?
do i need to have the ids of my fields be certain names ?
How do i access the errors produced by validates_X_of ?
do i need to have the ids of my fields be certain names ?
The easiest way to show them is by calling
<%= error_messages_for ‘object-name’ %>
Not sure about the syntax if you wanna customize the error messages.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs