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