Error_messages_for 'a'

hi all,

i have two models in single form and i want to display error messages
both on submission
when i do something like this i get an error

<%= error_messages_for ‘a’ %>
<%= error_messages_for ‘b’ %>

can anyone tell me how can i do something like this

thanks in advance


How about <%= error_messages_for ‘a’, ‘b’ %> ?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs