Class: ActionView::Helpers::FormBuilder
- Inherits:
-
Object
- Object
- ActionView::Helpers::FormBuilder
- Defined in:
- lib/nacho/form_builder.rb
Instance Method Summary collapse
-
#nacho_select(method, choices = nil, options = {}, html_options = {}) ⇒ Object
The helper for a FormBuilder class.
Instance Method Details
#nacho_select(method, choices = nil, options = {}, html_options = {}) ⇒ Object
The helper for a FormBuilder class. Will create the select and the needed modal that contains the given form for the target model to create.
A multiple select will generate a button to trigger the modal.
56 57 58 |
# File 'lib/nacho/form_builder.rb', line 56 def nacho_select(method, choices = nil, = {}, = {}) @template.nacho_select(@object_name, method, choices, (), ()) end |