Module: ActionView::Helpers::FormHelper
- Defined in:
- lib/foundation_rails_helper_mod/action_view_extension.rb
Instance Method Summary collapse
- #fields_for_with_foundation(record_name, record_object = nil, options = {}, &block) ⇒ Object
- #form_for_with_foundation(record, options = {}, &block) ⇒ Object
Instance Method Details
#fields_for_with_foundation(record_name, record_object = nil, options = {}, &block) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/foundation_rails_helper_mod/action_view_extension.rb', line 11 def fields_for_with_foundation(record_name, record_object = nil, = {}, &block) [:builder] ||= FoundationRailsHelperMod::FormBuilder [:html] ||= {} [:html][:class] ||= 'nice' fields_for_without_foundation(record_name, record_object, , &block) end |
#form_for_with_foundation(record, options = {}, &block) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/foundation_rails_helper_mod/action_view_extension.rb', line 4 def form_for_with_foundation(record, = {}, &block) [:builder] ||= FoundationRailsHelperMod::FormBuilder [:html] ||= {} [:html][:class] ||= 'nice' form_for_without_foundation(record, , &block) end |