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
Linking to an engine mounted inside a localized block fails #123
Comments
I've also seen a fix Do you mind to submit a PR? |
Sorry, I haven't found a fix by now. Should I PR the failing test? |
No, don't worry Since I don't use the gem this way, I'm asking what is the expected behaviour. I mean, if I mount an engine in a |
Mounting works, but when you try to use url_for or a polymorphic route helper on the engine (i.e. blorgh.posts_path) it throws an error (see my first post). |
The error ist thrown in https://github.com/rails/rails/blob/4-2-stable/actionpack/lib/action_dispatch/routing/mapper.rb In following method:
In following line, *_route is nil, and it should not be:
|
Add an expected prefix for engine to avoid method call for nil. Fix: #123
When trying to link to an engine, that is mounted inside a localized block, I get following error message:
I added a failing test for this situation in my fork in the branch engine-in-localized-block (https://github.com/robotex82/route_translator/tree/engine-in-localized-block).
Can you please help?
Thanks in advance!
Best regards
Roberto
The text was updated successfully, but these errors were encountered: