Skip to content

Instantly share code, notes, and snippets.

@julioprotzek
Created October 12, 2013 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save julioprotzek/6953219 to your computer and use it in GitHub Desktop.
Save julioprotzek/6953219 to your computer and use it in GitHub Desktop.
config.wrappers :bootstrap, :tag => 'div', :class => 'form-group', :error_class => 'has-error' do |b|
b.use :html5
b.use :placeholder
b.use :label
b.use :input, :wrap_with => { :tag => 'div', :class => 'controls' }
b.use :error, :wrap_with => { :tag => 'span', :class => 'help-block' }
b.use :hint, :wrap_with => { :tag => 'p', :class => 'help-block' }
end
config.form_class = "form-vertical"
config.input_class = "form-control"
rails g simple_form:install --bootstrap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment