« Return to Thread: Overriding

Re: Overriding <div class="fieldWithErrors">

by Dan Harper :: Rate this Message:

Reply to Author | View in Thread

Marcel Molina Jr. wrote:
> You can set your own Proc. For example, in your config/environment.rb:
>
> ActionView::Base.field_error_proc = Proc.new {|html_tag, instance|  %(<span class="field-with-errors">#{html_tag}</span>)}
>  
Cool thanks.  That worked a treat.

Dan

_______________________________________________
Rails mailing list
Rails@...
http://lists.rubyonrails.org/mailman/listinfo/rails

 « Return to Thread: Overriding