method
render
rails latest stable - Class:
ActionView::Helpers::Tags::Select
render()public
No documentation available.
# File actionview/lib/action_view/helpers/tags/select.rb, line 19
def render
option_tags_options = {
selected: @options.fetch(:selected) { value.nil? ? "" : value },
disabled: @options[:disabled]
}
option_tags = if grouped_choices?
grouped_options_for_select(@choices, option_tags_options)
else
options_for_select(@choices, option_tags_options)
end
select_content_tag(option_tags, @options, @html_options)
end