GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Fork of lifo/doc-rails
Description: Repository for improving Rails documentation
Homepage: http://www.rubyonrails.org
Clone URL: git://github.com/zmalltalker/doc-rails.git
fixed-width font for symbols in AC::RequestForgeryProtection docs
Xavier Noria (author)
Thu Apr 10 07:40:04 -0700 2008
commit  037e76b27e629290e46210d5a67cc6bdcf2b56ae
tree    4a60570bde948ed2325177d92029402f69ac9915
parent  c364ad6c8a2fd7e514a00380a8c57cca4fde025b
...
102
103
104
105
 
 
106
107
108
...
102
103
104
 
105
106
107
108
109
0
@@ -102,7 +102,8 @@ module ActionController #:nodoc:
0
         request.format.html? || request.format.js?
0
       end
0
     
0
- # Sets the token value for the current session. Pass a :secret option in #protect_from_forgery to add a custom salt to the hash.
0
+ # Sets the token value for the current session. Pass a <tt>:secret</tt> option
0
+ # in +protect_from_forgery+ to add a custom salt to the hash.
0
       def form_authenticity_token
0
         @form_authenticity_token ||= if request_forgery_protection_options[:secret]
0
           authenticity_token_from_session_id

Comments

    No one has commented yet.