diff --git a/README.md b/README.md index 8671b10..6002b1a 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,7 @@ TUDUDI_SESSION_SECRET -e TUDUDI_USER_EMAIL=myemail@example.com \ -e TUDUDI_USER_PASSWORD=mysecurepassword \ -e TUDUDI_SESSION_SECRET=3337c138d17ac7acefa412e5db0d7ef6540905b198cc28c5bf0d11e48807a71bdfe48d82ed0a0a6eb667c937cbdd1db3e1e6073b3148bff37f73cc6398a39671 \ - -v ~/tududi_db:/db \ + -v ~/tududi_db:/usr/src/app/db \ -p 9292:9292 \ -d chrisvel/tududi:0.5 ``` diff --git a/app/routes/projects_routes.rb b/app/routes/projects_routes.rb index e686680..00801ec 100644 --- a/app/routes/projects_routes.rb +++ b/app/routes/projects_routes.rb @@ -1,7 +1,6 @@ class Sinatra::Application get '/projects' do - @projects_with_tasks = current_user.projects.with_incomplete_tasks.order(:name) - @projects_with_tasks_complete = current_user.projects.with_complete_tasks.order(:name) + @projects_with_tasks = current_user.projects.includes(:tasks, :area).order(:name) erb :'projects/index' end diff --git a/app/views/projects/index.erb b/app/views/projects/index.erb index ed44e98..0767bb6 100644 --- a/app/views/projects/index.erb +++ b/app/views/projects/index.erb @@ -3,25 +3,33 @@ New task