Method: ActionView::Helpers::FormBuilder#date_select

Defined in:
actionview/lib/action_view/helpers/date_helper.rb

#date_select(method, options = {}, html_options = {}) ⇒ Object

Wraps ActionView::Helpers::DateHelper#date_select for form builders:

<%= form_with model: @person do |f| %>
  <%= f.date_select :birth_date %>
  <%= f.submit %>
<% end %>

Please refer to the documentation of the base helper for details.



1237
1238
1239
# File 'actionview/lib/action_view/helpers/date_helper.rb', line 1237

def date_select(method, options = {}, html_options = {})
  @template.date_select(@object_name, method, objectify_options(options), html_options)
end