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