New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
admin section doesn't work on clean install - I think because seeds.rb didn't execute #2112
Comments
I'm going to need the information from this section of the Contributing guide before I can determine what is wrong. Please provide it so I can investigate. Thanks. |
Exact steps to reproduce issue:
Here is a list of all the recipes used in my app:
If you are using the command I gave you earlier, as you are stepping through the prompts, just chose the same options I have above in 'Preferences'. i.e. when it asks for Authentication, choose Devise, Front-End => Twitter Bootstrap with SaSS, etc. Then, once you have that setup - which should be straight forward and a vanilla Rails App, then you add spree to your Gemfile - There is one gotcha, Rails_Apps_Composer installs CanCan v 1.6.8, but the latest build on the Master branch of Spree requires CanCan=1.6.7. So you have to make that change in your Gemfile and run I am using I am using whatever extensions come with the regular process of including that gem line in my Gemfile and running I also loaded the I have NOT enabled 'Dedicated Spree Devise Authentication`. If you need any more log data (or if I have missed anything), let me know what else you may need. I think I got everything though. Thanks. |
I see you have closed this issue, does that mean that you fixed it in the latest commit? Has it been accepted into the main branch for me to be able to re-run |
Oops, I tagged the wrong issue in a commit. This issue is not fixed yet. |
The composer template automatically runs |
Yes, I know that. The issue is that I ran the composer first, then put the Spree gem into the So shouldn't that be ok? Also, the user that is created in the composer template is So the question is, now that I have done that - and I have the On Thu, Oct 18, 2012 at 11:16 PM, Ryan Bigg notifications@github.comwrote:
|
When you run |
rake db:reset && rake db:seed Woo... |
So I commented out the unnecessary things in the
This seems like a SQLite & Spree issue. P.S. Btw, thnx for that Spaceghost. |
@marcamillion Clear your whole database. |
This is happening because your countries table already has data in it. Seed is supposed to only run on a fresh database, not one with data in it. |
Ok...before I drop my DB, this is my
Should I get rid of the manual user creation and the role creation and just leave the Spree stuff in there? Or should I just move the Spree stuff above everything else? Once I know what should work, I will drop my db and run it. |
Helpa has this trigger called !try. I'm sure you're familiar with it. I suggest making use of your revision control software and trying. Explore. Learn. Have fun! |
Well I tried many permutations, even one with an empty db and the only thing in my
And whenever I try to access
When I ran
There are no more errors, but yet I still can't access Something funky is clearly happening. |
I have the problem, could someone help? |
@lmany Could you please file a new issue about this? This issue is fairly old... Make sure to include the info in the Contributing guide. Thanks! |
Thank you four answer. |
@lmany Please open a new issue about this. Click this link and fill in the details exactly as asked in the Contributing guide. Thank you. |
When it got to
rake db:seed
- in the intial setup - of a relatively new app (all I did was setup Devise, CanCan and a few other gems before setting up Spree) this is the message that returned:As a result of that, when I go to /admin in my Spree App, it just redirects to home and this is what I see in the log:
I have a
user
that is already assigned the role ofadmin
:How do I fix this?
The text was updated successfully, but these errors were encountered: