daily pastebin goal
18%
SHARE
TWEET

Untitled

a guest Apr 26th, 2018 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <h2>Comments</h2>
  2. <% unless @post.comments.empty? %>
  3.   <% @post.comments.each_with_index do |comment, index| %>
  4.      <b>From:</b> <%= comment.name %><br />
  5.     <%= RedCloth.new(comment.body).to_html %>
  6.     <% if index < (@post.comments.size - 1) %>
  7.       <hr noshade="noshade" /><br />
  8.     <% end %>
  9.   <% end %>
  10. <% else %>
  11.     <i>No Comments for this Post</i>
  12. <% end %>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top