From 897f86a974636581b8409fd87b288581e2533c28 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Thu, 15 Jul 2010 09:47:00 +0200 Subject: layouts and rendering guide: use content_for? instead of the yield or yield idiom --- railties/guides/source/layouts_and_rendering.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties') diff --git a/railties/guides/source/layouts_and_rendering.textile b/railties/guides/source/layouts_and_rendering.textile index f4ba6dd53b..b9a201e5f0 100644 --- a/railties/guides/source/layouts_and_rendering.textile +++ b/railties/guides/source/layouts_and_rendering.textile @@ -1168,7 +1168,7 @@ Suppose you have the following +ApplicationController+ layout:
Top menu items here
-
<%= yield(:content) or yield %>
+
<%= content_for?(:content) ? yield(:content) : yield %>
-- cgit v1.2.3