Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

params['path_info'] returns parsed array instead of string

#309

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.

Reported by peter123 · June 3rd, 2008 @ 01:44 AM

State: wontfix
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. peter123
    peter123

    This bug is found in the released version of rails 2.1

    June 3rd, 2008 @ 01:54 AM

  2. josh
    josh
    • 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("/")."

    July 17th, 2008 @ 02:10 AM