Hey Richard, Just use
<%= f.text_field :name, :class => "label" %> On Mon, Nov 1, 2010 at 6:15 PM, Creative Technologist < [email protected]> wrote: > Hi, > > Could anyone tell me what I'm doing wrong below when trying to apply a > style to the following label and text field > > <div class="group"> > <%= f.label :name, :html => {:class => "label"} %> > <%= f.text_field :name, :html => {:class => "label"} %> > </div> > > Doesn't work at all, the form however picks up the right style when I > use this code ... > > <% form_for [:admin, @organisation], :html => {:class => "form"} do | > f| %> > > Thanks in advance! > > Richie. > > -- > 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]<rubyonrails-talk%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- - Adão Raul + (11) 6967.3198 + http://dowcore.me + メガマンのウェブ開発者 -- 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.

