method
to_collection_select_tag
rails latest stable - Class:
ActionView::Helpers::InstanceTag
to_collection_select_tag(collection, value_method, text_method, options, html_options)public
No documentation available.
# File actionpack/lib/action_view/helpers/form_options_helper.rb, line 597
def to_collection_select_tag(collection, value_method, text_method, options, html_options)
selected_value = options.has_key?(:selected) ? options[:selected] : value(object)
select_content_tag(
options_from_collection_for_select(collection, value_method, text_method, :selected => selected_value, :disabled => options[:disabled]), options, html_options
)
end