Ruby on Rails Tuesday, December 14, 2010

Hi,

What do I have to override in order to be able to have the error message
of each field in front of the input field?

I haven't been able to find anything similar on google. All I've found
is how to override the container around the input field.

ActionView::Base.field_error_proc = Proc.new { |html_tag, instance|
"<span class=\"fieldWithErrors\">#{html_tag}</span>" }

Or in here do we have access of the error message of the current field?

Greg

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

No comments:

Post a Comment