instance method
time_field
Ruby on Rails 6.1.7.10
Since v6.0.6Signature
time_field(method, options = {})
Wraps ActionView::Helpers::FormHelper#time_field for form builders:
<%= form_with model: @user do |f| %>
<%= f.time_field :born_at %>
<% end %>
Please refer to the documentation of the base helper for details.
Source
# File actionview/lib/action_view/helpers/form_helper.rb, line 1793
Defined in actionview/lib/action_view/helpers/form_helper.rb line 1793
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Helpers::FormBuilder