Module: Skyline::FormHelper

Defined in:
app/helpers/skyline/form_helper.rb

Instance Method Summary collapse

Instance Method Details

#skyline_fields_for(record_or_name_or_array, *args, &block) ⇒ Object



10
11
12
13
14
15
16
# File 'app/helpers/skyline/form_helper.rb', line 10

def skyline_fields_for(record_or_name_or_array, *args, &block)
  options = args.extract_options!
  args = [nil] if args == []
  with_custom_field_error_proc do
    self.fields_for(record_or_name_or_array, *(args << options.merge(:builder => Skyline::FormBuilder)), &proc)    
  end    
end

#skyline_form_for(record_or_name_or_array, *args, &proc) ⇒ Object



3
4
5
6
7
8
# File 'app/helpers/skyline/form_helper.rb', line 3

def skyline_form_for(record_or_name_or_array, *args, &proc)
  options = args.extract_options!
  with_custom_field_error_proc do
    self.form_for(record_or_name_or_array, *(args << options.merge(:builder => Skyline::FormBuilder)), &proc)    
  end
end