开发者

uninitialized constant ActiveSupport::Concern

I got below link to solve problem related to class and instance method. http://www.fakingfantastic.com/2010/09/20/concerning-yourse开发者_Python百科lf-with-active-support-concern/

module NotificationsHelper
  extend ActiveSupport::Concern

  module ClassMethods
    def my_class_method
      # ...
    end
  end

  module InstanceMethods
    def my_instance_method
      # ...
    end
  end
end

But I am getting uninitialized constant ActiveSupport::Concern error. I am using Rails 2.3.5 and Ruby 1.9.2p180


This module is only available in Rails 3 onwards

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜