Module: Godmin::Helpers::Forms

Defined in:
lib/godmin/helpers/forms.rb

Instance Method Summary collapse

Instance Method Details

#form_for(record, options = {}, &block) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/godmin/helpers/forms.rb', line 4

def form_for(record, options = {}, &block)
  super(record, {
    url: [*@resource_parents, record],
    builder: FormBuilders::FormBuilder,
    inline_errors: false
  }.merge(options), &block)
end