Class: MaptasticForm::SemanticFormBuilder

Inherits:
Formtastic::SemanticFormBuilder
  • Object
show all
Defined in:
lib/maptastic-form/semantic_form_builder.rb

Instance Method Summary collapse

Instance Method Details

#multi_input(*args) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/maptastic-form/semantic_form_builder.rb', line 4

def multi_input(*args)
  options = args.extract_options!

  if (options[:as] == :map)
    map_input(args, options)
  else
    args.inject('') {|html, arg| html << input(arg, options)}
  end
end