Add posts test
This commit is contained in:
parent
0df07c478a
commit
76229c8cc5
17 changed files with 278 additions and 0 deletions
10
app/views/posts/show.html.erb
Normal file
10
app/views/posts/show.html.erb
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<p style="color: green"><%= notice %></p>
|
||||
|
||||
<%= render @post %>
|
||||
|
||||
<div>
|
||||
<%= link_to "Edit this post", edit_post_path(@post) %> |
|
||||
<%= link_to "Back to posts", posts_path %>
|
||||
|
||||
<%= button_to "Destroy this post", @post, method: :delete %>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue