aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-04-18 00:05:38 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-04-18 00:05:38 +0530
commitb7e3c8e1f387e4c0843371971317ca7972d8aeb5 (patch)
tree5611447bdaa824b1d1dd60d4ae3d676259a136a5 /actionpack
parent0c948a587d5fd22d0d0465d81ced2be9b903a6f6 (diff)
downloadrails-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')
-rw-r--r--actionpack/lib/action_dispatch/routing/redirection.rb4
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