开发者

Rails GEM+Railtie+ApplicationController not loading

开发者 https://www.devze.com 2023-02-22 13:19 出处:网络
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

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

精彩评论

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