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