form's Label Style modification in rails 4 -
i fresher in ror , in application want form's label initial started capital. aware default takes first word's initial capital not aware how give second word's initial capital. let me clear example...
i tried code label :
= f.label :campaign_title
giving output:
campaign title
expected output:
campaign title #title's initial should capital 't'
if used %label
without form object works don't want that..
here's question..
if want first initial small then? like..
name
instead of name
.. know doesn't make difference know if there trick.. in advance.. :)
try this
<%= f.label :campaign_title, "campaign title" %>
you can pass custom value second parameter of label helper
Comments
Post a Comment