忽略 authenticity token
1 2 3 4 5 6 7 8 9 10 |
# 所有都忽略(application.rb) self.allow_forgery_protection = false # 某个Controller skip_before_filter :verify_authenticity_token # 某些Action protect_from_forgery :only => [:update, :delete, :create] #or protect_from_forgery :except => [:update, :delete, :create] |
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
Posted by devon At May 17, 2008 17:10
请登录以发表评论。