Module: MongoidForm::Helpers::FormHelper

Defined in:
lib/mongoid_form/helpers/form_helper.rb

Instance Method Summary collapse

Instance Method Details

#input(name, *args) ⇒ Object



10
11
12
13
# File 'lib/mongoid_form/helpers/form_helper.rb', line 10

def input(name, *args)
  type, options = get_options(args)
  factory type, name, options
end

#localized(name, *args) ⇒ Object



5
6
7
8
# File 'lib/mongoid_form/helpers/form_helper.rb', line 5

def localized(name, *args)
  type, options = get_options(args)
  localized_fields(name) { |lf| @template.concat wrap_localized_fields(lf, type, options) }
end