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