[英]Rails GEM+Railtie+ApplicationController not loading
This tutorial http://thoughtsincomputation.com/posts/coding-an-acts_as-gem-for-rails-3 does not work for Rails 3.0.5. 本教程http://thoughtsincomputation.com/posts/coding-an-acts_as-gem-for-rails-3不适用于Rails 3.0.5。 The ApplicationController is not defined so when I call
ApplicationController没有定义,所以当我打电话时
ApplicationController.send(:extend, ActsAsAwesome::Hook)
nothing happens. 什么都没发生。 Can anyone tell me why or how to fix it?
谁能告诉我原因或解决方法? Thx!
谢谢!
我用ActionController :: Base替换了它,现在可以工作了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.