Ahh... good pt.

The thing is, I'm using this with some new jQuery stuff I'm doing
where that code looks for input elements with a class == 'focus'...
Guess I'll have to change that to look for elements *containing* that
class.

But, I'm curious why I dont get the dame thing for text_fields...
there the class just comes out as 'focus'.

Any ideas about that?

On Mar 4, 1:30 am, Gael Muller <[email protected]> wrote:
> 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.

Reply via email to