Skip to content

Commit

Permalink
page[:something] is no longer recommended.
Browse files Browse the repository at this point in the history
  • Loading branch information
parndt committed Jul 25, 2011
1 parent d492c5c commit ebbd0fe
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -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.

<yaml>
---
---
- Body
- Side Body
</yaml>
Expand All @@ -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.

<yaml>
---
---
- Left Body
- Middle Body
- Right Body
Expand All @@ -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:

<erb>
<%= @page[:middle_body] %>
<%= @page.content_for(:middle_body) %>
</erb>

to output this new content area in the view.
Expand Down

0 comments on commit ebbd0fe

Please sign in to comment.