aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/action_view_overview.md
diff options
context:
space:
mode:
authorPrathamesh Sonpatki <csonpatki@gmail.com>2015-05-23 17:47:20 +0530
committerPrathamesh Sonpatki <csonpatki@gmail.com>2015-05-23 17:47:20 +0530
commitd3da2080487391ee5a28f3167c21084107858f52 (patch)
tree1dc14bfff4912968f81cd47fdf3f26fd5f872c0e /guides/source/action_view_overview.md
parent42e66fac38b54dd53d062fb5d3376218ed2ffdae (diff)
downloadrails-d3da2080487391ee5a28f3167c21084107858f52.tar.gz
rails-d3da2080487391ee5a28f3167c21084107858f52.tar.bz2
rails-d3da2080487391ee5a28f3167c21084107858f52.zip
Remove div_for from guides [ci skip]
Followup of https://github.com/rails/rails/pull/20244.
Diffstat (limited to 'guides/source/action_view_overview.md')
-rw-r--r--guides/source/action_view_overview.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/action_view_overview.md b/guides/source/action_view_overview.md
index 8a026cecac..950bb5e358 100644
--- a/guides/source/action_view_overview.md
+++ b/guides/source/action_view_overview.md
@@ -325,9 +325,9 @@ You can also render a block of code within a partial layout instead of calling `
```html+erb
<% render(layout: 'box', locals: { article: @article }) do %>
- <%= div_for(article) do %>
+ <div>
<p><%= article.body %></p>
- <% end %>
+ </div>
<% end %>
```