Skip to content

Commit

Permalink
let's keep the slash in the return value instead of the path variable…
Browse files Browse the repository at this point in the history
… [ci skip]
  • Loading branch information
vijaydev committed Apr 17, 2012
1 parent 0c948a5 commit b7e3c8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionpack/lib/action_dispatch/routing/redirection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b7e3c8e

Please sign in to comment.