5
我想配置的Rails 3 cache_store与环境是这样的/ development.rb:在哪里配置Rails 3 cache_store?
config.cache_store = :memory_store, {:size => 64.megabytes, :expires_in => 5.minutes}
但是,当我启动服务器,我得到:
undefined method `megabytes' for 64:Fixnum (NoMethodError)
大概的东西是没有载入。
我的问题是:哪里是正确的地方配置它们呢?我应该在哪里放置这段代码?