Scaffold Todo
This commit is contained in:
2
app/views/todos/_todo.json.jbuilder
Normal file
2
app/views/todos/_todo.json.jbuilder
Normal file
@@ -0,0 +1,2 @@
|
||||
json.extract! todo, :id, :name, :description, :created_at, :updated_at
|
||||
json.url todo_url(todo, format: :json)
|
||||
Reference in New Issue
Block a user