remove content_tag_for example

This commit is contained in:
Ryo Hashimoto 2015-12-22 14:51:05 +09:00
parent 17a4e45048
commit 4f5536068d
1 changed files with 5 additions and 7 deletions

View File

@ -1157,14 +1157,12 @@ To pass a local variable to a partial in only specific cases use the `local_assi
* `_articles.html.erb`
```erb
<%= content_tag_for :article, article do |article| %>
<h2><%= article.title %></h2>
<h2><%= article.title %></h2>
<% if local_assigns[:full] %>
<%= simple_format article.body %>
<% else %>
<%= truncate article.body %>
<% end %>
<% if local_assigns[:full] %>
<%= simple_format article.body %>
<% else %>
<%= truncate article.body %>
<% end %>
```