Forum: Ruby on Rails Errors

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Mick (Guest)
on 2007-04-09 04:11
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,

Chris H. (Guest)
on 2007-04-09 15:20
(Received via mailing list)
This topic is locked and can not be replied to.