private Method

FormTagHelper.token_tag

There's no documentation for this item.

Source Code

# File action_view/helpers/form_tag_helper.rb, line 441
def token_tag
  unless protect_against_forgery?
    ''
  else
    tag(:input, :type => "hidden", :name => request_forgery_protection_token.to_s, :value => form_authenticity_token)
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.