Module: Skyline::FormHelper
- Defined in:
- app/helpers/skyline/form_helper.rb
Instance Method Summary collapse
- #skyline_fields_for(record_or_name_or_array, *args, &block) ⇒ Object
- #skyline_form_for(record_or_name_or_array, *args, &proc) ⇒ Object
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) = args. args = [nil] if args == [] with_custom_field_error_proc do self.fields_for(record_or_name_or_array, *(args << .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) = args. with_custom_field_error_proc do self.form_for(record_or_name_or_array, *(args << .merge(:builder => Skyline::FormBuilder)), &proc) end end |