Hello.
I''m following the example in the Advanced Rails Recipes book for
Keeping
Forms DRY and Flexible - #22.
I think the last little hurdle that I have is applying my CSS style to
the field labels.
This is in the partial for displaying the field
<p>
<span class="field_label">
<%= label %>
</span>
<span class="form_field">
<%= element %>
</span>
</p>
I want to stylize the class field_label.
When I view the html, it looks like this:
<span class="field_label">
<label for="order_customer_id">Customer</label>
</span>
My thought is that the label for breaks the CSS style.
The code that generates the html is this:
:label => label(field, options[:label])
Any ideas on how I can apply my CSS style?
Thanks!
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---