when I'm using the label helper in a form contex, the label is getting downcased. Can I change this behavior?
example:
produce: "Things are getting big" but I want "Things Are Getting Big"
using rails 2.3
See documentation. First parameter for the label
is the name of the field it references, not label's text. If there is no text provided, it uses field's name (localized/humanized)
Your label code produces
<label for="form_record_Things Are Getting Big">Things are getting big</label>
And you possibly need
<label for="form_record_field_name">Things are getting big</label>
You can do that with:
<%= f.label :field_name, "Things Are Getting Big" %>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With