aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2015-05-21 19:35:52 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2015-05-21 19:35:52 +0900
commit88787e780b3dfdfee05a66286da8e6b1b95e0512 (patch)
tree46e2be76dd944938023378a18f27bd638effad06
parent07f1a503ace4b728b6e295af3fc69c1dc1ed18cc (diff)
downloadrails-88787e780b3dfdfee05a66286da8e6b1b95e0512.tar.gz
rails-88787e780b3dfdfee05a66286da8e6b1b95e0512.tar.bz2
rails-88787e780b3dfdfee05a66286da8e6b1b95e0512.zip
remove reference to `div_for` method from guide [ci skip]
`div_for` removed in 01e94ef
-rw-r--r--guides/source/action_view_overview.md20
1 files changed, 0 insertions, 20 deletions
diff --git a/guides/source/action_view_overview.md b/guides/source/action_view_overview.md
index 88c1345f27..8a026cecac 100644
--- a/guides/source/action_view_overview.md
+++ b/guides/source/action_view_overview.md
@@ -317,26 +317,6 @@ The `box` layout simply wraps the `_article` partial in a `div`:
</div>
```
-The `_article` partial wraps the article's `body` in a `div` with the `id` of the article using the `div_for` helper:
-
-**articles/_article.html.erb**
-
-```html+erb
-<%= div_for(article) do %>
- <p><%= article.body %></p>
-<% end %>
-```
-
-this would output the following:
-
-```html
-<div class='box'>
- <div id='article_1'>
- <p>Partial Layouts are cool!</p>
- </div>
-</div>
-```
-
Note that the partial layout has access to the local `article` variable that was passed into the `render` call. However, unlike application-wide layouts, partial layouts still have the underscore prefix.
You can also render a block of code within a partial layout instead of calling `yield`. For example, if we didn't have the `_article` partial, we could do this instead: