Titleize SimpleForm Labels

Posted By Weston Ganger

I got annoyed not having all the words capitalized using simple_form. Heres how to titleize them automatically.

Change the line: config.label_text in config/initializers/simple_form.rb

### config/initializers/simple_form.rb
<%= f.input :text, label: "iOS" %>

# label output will be: IOS

Related External Links:

Article Topic:Software Development - Ruby / Rails

Date:October 01, 2015