Permalink
Browse files

let's keep the slash in the return value instead of the path variable…

… [ci skip]
  • Loading branch information...
1 parent 0c948a5 commit b7e3c8e1f387e4c0843371971317ca7972d8aeb5 @vijaydev vijaydev committed Apr 17, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_dispatch/routing/redirection.rb
@@ -68,8 +68,8 @@ module Redirection
# 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

0 comments on commit b7e3c8e

Please sign in to comment.