Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h2>Comments</h2>
- <% if !@post.comments.blank? %>
- <% for @post.comments.each_with_index |post, index| %>
- <b>From:</b> <%= comment.name %><br />
- <%= RedCloth.new(comment.body).to_html %>
- <% if @post.comments.size > 1 and index < @post.comments.size %>
- <hr noshade="noshade" /><br />
- <% end %>
- <% end %>
- <% else %>
- <i>No Comments for this Post</i>
- <% end %>
Add Comment
Please, Sign In to add comment