Errors

Hello guys,

I have a question - I would like to use validation on a form I submit to
the controller, so if (for example) an field is empty, it should add it
to a list of errors, which I can then display beside any form fields for
which that (or any other validation) applies.

Do you know of any good tutorials on the subject or can anyone offer a
sample of controller/view code that utilizes validate(), etc, so I can
see how it is meant to work? Agile Web Dev doesn’t really explain it
clearly in one place I have found,

Thanks a bunch,

Mick

http://api.rubyonrails.org/classes/ActiveRecord/Validations/ClassMethods.html