我正试图让https为我的rails应用程序工作。当我试图在应用程序上做任何与帖子相关的活动时,我会得到以下错误。Exception `ActionController::InvalidAuthenticityToken' at /usr/local/rvm/gems/ruby-2.4.1/gems/actionpackException `ActionController::InvalidAuthe
在Rails 4.1.6中,当运行使用脚手架生成的测试时,我会得到InvalidAuthenticityToken错误。是否有任何方法禁用特定测试的真实性令牌检查?rails g scaffold user name:string email:string password_digest:string输出:UsersControllerTest#test_should_create_user:
ActionController::I
当CSRF令牌不匹配时,Rails将引发InvalidAuthenticityToken。但是,通过阅读,我无法弄清楚这实际上是如何发生的。我从这个类的树开始:
actionpack/lib/action_controller/metal/request_forgery_protection.rband raise an ActionController</e