mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
rewrote render tag using more succinct and idiomatic way
This commit is contained in:
parent
ebc7531a0a
commit
6946fffd63
1 changed files with 1 additions and 3 deletions
|
@ -278,9 +278,7 @@ The index view (`app/views/users/index.html.erb`) contains:
|
|||
<b>Users</b>
|
||||
|
||||
<ul id="users">
|
||||
<% @users.each do |user| %>
|
||||
<%= render user %>
|
||||
<% end %>
|
||||
<%= render @users %>
|
||||
</ul>
|
||||
|
||||
<br>
|
||||
|
|
Loading…
Reference in a new issue