Michael Pavling wrote:
> 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

Thanks, Michael.

I have tried formtastic and have found it more of a hassle than a help.

Maybe I'm just not seeing the benefits.

- - -

Thanks, Frederick, I'll look at field_error_proc.


-- 
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 [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