This project is archived and is in readonly mode.
Rails routes rake task shows /rails/info/properties
Reported by beawesomeinstead | January 27th, 2010 @ 09:28 AM | in 3.0.2
To reproduce the issue you need to create a blank Rails 3 application and run 'rake routes'.
You'll get the following:
GET /session(.:format) {:controller=>"sessions", :action=>"show"}
... SNIPPED ...
root / {:controller=>"sessions", :action=>"new"}
/rails/info/properties {:controller=>"rails/info", :action=>"properties"}
As mentioned on IRC, /rails/info/properties
route
should not be there.
Comments and changes to this ticket
-
Prem Sichanugrist (sikachu) January 27th, 2010 @ 10:44 AM
- State changed from new to open
- Tag changed from rails3 routes rake to 3.0, rails3, rake, routes
- Milestone cleared.
I think I found the culprit of this problem. It's because Rails 3 explicitly defines the routing to it.
I'll provide the patch in my next reply.
-
Prem Sichanugrist (sikachu) January 27th, 2010 @ 03:50 PM
Here's the patch for it. There's no test case, as I can't find a good place to put it, but I have tested it with real application.
-
Prem Sichanugrist (sikachu) January 30th, 2010 @ 02:09 PM
- Assigned user changed from Prem Sichanugrist (sikachu) to José Valim
-
Repository February 2nd, 2010 @ 09:06 AM
- State changed from open to resolved
(from [ab83800c3519595b909b760deb09c6ef46a07274]) Hide '/rails/info/properties' from 'rake routes' [#3793 state:resolved]
Signed-off-by: Pratik Naik pratiknaik@gmail.com
http://github.com/rails/rails/commit/ab83800c3519595b909b760deb09c6... -
José Valim February 2nd, 2010 @ 09:07 AM
- Assigned user changed from José Valim to Pratik
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Referenced by
- 3793 Rails routes rake task shows /rails/info/properties (from [ab83800c3519595b909b760deb09c6ef46a07274]) Hide '/...