aboutsummaryrefslogblamecommitdiffstats
path: root/guides/code/getting_started/app/views/posts/show.html.erb
blob: e99e9edbb3975e9c266548c0cbb9ca515d965cbc (plain) (tree)
1
2
3
4
5
6
7
8
9
   
                         

                    
 
   

                        
    
 
                 
                            
 
                       
                             
 

                                                   
<p>
  <strong>Title:</strong>
  <%= @post.title %>
</p>
 
<p>
  <strong>Text:</strong>
  <%= @post.text %>
</p>

<h2>Comments</h2>
<%= render @post.comments %>
 
<h2>Add a comment:</h2>
<%= render "comments/form" %>
 
<%= link_to 'Edit Post', edit_post_path(@post) %> |
<%= link_to 'Back to Posts', posts_path %>