instance method
datetime_select
Ruby on Rails 8.0.4
Since v2.2.3Signature
datetime_select(method, options = {}, html_options = {})
Wraps ActionView::Helpers::DateHelper#datetime_select for form builders:
<%= form_with model: @person do |f| %> <%= f.datetime_select :last_request_at %> <%= 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 1268
def datetime_select(method, options = {}, html_options = {})
@template.datetime_select(@object_name, method, objectify_options(options), html_options)
end
Defined in actionview/lib/action_view/helpers/date_helper.rb line 1268
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Helpers::FormBuilder