Module: ActionView::Helpers::FormHelper

Defined in:
lib/foundation_rails_helper_mod/action_view_extension.rb

Instance Method Summary collapse

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, options = {}, &block)
  options[:builder] ||= FoundationRailsHelperMod::FormBuilder
  options[:html] ||= {}
  options[:html][:class] ||= 'nice'
  fields_for_without_foundation(record_name, record_object, options, &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, options = {}, &block)
  options[:builder] ||= FoundationRailsHelperMod::FormBuilder
  options[:html] ||= {}
  options[:html][:class] ||= 'nice'
  form_for_without_foundation(record, options, &block)
end