Module: Phlex::Rails::Helpers::SelectTag
- Extended by:
- Phlex::Rails::HelperMacros
- Defined in:
- lib/phlex/rails/helpers/select_tag.rb
Instance Method Summary collapse
-
#select_tag(name, &block) ⇒ Object
Rails Docs register_output_helper def select_tag(...) = nil.
Methods included from Phlex::Rails::HelperMacros
register_builder_yielding_helper, register_output_helper, register_value_helper
Instance Method Details
#select_tag(name, &block) ⇒ Object
Rails Docs register_output_helper def select_tag(...) = nil
9 10 11 12 13 14 15 16 17 |
# File 'lib/phlex/rails/helpers/select_tag.rb', line 9 def select_tag(name, *, **, &block) output = if block view_context.select_tag(name, capture(&block), *, **) else view_context.select_tag(name, *, **) end raw(output) end |