简体   繁体   中英

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. The ApplicationController is not defined so when I call

ApplicationController.send(:extend, ActsAsAwesome::Hook)

nothing happens. Can anyone tell me why or how to fix it? Thx!

我用ActionController :: Base替换了它,现在可以工作了。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM