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.
精彩评论