module Rails::HiddenAutocomplete::ActionView::Helpers::UrlHelper
Public Instance Methods
Private Instance Methods
method_tag(method)
click to toggle source
# File lib/rails/hidden_autocomplete/action_view/helpers/url_helper.rb, line 69 def method_tag(method) tag('input', type: 'hidden', name: '_method', value: method.to_s, autocomplete: 'off') end
token_tag(token = nil, form_options: {})
click to toggle source
# File lib/rails/hidden_autocomplete/action_view/helpers/url_helper.rb, line 60 def token_tag(token = nil, form_options: {}) if token != false && defined?(protect_against_forgery?) && protect_against_forgery? token ||= form_authenticity_token(form_options: form_options) tag(:input, type: 'hidden', name: request_forgery_protection_token.to_s, value: token, autocomplete: 'off') else '' end end