Forum: Ruby on Rails Errors

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.
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,

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