instance method
method_tag
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
method_tag(method)
No documentation comment.
Parameters
-
methodreq
Source
# File actionview/lib/action_view/helpers/navigation_helper.rb, line 601
def method_tag(method)
options = { type: "hidden", name: "_method", value: method.to_s }
options[:autocomplete] = "off" unless ActionView::Base.remove_hidden_field_autocomplete
tag("input", **options)
end
Defined in actionview/lib/action_view/helpers/navigation_helper.rb line 601
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Helpers::NavigationHelper