开发者

Spree example app problem

开发者 https://www.devze.com 2023-03-29 09:50 出处:网络
I\'ve trying to build sample application as it\'s wrote there, but there is an error: u开发者_C百科ndefined method `paginate\' for #<Array:0xb0b16b0>

I've trying to build sample application as it's wrote there, but there is an error:

u开发者_C百科ndefined method `paginate' for #<Array:0xb0b16b0>

Admin interface works fine. What i'm doing wrong?


I just followed the spree Getting Started instructions and run into the exact same problem just now.

Turned out that because my Gemfile specified rails 3.0.10, bundler would install spree 0.40.0 which seems to be quite old.

I solved the problem by updating the relevant lines of the Gemfile like this:

gem 'rails'
gem 'spree', '~> 0.60.0'

Then when I ran bundle update again it installed rails 3.0.9, and following a rake db:bootstrap everything started working as per the docs again...

Hope that helps :)

0

精彩评论

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

关注公众号