-
Notifications
You must be signed in to change notification settings - Fork 30
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
Routing issues #14
Comments
Update: For anyone who stumbles across this issue: it seems that the
but obviously your version numbers will vary. To resolve, simply rename |
Update: So, whilst this will now allow me to create users through the Spree dashboard, the users that it creates can't actually log in - probably because a lot of fields, such as I expect that it would be preferable to create the users through the Alchemy dashboard (rather than spree) so I've overridden the route as follows:
This keeps me within Alchemy when I click the users button, as expected, but gives me the following rather spectacular error (!)
Ps. Sorry for the multiple posting, I'm just logging my findings here in case anyone else finds this useful. |
Hi, I set up a store and connected alchemy as well to reproduce your errors.
I don't know what happened on your computer, but for me there was no issue running the generator. The following are the migrations created:
I got this, too. I looked into this issue and found that solidus raises
I noticed an error you did not mention or maybe did not face because you couldn't login: After you log in and open the storefront in the browser
is thrown to your face. I investigated a moment and found that the
I haven't had this ransack error you mentioned when requesting I hope my findings help you. |
Hi @robinboening, Thanks for your reply and for taking the time to test my findings. Apologies for the delay, I've been out of the country. Could I please just confirm a few things about your test environment? My routes file looks like this:
And my Gemfile is as follows:
Do these versions match yours? I had included the Spree User methods (by means of a UserDecorator) but the result is still the same with the Ransack error message. As yours is working, are you able to add users successfully through the Alchemy dashboard? Also, just so that I'm completely clear, have you opted to use Perhaps you could push your version up on Github somewhere for reference ;) Many thanks again for the advice, Joe |
The migration errors will be fixed once solidusio/solidus#2382 was merged. |
Also I made setting up this gem more easy by adding a new generator in #16 |
@robinboening also fixed the missing |
These issues should all be solved now that we merged a bunch of PRs in Solidus and here. Please feel free to re-open if any issues are still present. |
I'm trying to use connect Alchemy and Solidus but running into some routing errors.
Steps to reproduce:
Added to gemfile:
Then run:
(all working as expected so far)
Added to gemfile:
Then run:
Configuration, as per docs:
Issues
Home route
Visiting
http://localhost:3000
gives:Resolved this by updating the
routes.rb
to include the homepage urlname:Admin route
Visiting
http://localhost:3000/admin
hits the Spree routing layer and gives:Resolved this by updating
routes.rb
, adding the following above the Spree mount:Users route
Both Alchemy and Solidus seem to use /admin/users routes. Clicking 'Users' takes me over to the Solidus dashboard, but adding a user through that gives the following error:
I then tried changing routes.rb to have Spree mounted at '/store':
mount Spree::Core::Engine, :at => '/store'
But visiting the /admin/users page in Alchemy then gives me the following:
So I'm a bit stuck now.
Thanks in advance for any tips!
The text was updated successfully, but these errors were encountered: