mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
let's keep the slash in the return value instead of the path variable [ci skip]
This commit is contained in:
parent
0c948a587d
commit
b7e3c8e1f3
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue