Module: TwitterBootstrap::Helpers::FormHelpers
- Defined in:
- lib/twitter_bootstrap-helpers/form_helpers.rb
Instance Method Summary collapse
Instance Method Details
#bootstrap_form_for(record, options = {}, &block) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/twitter_bootstrap-helpers/form_helpers.rb', line 5 def bootstrap_form_for(record, = {}, &block) [:builder] = FormBuilder [:html] = {} unless .has_key? :html [:html][:class] = 'form-horizontal' form_for record, , &block end |