On 19 February 2010 16:14, Ralph Shnelvar <[email protected]> wrote:
> I want to hook the validation routines so that I can flag html labels
> and change their color to better indicate which fields need to be
> corrected in a form.
>
> Is there a way to do this conveniently and/or conventionally?

you can interrogate the model errors to see what fields are invalid,
but it's easier to use a plugin that someone else has already done the
same thing in. I've recently used Formtastic to generate forms and the
resultant helpful, highlighted errors.
http://github.com/justinfrench/formtastic

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to