Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

… [ci skip]
  • Loading branch information...
commit b7e3c8e1f387e4c0843371971317ca7972d8aeb5 1 parent 0c948a5
@vijaydev vijaydev authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_dispatch/routing/redirection.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.