Draft of the task list api controller

This commit is contained in:
Jason Denney
2014-03-08 15:04:27 -05:00
parent dc0a567a27
commit 30d818ac87
3 changed files with 45 additions and 0 deletions
@@ -0,0 +1,15 @@
json.task_lists [@task_list] do |tl|
json.array! tl
json.links do
json.bike do
json.href api_bike_path(tl.item)
json.id tl.item_id
end
json.tasks tl.tasks do |task|
json.id task.id
json.done task.done
json.notes task.notes
json.task task.task
end
end
end