
Untitled
By: a guest on
May 21st, 2012 | syntax:
None | size: 0.52 KB | hits: 11 | expires: Never
Rails outputting object hash
<%= @cause.updates.each do |update| %>
<div class="streamComment group">
<img class="userPhoto" src="<%= update.user.avatar.url %>">
<p class="userComment"><%= update.update_text %></p>
</div>
<% end %>
<% @cause.updates.each do |update| # remove the = at the beginning of this line %>
<div class="streamComment group">
<img class="userPhoto" src="<%= update.user.avatar.url %>">
<p class="userComment"><%= update.update_text %></p>
</div>
<% end %>