Method: Formtastic::Inputs::SelectInput#input_html_options_name

Defined in:
lib/formtastic/inputs/select_input.rb

#input_html_options_nameObject



206
207
208
209
210
211
212
# File 'lib/formtastic/inputs/select_input.rb', line 206

def input_html_options_name
  if builder.options.key?(:index)
    "#{object_name}[#{builder.options[:index]}][#{association_primary_key}]"
  else
    "#{object_name}[#{association_primary_key}]"
  end
end