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.

Changeset [ae2c60734a0f71593709608710a0c7507bb8699e] by Andrew White

Revision ae2c60734a0f71593709608710a0c7507bb8699e, committed by Andrew White · August 22nd, 2010 @ 08:17 PM

Cache the symbolized path parameters using a instance variable in the request object rather than the environment hash. This it to prevent stale parameters in later routing constraints/redirects as only the normal path parameters are set by Rack::Mount.

Also if a constraint proc arity is more than one, pass the symbolized path parameters
as the first argument to match redirect proc args and provide easier access.

[#5157 state:resolved]

Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/ae2c60734a0f71593709608710a0c7...

3 changed files

  • M actionpack/lib/action_dispatch/http/parameters.rb
  • M actionpack/lib/action_dispatch/routing/mapper.rb
  • M actionpack/test/dispatch/routing_test.rb