ruby-rcade/RubyGameDev.com

View on GitHub
app/views/comments/_comment.html.erb

Summary

Maintainability
Test Coverage
<div class="comment">
  <p>
    <%= link_to comment.user.username, "#",class: "author"%>
     -
    <time> <%= time_ago_in_words comment.created_at %> ago </time>
  </p>
  <%= simple_format comment.body %>
</div>