Module: AdminFormHelper

Defined in:
app/helpers/admin_form_helper.rb

Defined Under Namespace

Classes: FormBuilderDecorator

Instance Method Summary collapse

Instance Method Details

#admin_form_for(record_or_name_or_array, *args) ⇒ Object

~



232
233
234
235
236
237
238
239
# File 'app/helpers/admin_form_helper.rb', line 232

def admin_form_for(record_or_name_or_array, *args)
  options = args.extract_options!
  options[:builder] ||= FormtasticBootstrap::FormBuilder
  
  semantic_form_for(record_or_name_or_array, *(args << options)) do |f|
    yield(FormBuilderDecorator.new(f))
  end
end