Thursday, May 13, 2010

[Rails] Re: Overriding <div class="fieldWithErrors">

Dan Harper wrote:
> Ben Munat wrote:
>> Let me guess... inside a td, right?
>>
>> b
>
> Actually no, it was inside a <p>. I was using <p> to group form
> sections together.

Well, you don't have to use error_messages_for (which generated the
<div>) to print your errors, and you don't have to put your <div>
somewhere where it will lead to invalid HTML. <span> is probably
semantically inappropriate.
>
> Dan
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate