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

Mountable engine routes #3801

Closed
Adrxx opened this issue Oct 28, 2015 · 3 comments
Closed

Mountable engine routes #3801

Adrxx opened this issue Oct 28, 2015 · 3 comments

Comments

@Adrxx
Copy link

Adrxx commented Oct 28, 2015

Im trying to create a a mountable engine with devise on it, I've followed this tutorial: https://github.com/plataformatec/devise/wiki/How-To:-Use-devise-inside-a-mountable-engine
And everything works fine, except the routes. My engine is mounted in the route admin like this:

 mount C4::Engine => "/admin"

but when devise redirects the user (like when it hasn't signed in) it redirects to a path without the '/admin' prefix and gives me the usual No route matches [GET] /users/sign_in because the correct route is admin/users/sign_in.

I'm kind of new to rails mountable engines so It could be just me, is this a devise issue?

@Adrxx Adrxx closed this as completed Oct 28, 2015
@Adrxx Adrxx reopened this Oct 28, 2015
@Adrxx
Copy link
Author

Adrxx commented Oct 28, 2015

Ok, It seems I wasn't using the correct devise version, devise 3.5.1 works fine.

@Adrxx Adrxx closed this as completed Oct 28, 2015
@patricklindsay
Copy link

I think this should be reopened (?)

I am having the same problem using 3.5.6, downgrading to 3.5.1 fixes the problem however opens my app up to security issues

@patricklindsay
Copy link

Dup issue: #3705

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

No branches or pull requests

2 participants