-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
Non-passwordless route path helpers are prefixed with /users when rendering passwordless templates #30
Comments
This is due to Passwordless isolating its engine namespace. In your case, every view rendered by a Passwordless action (including the layout) has to prefix the main app's routes with It's really annoying and I've been looking into removing the isolation, see #22. I don't know when I'll have the time to finalize it though – PRs very welcome. |
Got it, thanks for the explanation! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given this routes file:
And this application layout (
app/views/layouts/application.html.erb
):When the application layout is rendered on normal pages,
stripe_charges_path
correctly returns/stripe_charges
, but when rendered as part of a Passwordless template likeapp/views/passwordless/sessions/new.html.erb
, it is returning/users/stripe_charges
, which doesn't exist.The text was updated successfully, but these errors were encountered: