<div class="field_with_errors"> tag is created in ActionView::Base
class only in case of any errors.
From Rails code base:-
# Specify the proc used to decorate input tags that refer to
attributes with errors.
cattr_accessor :field_error_proc
@@field_error_proc = Proc.new{ |html_tag, instance| "<div
class=\"field_with_errors\">#{html_tag}</div>".html_safe }
Thanks!
Butu
> --
> 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 rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
....and if I don't want those divs?
For my education, why would you object to them being there?
Colin
.field_with_errors {
display: inline;
}
That should do the trick.
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
--
Posted via http://www.ruby-forum.com/.