<%= @post.title %>

submitted <%= time_ago_in_words(@post.created_at) %> ago by <%= @post.user.name %>

<%= @post.body %>

<% if policy(@post).update? %> <%= link_to "Edit", edit_topic_post_path(@post), class: 'btn btn-success' %> <% end %>