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

No route matches #32

Open
ViciousMagician opened this issue Feb 5, 2021 · 3 comments
Open

No route matches #32

ViciousMagician opened this issue Feb 5, 2021 · 3 comments

Comments

@ViciousMagician
Copy link

I had everything working or so i though.. Site worked fine until i entered Solidus.

routes.rb
` mount Spree::Core::Engine, at: '/ecommerce'

get 'active' => 'sessions#active'
get 'timeout' => 'sessions#timeout'

`

When going into anything in Solidus it would throw:
ActionController::UrlGenerationError in Spree::OrdersController#edit
No route matches {:action=>"active", :controller=>"sessions"}

I was able to get around this by adding these lines to application_controller.rb

` def timeout_url
'/timeout'
end

def active_url
'/active'
end`

@pelargir
Copy link
Owner

pelargir commented Feb 8, 2021

How is your sessions controller defined? Are you using Devise or did you roll your own authentication? If you can provide a bit more detail I'd like to help.

@ViciousMagician
Copy link
Author

Unfortunately I inherited this project and its a roll your own auth. I tried both adding my own and auto_session_timeout_actions. Neither would work without adding the above however should it timeout while inside solidus the session gets destroyed but will not redirect to login. The redirection works great outside of the Solidus.

@pelargir
Copy link
Owner

If you're able to provide a sample project that demonstrates the bug that would be extremely helpful, but if not I'll try reproducing the problem myself when I have time.

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

2 participants