Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 21st, 2012  |  syntax: None  |  size: 0.52 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Rails outputting object hash
  2. <%= @cause.updates.each do |update| %>
  3.       <div class="streamComment group">
  4.  
  5.       <img class="userPhoto" src="<%= update.user.avatar.url %>">
  6.  
  7.       <p class="userComment"><%= update.update_text %></p>
  8.       </div>
  9.     <% end %>
  10.        
  11. <% @cause.updates.each do |update| # remove the = at the beginning of this line %>
  12.   <div class="streamComment group">
  13.  
  14.   <img class="userPhoto" src="<%= update.user.avatar.url %>">
  15.  
  16.   <p class="userComment"><%= update.update_text %></p>
  17.   </div>
  18. <% end %>