select_tag
Description
select_tag(name, option_tags = nil, options = {})Creates a dropdown selection box, or if the :multiple option is set to true, a multiple choice selection box.
Examples:
Helpers::FormOptions can be used to create common select boxes such as
countries, time zones, or associated records.
option_tags is a string containing the option tags for the select
box:
# Outputs
select_tag "people", ""
Options:
- :multiple - If set to true the selection will allow multiple
choices.
User Contributed Notes add
Helpers::FormOptions can be used to create common select boxes such as countries, time zones, or associated records.
option_tags is a string containing the option tags for the select box:
# Outputs select_tag "people", ""
Options:
- :multiple - If set to true the selection will allow multiple choices.
No comments