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