2011-09-12 10:30:45 -04:00
|
|
|
<p>
|
2012-04-20 06:06:47 -04:00
|
|
|
<strong>Title:</strong>
|
2011-09-12 10:30:45 -04:00
|
|
|
<%= @post.title %>
|
|
|
|
</p>
|
2013-01-22 00:12:29 -05:00
|
|
|
|
2011-09-12 10:30:45 -04:00
|
|
|
<p>
|
2012-04-20 06:06:47 -04:00
|
|
|
<strong>Text:</strong>
|
|
|
|
<%= @post.text %>
|
2011-09-12 10:30:45 -04:00
|
|
|
</p>
|
2012-04-20 06:53:18 -04:00
|
|
|
|
2012-05-02 04:42:59 -04:00
|
|
|
<h2>Comments</h2>
|
2012-05-02 05:13:20 -04:00
|
|
|
<%= render @post.comments %>
|
2013-01-22 00:12:29 -05:00
|
|
|
|
2012-04-30 03:08:32 -04:00
|
|
|
<h2>Add a comment:</h2>
|
2012-05-02 05:13:20 -04:00
|
|
|
<%= render "comments/form" %>
|
2013-01-22 00:12:29 -05:00
|
|
|
|
2012-04-30 03:08:32 -04:00
|
|
|
<%= link_to 'Edit Post', edit_post_path(@post) %> |
|
|
|
|
<%= link_to 'Back to Posts', posts_path %>
|