Creative Technologist wrote in post #958582:
> 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>

Read the docs for the label method again, and follow the syntax there. 
You're not specifying the options hash like it expects.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]

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