Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

rewrote render tag using more succinct and idiomatic way

  • Loading branch information...
commit 6946fffd6362bbb3447c1fbc4d8e155f9ced5f4f 1 parent ebc7531
Chandresh Pant chandresh authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 guides/source/working_with_javascript_in_rails.md
4 guides/source/working_with_javascript_in_rails.md
View
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.