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