1
0
Fork 0
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:
Chandresh Pant 2013-06-17 13:51:59 +05:30
parent ebc7531a0a
commit 6946fffd63

View file

@ -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>