Skip to content

Instantly share code, notes, and snippets.

@royzinn
Created October 28, 2013 15:08
Show Gist options
  • Save royzinn/7198456 to your computer and use it in GitHub Desktop.
Save royzinn/7198456 to your computer and use it in GitHub Desktop.
issue with bootstrap_form (wrong number of arguments (4 for 5))
= bootstrap_form_for(@item, html: { class: 'form-horizontal' }, help: :block) do |f|
= f.alert_message "Please fix the errors below."
= f.text_field :name
= f.text_area :description
= f.number_field :type
= f.number_field :condition
= f.actions do
= f.primary 'Create My Account', disable_with: 'Saving...'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment