RailsCasts Pro episodes are now free!

Learn more or hide this

Stuart Montgomery's Profile

GitHub User: stmontgomery

Comments by Stuart Montgomery

Avatar

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'