blob: a8f1b0720bd754716b5f451a01ed8e89482d7753 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
class TasksController < ApplicationController
before_action :set_tasks, only: [:show]
def show
@task = @tasks.find(params[:id])
end
private
def set_tasks
@tasks = TaskList.find(params[:task_list_id]).tasks
end
end
|