diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-04-18 00:05:38 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-04-18 00:05:38 +0530 |
commit | b7e3c8e1f387e4c0843371971317ca7972d8aeb5 (patch) | |
tree | 5611447bdaa824b1d1dd60d4ae3d676259a136a5 /actionpack/lib/action_dispatch | |
parent | 0c948a587d5fd22d0d0465d81ced2be9b903a6f6 (diff) | |
download | rails-b7e3c8e1f387e4c0843371971317ca7972d8aeb5.tar.gz rails-b7e3c8e1f387e4c0843371971317ca7972d8aeb5.tar.bz2 rails-b7e3c8e1f387e4c0843371971317ca7972d8aeb5.zip |
let's keep the slash in the return value instead of the path variable [ci skip]
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/redirection.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/routing/redirection.rb b/actionpack/lib/action_dispatch/routing/redirection.rb index 17c1cfb379..f281738e6f 100644 --- a/actionpack/lib/action_dispatch/routing/redirection.rb +++ b/actionpack/lib/action_dispatch/routing/redirection.rb @@ -68,8 +68,8 @@ module ActionDispatch # return value. # # match 'jokes/:number', :to => redirect { |params, request| - # path = (params[:number].to_i.even? ? "/wheres-the-beef" : "/i-love-lamp") - # "http://#{request.host_with_port}#{path}" + # path = (params[:number].to_i.even? ? "wheres-the-beef" : "i-love-lamp") + # "http://#{request.host_with_port}/#{path}" # } # # Note that the `do end` syntax for the redirect block wouldn't work, as Ruby would pass |