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
url_for(:controller => 'un_existing', :action => 'show) returns /assets url in 3.2 #6459
Comments
This is rather not regression in journey, as the problem is that assets engine catches this route. If you disable assets you will see |
Just a quick update. I haven't had time to work on this, but my previous comment is stupid :) It is regression in journey, as it's during generation. Sorry for confusion. |
Should be fixed here. Thanks for reporting this! |
Thu Jun 14 14:03:22 2012 Aaron Patterson <aaron@tenderlovemaking.com> * lib/journey/formatter.rb: when generating routes, skip route literals (routes that do not have replacement values like "/:controller") when matching unnamed routes. rails/rails#6459 * test/test_router.rb: corresponding test
Thu Jun 14 14:03:22 2012 Aaron Patterson <aaron@tenderlovemaking.com> * lib/journey/formatter.rb: when generating routes, skip route literals (routes that do not have replacement values like "/:controller") when matching unnamed routes. rails/rails#6459 * test/test_router.rb: corresponding test
In an application without FooController:
In rails 3.1 this raises ActionController::RoutingError
In rails 3.2 you get an url returned:
The rails 3.1 result seems the proper one.
@tenderlove Is this a regression in journey?
The text was updated successfully, but these errors were encountered: