instance method
date_select
Ruby on Rails 7.0.10
Since v2.2.3Signature
date_select(method, options = {}, html_options = {})
Wraps ActionView::Helpers::DateHelper#date_select for form builders:
<%= form_for @person do |f| %> <%= f.date_select :birth_date %> <%= f.submit %> <% end %>
Please refer to the documentation of the base helper for details.
Parameters
-
methodreq -
optionsopt = {} -
html_optionsopt = {}
Source
# File actionview/lib/action_view/helpers/date_helper.rb, line 1239
def date_select(method, options = {}, html_options = {})
@template.date_select(@object_name, method, objectify_options(options), html_options)
end
Defined in actionview/lib/action_view/helpers/date_helper.rb line 1239
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Helpers::FormBuilder