Class: ActionView::Helpers::FormBuilder
- Inherits:
-
Object
- Object
- ActionView::Helpers::FormBuilder
- Defined in:
- lib/dependent_select/form_helpers.rb
Instance Method Summary collapse
- #dependent_collection_select(method, collection, value_method, text_method, filter_method, options = {}, html_options = {}) ⇒ Object
- #dependent_select(method, choices_with_filter, filter_method, options = {}, html_options = {}) ⇒ Object
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, = {}, = {} ) @template.dependent_collection_select(@object_name, method, collection, value_method, text_method, filter_method, .merge(:object => @object), ) 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, = {}, = {} ) @template.dependent_select(@object_name, method, choices_with_filter, filter_method, .merge(:object => @object), ) end |