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.
精彩评论