On Thu, Mar 4, 2010 at 4:10 AM, lunaclaire <[email protected]> wrote: > here's my view code: > > <%= f.text_area :notes, :cols => 40, :rows => 15, :class => 'focus' %> > > here's what firefox shows is being gen'd: > > <textarea rows="15" name="contact[notes]" id="contact_notes" cols="40" > class="focus text_area"></textarea> > > note that I'm ending up with a class = "focus text_area" instead of > the expected "focus" > > It doesnt look like I'm doing anything wrong, but... am I? >
You are not doing anything wrong, and there is nothing wrong with the piece of code generated by rails. This is only saying that your element as two classes: 'text_area', which is used by rails, and 'focus'. -- Gael Muller -- 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.

