Adding api task_lists#show and spec, edit.haml updates

This commit is contained in:
Jason Denney
2014-03-09 19:20:00 -04:00
parent 656f0f12e4
commit 3b904f95f2
6 changed files with 66 additions and 8 deletions
@@ -8,13 +8,9 @@ class Api::V1::TaskListsController < Api::V1::BaseController
def show
end
def edit
#@task_list.update_attributes(params)
end
private
def get_task_list
@task_list = TaskList.find(params[:id])
@task_list = TaskList.find_by_id(params[:id])
if @task_list.nil?
render json: { errors: [NOT_FOUND] }, status: 404 and return
end