FYI, I was able to have the same styling on the f.button when omitting 'btw' from :class, since 'btn' is one of the default classes the Twitter Bootstrap-powered version of SimpleForm has (defined in config/initializers/simple_form.rb):
products/_form.html.erb
<%= f.submit nil, :class => 'btn-primary'%>
Can leave out 'btn' from :class because its specified here:
config/initializers/simple_form.rb
# Default class for buttons
config.button_class = 'btn'
FYI, I was able to have the same styling on the
f.button
when omitting 'btw' from:class
, since 'btn' is one of the default classes the Twitter Bootstrap-powered version of SimpleForm has (defined inconfig/initializers/simple_form.rb
):<%= f.submit nil, :class => 'btn-primary' %>
Can leave out 'btn' from
:class
because its specified here: