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