How to display validation error in layout?


#1

Hi, for now I have to put error_messages_for in every form off my app to
display validation errors.
I would prefer putting an error div into the layout of the app, which
would display both flash notice and validation errors accordingly for
every view of the app.

How can I retrieve all the errors message pending and not only the one
for a specific object instance ?

Thanks