开发者

Rails Spree demands account creation after bootstrapping without sample data

开发者 https://www.devze.com 2023-01-20 20:49 出处:网络
I\'m using the Spree Rails gem for my ecommerce site. During development I\'ve been using the sample data. After re-bootstrapping the database using \"rake db:bootstrap\" and this time NOT loading sam

I'm using the Spree Rails gem for my ecommerce site. During development I've been using the sample data. After re-bootstrapping the database using "rake db:bootstrap" and this time NOT loading sample data, any time I go to any page on my site, it redire开发者_JAVA技巧cts me to /users/new.

I have removed all my custom route rules.

Any ideas why this is happening?


Turns out that (I'm pretty sure) the problem was due to there being no records in the 'users' table, as Spree apparently requires at least one user of role admin.

0

精彩评论

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

关注公众号