`
wuhuizhong
  • 浏览: 668620 次
  • 性别: Icon_minigender_1
  • 来自: 中山
社区版块
存档分类
最新评论

How do I use ActiveSupport core extensions?

    博客分类:
  • ROR
 
阅读更多

When I try to use 1.week.ago I get

NoMethodError: undefined method 'week' for 1:Fixnum from (irb):2

 

Read How to Load Core Extensions .

 

You can :
require 'active_support/core_ext'
or :
require 'active_support/all'

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics