instance method
method_tag
Ruby on Rails 6.1.7.10
Since v4.0.13 PrivateSignature
method_tag(method)
No documentation comment.
Parameters
-
methodreq
Source
# File actionview/lib/action_view/helpers/url_helper.rb, line 736
def method_tag(method)
tag("input", type: "hidden", name: "_method", value: method.to_s, autocomplete: "off")
end
Defined in actionview/lib/action_view/helpers/url_helper.rb line 736
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Helpers::UrlHelper