Skip to content
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

uninitialized constant Spree::Theme::CURRENT_THEME_PATH (NameError) #18

Open
cgcmart opened this issue Feb 25, 2018 · 8 comments
Open
Assignees

Comments

@cgcmart
Copy link

cgcmart commented Feb 25, 2018

run: rails db:migrate
brought the error
app/controllers/spree/store_controller_decorator.rb:1:in `<top (required)>': uninitialized constant Spree::Theme::CURRENT_THEME_PATH (NameError)

@PareshGupta
Copy link
Contributor

Hi @99cm

After adding the gem and bundle install, try

bundle exec rails g vinsol_spree_themes:install.

I hope this works.

@cgcmart
Copy link
Author

cgcmart commented Feb 27, 2018

I will try. Thank you very much. If the steps work, I'll close this issue.

@cgcmart
Copy link
Author

cgcmart commented Mar 1, 2018

after 'bundle install', tried

'bundle exec rails g vinsol_spree_themes:install'

terminal displayed a similar error:
/spree_themes-0b8801fe8f35/app/controllers/spree/store_controller_decorator.rb:1:in `<top (required)>': uninitialized constant Spree::Theme::CURRENT_THEME_PATH (NameError)

@himanshumishra31
Copy link
Contributor

Hi @99cm

Can you please specify the spree version and ruby version you are using??

@cgcmart
Copy link
Author

cgcmart commented May 18, 2018

We are using Ruby 2.5.0 and Spree 3.4.4.
Thank you.

@himanshumishra31
Copy link
Contributor

Hi @99cm

Can you please send the complete gemfile of your application so that we can replicate the issue and help you further.
Also please tell the steps you have done after bundle the vinsol_spree_themes gem.

Thank you

@cgcmart
Copy link
Author

cgcmart commented May 21, 2018

@himanshumishra31
After bundle, could not complete rake db migrate, nor run 'rails g vinsol_spree_themes:install' because of uninitialized constant error.

Attachment Gemfile.txt
Gemfile.txt

Those commented out gems are not able to complete installation.

@himanshumishra31
Copy link
Contributor

Hi @99cm

I used your gemfile and it's working fine for me so i couldn't replicate the issue.
Please create a new spree app and then try to install the extension. I hope that would work.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants