在Rails 3开发,使用paginate的时候遇到这个问题
undefined method `paginate' for #<ActiveRecord::Relation:0xaf5e2b8>
无法使用这个插件,原来是我没有在Gemfile中加入
gem 'will_paginate'
然后重启服务就可以了
在Rails 3开发,使用paginate的时候遇到这个问题
undefined method `paginate' for #<ActiveRecord::Relation:0xaf5e2b8>
无法使用这个插件,原来是我没有在Gemfile中加入
gem 'will_paginate'
然后重启服务就可以了