From 883cfd655587fd2e5aa0bd13de5bf6436615663c Mon Sep 17 00:00:00 2001 From: Kesin Date: Sun, 4 Oct 2015 20:28:24 +0800 Subject: [PATCH] plans page can create list and task --- app/controllers/plans_controller.rb | 2 ++ app/views/plans/show.html.haml | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/app/controllers/plans_controller.rb b/app/controllers/plans_controller.rb index c471382..60f1645 100644 --- a/app/controllers/plans_controller.rb +++ b/app/controllers/plans_controller.rb @@ -10,6 +10,8 @@ class PlansController < ApplicationController # GET /plans/1 # GET /plans/1.json def show + @list = List.new + @task = Task.new end # GET /plans/new diff --git a/app/views/plans/show.html.haml b/app/views/plans/show.html.haml index af8761c..f798549 100644 --- a/app/views/plans/show.html.haml +++ b/app/views/plans/show.html.haml @@ -5,3 +5,8 @@ = @plan.title %span.plan_description = @plan.description + .row + .col-md-3 + = render 'lists/form' + .col-md-3 + = render 'tasks/form' \ No newline at end of file