instance method
collection_select
Ruby on Rails 3.1.12
Since v2.2.3Signature
collection_select(method, collection, value_method, text_method, options = {}, html_options = {})
No documentation comment.
Parameters
-
methodreq -
collectionreq -
value_methodreq -
text_methodreq -
optionsopt = {} -
html_optionsopt = {}
Source
# File actionpack/lib/action_view/helpers/form_options_helper.rb, line 613
def collection_select(method, collection, value_method, text_method, options = {}, html_options = {})
@template.collection_select(@object_name, method, collection, value_method, text_method, objectify_options(options), @default_options.merge(html_options))
end
Defined in actionpack/lib/action_view/helpers/form_options_helper.rb line 613
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Helpers::FormBuilder