This project is archived and is in readonly mode.
params['path_info'] returns parsed array instead of string
Reported by peter123 | June 3rd, 2008 @ 01:44 AM
Say you have a route defined in routes.rb:
map.connect '/:p1/*path_info', :controller => 'user', :action => 'take_action'
And you hit the app with this url:
http://www.testapp.com/myparam/1...
The controller will return params['path_info'] as ["1", "2", "3", "4] instead of "1/2/3/4" as in previous versions of rails.
Comments and changes to this ticket
-
josh July 17th, 2008 @ 02:10 AM
- State changed from new to wontfix
- Tag set to route
From the CHANGELOG
"The @params[:path_info] return is really an array, but where to_s has been overwritten to do join("/")."
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>