-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
AbstractController::ActionNotFound with Controller Override #185
Comments
I think I figured out the issue. |
Thanks for the detailed report @hwhelchel! Nesting the So the solution was to implement a hack that un-nests the routes, re-constructs the intended path, and then mounts the routes at the root level to the intended path. This happens at around this point in the code. Devise itself has a similar mechanism. But there is an issue where sometimes the namespacing adds a prefix to the path ( I'll keep trying to re-produce this error so I can write a test against it. If you can find a fix, please send me a PR. |
Also, can you try using the latest beta version? (Currently |
Hi there @hwhelchel , In an effort to cleanup this project and prioritize a bit, we're marking issues that haven't had any activity in a while with a "close-in-7-days" label. If we don't hear from you in about a week, we'll be closing this issue. Obviously feel free to re-open it at any time if it's the right time or this was done in error! If you are still having the issue (especially if it's a bug report) please refer to our new Issue Template to provide some more details to help us solve it. Hope all is well. |
Version: 0.1.31
Devise Version: 3.4.1
Routes:
Auth routes
Override Controller:
Do you have any recommendations on what could be the issue? Looks like the
env['devise.mapping']
is not being set successfully inActionDispatch::Routing::Mapper#devise_scope
. I don't have much experience with routing constraints so I tried devise's recommendation:But the error persisted. Thanks!
The text was updated successfully, but these errors were encountered: