Forum: Ruby on Rails Combining validation error messages

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3d5f0a89731c8c839a89f996f3f57ee6?d=identicon&s=25 alyoshka (Guest)
on 2008-12-31 09:28
(Received via mailing list)
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 %>
This topic is locked and can not be replied to.