I used Ryan Bates' Railscasts episodes 73-75 to build forms with
dynamic added models in complex forms. Everything works great, but
displaying validation errors are a big mess since it displays it's own
box for each individual error, including an error for each invalid
child record in the parent box.

How can I group the errors to display in one box for all the
dynamically added models and the main model?
I found this solution, but it doesn't really work for dynamically
added models and looks super ugly if you try to use it with Ryan Bates
style forms:

<%= error_messages_for :every, :single, :model %>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to