Module: YamlFormHelper
- Defined in:
- app/helpers/yaml_form_helper.rb
Instance Method Summary collapse
Instance Method Details
#yaml_form_for(record, type = 'full', form_options = {}, &proc) ⇒ Object
2 3 4 5 6 |
# File 'app/helpers/yaml_form_helper.rb', line 2 def yaml_form_for(record, type = 'full', = {}, &proc) [:html] = {} if ! [:html] [:html].merge!(:class => "yform #{type}") form_for(record, {}, , &proc) end |