开发者

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开发者_如何学C::Hook)

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


I replaced it with ActionController::Base and it works now.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜