From ebbd0fe06977ecf545874d7dba402bc214facddd Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Mon, 25 Jul 2011 15:45:52 +1200 Subject: [PATCH] page[:something] is no longer recommended. --- .../1 - How to change Page Parts.textile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/guides/4 - Customising your Design/1 - How to change Page Parts.textile b/doc/guides/4 - Customising your Design/1 - How to change Page Parts.textile index 6128228431..e6e2b345d8 100644 --- a/doc/guides/4 - Customising your Design/1 - How to change Page Parts.textile +++ b/doc/guides/4 - Customising your Design/1 - How to change Page Parts.textile @@ -16,7 +16,7 @@ In Refinery's backend, go to the "Settings" tab. Look for a setting called "Defa NOTE: If you don't have this setting, try creating a new page and then restarting your web server. ---- +--- - Body - Side Body @@ -26,7 +26,7 @@ Edit this YAML to have the names of the default page parts you want, click +Save Here's a sample of a site that would have three content areas on most of its pages. ---- +--- - Left Body - Middle Body - Right Body @@ -47,7 +47,7 @@ NOTE: Your "middle body" content won't show on the front end yet. You need to ou Now in your +app/views/pages/home.html.erb+ view you'll be able to put: -<%= @page[:middle_body] %> +<%= @page.content_for(:middle_body) %> to output this new content area in the view.