From 88787e780b3dfdfee05a66286da8e6b1b95e0512 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Thu, 21 May 2015 19:35:52 +0900 Subject: remove reference to `div_for` method from guide [ci skip] `div_for` removed in 01e94ef --- guides/source/action_view_overview.md | 20 -------------------- 1 file changed, 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`: ``` -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 %> -

<%= article.body %>

-<% end %> -``` - -this would output the following: - -```html -
-
-

Partial Layouts are cool!

-
-
-``` - 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: -- cgit v1.2.3