method

date_field

Importance_1
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ActionView::Helpers::FormBuilder
date_field public

Wraps ActionView::Helpers::FormHelper#date_field for form builders:

<%= form_with model: @user do |f| %>
  <%= f.date_field :born_on %>
<% end %>

Please refer to the documentation of the base helper for details.

Show source
Register or log in to add new notes.