How do you get a Rails label to use the titelize format so that instead of getting "To date" I would get "To Date"
label_tag 'To Date'
displays 'To date'since Rails defaults to human readable formatting.
How do you get a Rails label to use the titelize format so that instead of getting "To date" I would get "To Date"
label_tag 'To Date'
displays 'To date'since Rails defaults to human readable formatting.
label_tag('to_date', 'To Date', class: 'control-label')
displays 'To Date' with html of:
<label for="to_date">To Date:</label>
[Per the documentation:][1]
label_tag(name = nil, content_or_options = nil, options = nil, &block)