Add posts test
This commit is contained in:
parent
0df07c478a
commit
76229c8cc5
17 changed files with 278 additions and 0 deletions
2
app/views/posts/_post.json.jbuilder
Normal file
2
app/views/posts/_post.json.jbuilder
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
json.extract! post, :id, :title, :body, :created_at, :updated_at
|
||||
json.url post_url(post, format: :json)
|
||||
Loading…
Add table
Add a link
Reference in a new issue