Hello, thanks for your response.

I'm looking at actionpack-3.0.0.beta3/README and can't find any
mention of this.

Using the example below, is there a way to style the elements
surrounding the invalid input (and not just the input itself)?

I'd like to change the CSS class name, too. Basically I'd like to
customize validation without adding a ton of overhead to the
framework's existing procedures.

On May 13, 11:20 pm, cult hero <[email protected]> wrote:
> Since I have no experience Rails 2, I can't compare the two. However,
> it's pretty easy with Rails 3. You can override the default behavior
> like so:
>
> ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
>   *** YOUR CODE HERE ***
> end

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