From 150c6dc30f20f46c90c289704150268b7fb9edd9 Mon Sep 17 00:00:00 2001
From: Semyon Perepelitsa <sema@sema.in>
Date: Thu, 6 Sep 2012 23:23:05 +0800
Subject: Redirect block with arity of 1 is deprecated.

---
 guides/source/routing.textile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'guides/source/routing.textile')

diff --git a/guides/source/routing.textile b/guides/source/routing.textile
index bed7d03e06..9718887612 100644
--- a/guides/source/routing.textile
+++ b/guides/source/routing.textile
@@ -644,10 +644,10 @@ You can also reuse dynamic segments from the match in the path to redirect to:
 get "/stories/:name" => redirect("/posts/%{name}")
 </ruby>
 
-You can also provide a block to redirect, which receives the params and (optionally) the request object:
+You can also provide a block to redirect, which receives the params and the request object:
 
 <ruby>
-get "/stories/:name" => redirect {|params| "/posts/#{params[:name].pluralize}" }
+get "/stories/:name" => redirect {|params, req| "/posts/#{params[:name].pluralize}" }
 get "/stories" => redirect {|p, req| "/posts/#{req.subdomain}" }
 </ruby>
 
-- 
cgit v1.2.3

