http://api.rubyonrails.org/classes/ActiveRecord/Validations.html
http://api.rubyonrails.org/classes/ActiveRecord/Validations/ClassMethods.html
On 4/8/07, Mick
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
> 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
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---