Skip to content

Commit

Permalink
rewrote render tag using more succinct and idiomatic way
Browse files Browse the repository at this point in the history
  • Loading branch information
chandresh committed Jun 17, 2013
1 parent ebc7531 commit 6946fff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions guides/source/working_with_javascript_in_rails.md
Expand Up @@ -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>
Expand Down

0 comments on commit 6946fff

Please sign in to comment.