Add posts test
This commit is contained in:
parent
0df07c478a
commit
76229c8cc5
17 changed files with 278 additions and 0 deletions
11
app/views/posts/new.html.erb
Normal file
11
app/views/posts/new.html.erb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<% content_for :title, "New post" %>
|
||||
|
||||
<h1>New post</h1>
|
||||
|
||||
<%= render "form", post: @post %>
|
||||
|
||||
<br>
|
||||
|
||||
<div>
|
||||
<%= link_to "Back to posts", posts_path %>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue