Permalink
Browse files

Routing Mapper with % interpolation on Ruby 1.9.1 fixed [#3837 status…

…:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
Santiago Pastorino and José Ignacio Costa authored and josevalim committed Feb 1, 2010
1 parent 95eadb3 commit afdf52402ea7cb153be54a342f0e6502a159e327
Showing with 1 addition and 2 deletions.
  1. +1 −2 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -207,8 +207,7 @@ def redirect(*args, &block)
lambda do |env|
req = Request.new(env)
-
- uri = URI.parse(path_proc.call(req.params.symbolize_keys))
+ uri = URI.parse(path_proc.call(req.symbolized_path_parameters))
uri.scheme ||= req.scheme
uri.host ||= req.host
uri.port ||= req.port unless req.port == 80

0 comments on commit afdf524

Please sign in to comment.