将 Rails 2.3 应用程序更新到 Rails 3.0.3,但获取未定义的方法“allow_forgery_protection”
Updating to Rails 3.0.3/Ruby 1.9.2 but getting the following error:
https://gist.github.com/737514
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也刚收到这个。看起来它源于这样一个事实,Behavior 用它自己的方法覆盖了 ActionController::Base#config (实际上只是为了提供一个与Behaviour.config 具有相同功能的帮助器......我对此有点不满意,但是无论如何......)
我已经在这里分叉“行为”并尝试清理其他一些东西好吧(Rspec2,其他一些 Rails 3 的东西)。主要变化是Behavior.config 已替换为Behavior.behavior_config(与ActionController::Base mixin 相同)。
I just got this as well. It looks like it stems from the fact that Behavior overrides ActionController::Base#config with its own method (really just to provide a helper that has the same functionality as Behavior.config... which I'm a little ticked at, but anyway...)
I've forked "behavior" here and tried to clean up a few other things as well (Rspec2, some other Rails 3 things). The main change is that Behavior.config has been replaced with Behavior.behavior_config (same with the ActionController::Base mixin).