Parent

Files

SimpleForm::Inputs::MappingInput

Uses MapType to handle basic input types.

Public Instance Methods

input() click to toggle source
# File lib/simple_form/inputs/mapping_input.rb, line 11
def input
  @builder.send(input_method, attribute_name, input_html_options)
end
input_method() click to toggle source
# File lib/simple_form/inputs/mapping_input.rb, line 15
def input_method
  method = self.class.mappings[input_type]
  raise "Could not find method for #{input_type.inspect}" unless method
  method
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.