Module: NitroKit::SelectHelper
- Defined in:
- app/helpers/nitro_kit/select_helper.rb
Instance Method Summary collapse
Instance Method Details
#nk_select(compat_object_name = nil, compat_method = nil, options = nil, compat_options = {}, value: nil, include_blank: false, prompt: nil, index: nil, **attrs, &block) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'app/helpers/nitro_kit/select_helper.rb', line 5 def nk_select( compat_object_name = nil, compat_method = nil, = nil, = {}, value: nil, include_blank: false, prompt: nil, index: nil, **attrs, &block ) name = field_name(compat_object_name, compat_method) # TODO: support index render(Select.from_template(, value:, include_blank:, prompt:, name:, **, **attrs), &block) end |