Class: ActionView::Helpers::FormBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/dependent_select/form_helpers.rb

Instance Method Summary collapse

Instance Method Details

#dependent_collection_select(method, collection, value_method, text_method, filter_method, options = {}, html_options = {}) ⇒ Object



525
526
527
528
529
530
531
# File 'lib/dependent_select/form_helpers.rb', line 525

def dependent_collection_select( method, collection, value_method, 
  text_method, filter_method, options = {}, html_options = {}
)
  @template.dependent_collection_select(@object_name, method, collection, 
    value_method, text_method, filter_method,
    options.merge(:object => @object), html_options)
end

#dependent_select(method, choices_with_filter, filter_method, options = {}, html_options = {}) ⇒ Object



518
519
520
521
522
523
# File 'lib/dependent_select/form_helpers.rb', line 518

def dependent_select( method, choices_with_filter, filter_method, 
  options = {}, html_options = {}
)
  @template.dependent_select(@object_name, method, choices_with_filter, 
    filter_method, options.merge(:object => @object), html_options)
end