We would like to use bootstrap span6 in our simple_form. Here is what we are doing now:
<%= simple_form_for(@customer, :html => {:class => 'form-horizontal'}) do |f| %>
<%= f.input :name, :label => t('CompanyName:'), :input_html => { :class => "span6" } %>
<%= f.button :submit, t('Save') , :class => BUTTONS_CLS['action'] %>
<% end %>
The problem is that we need add :input_html => {:class => 'span6'} to each and every f.input and there are quite a lot of simple_forms in our rails app. Is there a way we can assign once span6 and apply it to all simple form in the app? Or we have to go one by one to add the input_html => {} to each f.input.