From 68a39d85105eb3816c4bb6c26468173579ef8e88 Mon Sep 17 00:00:00 2001 From: amb54 Date: Fri, 24 Mar 2017 11:02:03 -0700 Subject: [PATCH] Added a delete button with confirmation pop up box. Dried the code for new and edit by using a partial view _form --- README.md | 15 +- app/controllers/tasks_controller.rb | 11 + app/views/tasks/_book_summary.html.erb | 0 app/views/tasks/_form.html.erb | 9 + app/views/tasks/edit.html.erb | 22 +- app/views/tasks/index.html.erb | 6 + app/views/tasks/new.html.erb | 48 +- config/routes.rb | 5 +- db/development.sqlite3 | Bin 28672 -> 28672 bytes log/development.log | 634 +++++++++++++++++++++++++ 10 files changed, 673 insertions(+), 77 deletions(-) create mode 100644 app/views/tasks/_book_summary.html.erb create mode 100644 app/views/tasks/_form.html.erb diff --git a/README.md b/README.md index 399dc287c..c573b6f0c 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ In this baseline, you'll create a new Rails application and get started with two - create a controller action for the task `index` page which contains an array of hard-coded tasks - create an ERB view to display the tasks from the controller action - - - - diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index 1904e769b..14c58a948 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -47,6 +47,17 @@ def update redirect_to task_path(task) end + def destroy + task = Task.find(params[:id]) + task.destroy + # Todo show the list of tska// + + redirect_to tasks_path + #Another way instead of re_direct + # @tasks = Tasks.all + # render :index + end + private def task_params params.require(:task).permit(:name, :description) diff --git a/app/views/tasks/_book_summary.html.erb b/app/views/tasks/_book_summary.html.erb new file mode 100644 index 000000000..e69de29bb diff --git a/app/views/tasks/_form.html.erb b/app/views/tasks/_form.html.erb new file mode 100644 index 000000000..b6b558168 --- /dev/null +++ b/app/views/tasks/_form.html.erb @@ -0,0 +1,9 @@ +
+ <%= form_for @task do |f| %> + <%= f.label :name %> + <%= f.text_field :name %> + <%= f.label :description %> + <%= f.text_field :description %> + <%= f.submit %> + <% end %> +
diff --git a/app/views/tasks/edit.html.erb b/app/views/tasks/edit.html.erb index 7e6f644ee..bf4485e2f 100644 --- a/app/views/tasks/edit.html.erb +++ b/app/views/tasks/edit.html.erb @@ -1,21 +1 @@ - - - - - -
-

Edit task

- <%= form_for @task do |f| %> - <%= f.label :name %> - <%= f.text_field :name %> - <%= f.label :description %> - <%= f.text_field :description %> - <%= f.submit %> - <% end %> -
+<%= render partial: "form"%> diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb index 2fb378074..bcfd14517 100644 --- a/app/views/tasks/index.html.erb +++ b/app/views/tasks/index.html.erb @@ -11,6 +11,12 @@ <%= link_to task[:name], task_path(task.id) %> <%= ": "%> <%= task[:description] %> + + + <%= link_to "Delete", task_path(task), + data: {method: :delete, confirm: "Are you sure you want to delete the task #{task.name}"}%> + + <% end %> diff --git a/app/views/tasks/new.html.erb b/app/views/tasks/new.html.erb index 2dfef54d3..bf4485e2f 100644 --- a/app/views/tasks/new.html.erb +++ b/app/views/tasks/new.html.erb @@ -1,47 +1 @@ - - - - - - - - - - - -
-

Enter a new task

- <%= form_for @task do |f| %> - <%= f.label :name %> - <%= f.text_field :name %> - <%= f.label :description %> - <%= f.text_field :description %> - <%= f.submit %> - <% end %> -
+<%= render partial: "form"%> diff --git a/config/routes.rb b/config/routes.rb index cbe7da3df..f65d19b43 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -13,5 +13,8 @@ get 'tasks/:id/edit', to: 'tasks#edit', as: 'edit_task' patch 'tasks/:id', to: 'tasks#update' - + #Some sort of a route to delete a book + delete 'tasks/:id', to: 'tasks#destroy' + + end diff --git a/db/development.sqlite3 b/db/development.sqlite3 index 306ffc24d5a08c3f6252ba0e5e9c8ee1d70aa2f3..848bea397b4b768030b7634e03ea0931c58249ed 100644 GIT binary patch delta 171 zcmZp8z}WDBae_3X;6xc`M!}5dm{ent)e1bZ-Z delta 171 zcmZp8z}WDBae_1>-$WT_M!t;+OZ+XYd>H%JOCMiSVA`t=lXpz|Ol_Hg-EB zW5VRCaeMPD%}q@V%+eUy86=e*9UYU3O7oI4G7@tY67y0NQq$9o3=GY64UBb-3>AzF ftxV0WOpNsmElo^}j7XHRFflN-*p%>}pOGB^9Uv-h diff --git a/log/development.log b/log/development.log index c26eeff1e..4a8da1822 100644 --- a/log/development.log +++ b/log/development.log @@ -3482,3 +3482,637 @@ Processing by TasksController#edit as HTML Completed 200 OK in 26ms (Views: 22.9ms | ActiveRecord: 0.1ms) +Started GET "/tasks/new" for ::1 at 2017-03-23 14:12:56 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (3.6ms) +Completed 200 OK in 33ms (Views: 30.1ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-23 14:18:43 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.9ms) +Completed 200 OK in 28ms (Views: 25.7ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-23 14:18:48 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (3.5ms) +Completed 200 OK in 30ms (Views: 27.2ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-23 14:18:52 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (3.5ms) +Completed 200 OK in 29ms (Views: 25.3ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-23 14:18:56 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (4.2ms) +Completed 200 OK in 33ms (Views: 30.5ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-23 14:19:01 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.8ms) +Completed 200 OK in 27ms (Views: 24.1ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09:31:36 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.9ms) +Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.0ms) + + + +SyntaxError (/Users/annabarklund/OneDrive/02_Git/ada/rails_projects/TaskList/app/views/tasks/index.html.erb:17: syntax error, unexpected ':', expecting '}' + data {method: :delete, confirm: "Are you su + ^ +/Users/annabarklund/OneDrive/02_Git/ada/rails_projects/TaskList/app/views/tasks/index.html.erb:17: syntax error, unexpected '}', expecting ')' +delete the task #{task.name}"});@output_buffer.safe_append=' + ^ +/Users/annabarklund/OneDrive/02_Git/ada/rails_projects/TaskList/app/views/tasks/index.html.erb:21: syntax error, unexpected keyword_end, expecting ')' +'.freeze; end + ^ +/Users/annabarklund/OneDrive/02_Git/ada/rails_projects/TaskList/app/views/tasks/index.html.erb:46: syntax error, unexpected keyword_ensure, expecting ')' + ensure + ^ +/Users/annabarklund/OneDrive/02_Git/ada/rails_projects/TaskList/app/views/tasks/index.html.erb:48: syntax error, unexpected keyword_end, expecting ')' + end + ^): + +app/views/tasks/index.html.erb:17: syntax error, unexpected ':', expecting '}' +app/views/tasks/index.html.erb:17: syntax error, unexpected '}', expecting ')' +app/views/tasks/index.html.erb:21: syntax error, unexpected keyword_end, expecting ')' +app/views/tasks/index.html.erb:46: syntax error, unexpected keyword_ensure, expecting ')' +app/views/tasks/index.html.erb:48: syntax error, unexpected keyword_end, expecting ')' + Rendering /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (5.2ms) + Rendering /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) + Rendering /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (55.2ms) +Started GET "/tasks" for ::1 at 2017-03-24 09:32:01 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (12.8ms) +Completed 200 OK in 37ms (Views: 34.5ms | ActiveRecord: 0.8ms) + + +Started DELETE "/tasks/1" for ::1 at 2017-03-24 09:35:47 -0700 + +ActionController::RoutingError (uninitialized constant TaskaController): + +activesupport (5.0.2) lib/active_support/inflector/methods.rb:268:in `const_get' +activesupport (5.0.2) lib/active_support/inflector/methods.rb:268:in `block in constantize' +activesupport (5.0.2) lib/active_support/inflector/methods.rb:266:in `each' +activesupport (5.0.2) lib/active_support/inflector/methods.rb:266:in `inject' +activesupport (5.0.2) lib/active_support/inflector/methods.rb:266:in `constantize' +actionpack (5.0.2) lib/action_dispatch/http/request.rb:81:in `controller_class' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:44:in `controller' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:30:in `serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:39:in `block in serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `each' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `serve' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:725:in `call' +rack (2.0.1) lib/rack/etag.rb:25:in `call' +rack (2.0.1) lib/rack/conditional_get.rb:38:in `call' +rack (2.0.1) lib/rack/head.rb:12:in `call' +rack (2.0.1) lib/rack/session/abstract/id.rb:222:in `context' +rack (2.0.1) lib/rack/session/abstract/id.rb:216:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/cookies.rb:613:in `call' +activerecord (5.0.2) lib/active_record/migration.rb:553:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:38:in `block in call' +activesupport (5.0.2) lib/active_support/callbacks.rb:97:in `__run_callbacks__' +activesupport (5.0.2) lib/active_support/callbacks.rb:750:in `_run_call_callbacks' +activesupport (5.0.2) lib/active_support/callbacks.rb:90:in `run_callbacks' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:36:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call' +web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.4.0) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.0.2) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/request_id.rb:24:in `call' +rack (2.0.1) lib/rack/method_override.rb:22:in `call' +rack (2.0.1) lib/rack/runtime.rb:22:in `call' +activesupport (5.0.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/static.rb:136:in `call' +rack (2.0.1) lib/rack/sendfile.rb:111:in `call' +railties (5.0.2) lib/rails/engine.rb:522:in `call' +puma (3.8.2) lib/puma/configuration.rb:224:in `call' +puma (3.8.2) lib/puma/server.rb:600:in `handle_request' +puma (3.8.2) lib/puma/server.rb:435:in `process_client' +puma (3.8.2) lib/puma/server.rb:299:in `block in run' +puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread' + Rendering /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) + Rendered collection of /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [8 times] (2.7ms) + Rendered /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.9ms) + Rendering /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.4ms) + Rendered /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (73.7ms) +Started DELETE "/tasks/1" for ::1 at 2017-03-24 09:36:25 -0700 + +ActionController::RoutingError (uninitialized constant TaskaController): + +activesupport (5.0.2) lib/active_support/inflector/methods.rb:268:in `const_get' +activesupport (5.0.2) lib/active_support/inflector/methods.rb:268:in `block in constantize' +activesupport (5.0.2) lib/active_support/inflector/methods.rb:266:in `each' +activesupport (5.0.2) lib/active_support/inflector/methods.rb:266:in `inject' +activesupport (5.0.2) lib/active_support/inflector/methods.rb:266:in `constantize' +actionpack (5.0.2) lib/action_dispatch/http/request.rb:81:in `controller_class' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:44:in `controller' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:30:in `serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:39:in `block in serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `each' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `serve' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:725:in `call' +rack (2.0.1) lib/rack/etag.rb:25:in `call' +rack (2.0.1) lib/rack/conditional_get.rb:38:in `call' +rack (2.0.1) lib/rack/head.rb:12:in `call' +rack (2.0.1) lib/rack/session/abstract/id.rb:222:in `context' +rack (2.0.1) lib/rack/session/abstract/id.rb:216:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/cookies.rb:613:in `call' +activerecord (5.0.2) lib/active_record/migration.rb:553:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:38:in `block in call' +activesupport (5.0.2) lib/active_support/callbacks.rb:97:in `__run_callbacks__' +activesupport (5.0.2) lib/active_support/callbacks.rb:750:in `_run_call_callbacks' +activesupport (5.0.2) lib/active_support/callbacks.rb:90:in `run_callbacks' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:36:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call' +web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.4.0) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.0.2) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/request_id.rb:24:in `call' +rack (2.0.1) lib/rack/method_override.rb:22:in `call' +rack (2.0.1) lib/rack/runtime.rb:22:in `call' +activesupport (5.0.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/static.rb:136:in `call' +rack (2.0.1) lib/rack/sendfile.rb:111:in `call' +railties (5.0.2) lib/rails/engine.rb:522:in `call' +puma (3.8.2) lib/puma/configuration.rb:224:in `call' +puma (3.8.2) lib/puma/server.rb:600:in `handle_request' +puma (3.8.2) lib/puma/server.rb:435:in `process_client' +puma (3.8.2) lib/puma/server.rb:299:in `block in run' +puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread' + Rendering /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms) + Rendered collection of /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [8 times] (2.1ms) + Rendered /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.2ms) + Rendering /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms) + Rendered /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (69.2ms) +Started DELETE "/tasks/1" for ::1 at 2017-03-24 09:36:31 -0700 + +ActionController::RoutingError (uninitialized constant TaskaController): + +activesupport (5.0.2) lib/active_support/inflector/methods.rb:268:in `const_get' +activesupport (5.0.2) lib/active_support/inflector/methods.rb:268:in `block in constantize' +activesupport (5.0.2) lib/active_support/inflector/methods.rb:266:in `each' +activesupport (5.0.2) lib/active_support/inflector/methods.rb:266:in `inject' +activesupport (5.0.2) lib/active_support/inflector/methods.rb:266:in `constantize' +actionpack (5.0.2) lib/action_dispatch/http/request.rb:81:in `controller_class' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:44:in `controller' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:30:in `serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:39:in `block in serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `each' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `serve' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:725:in `call' +rack (2.0.1) lib/rack/etag.rb:25:in `call' +rack (2.0.1) lib/rack/conditional_get.rb:38:in `call' +rack (2.0.1) lib/rack/head.rb:12:in `call' +rack (2.0.1) lib/rack/session/abstract/id.rb:222:in `context' +rack (2.0.1) lib/rack/session/abstract/id.rb:216:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/cookies.rb:613:in `call' +activerecord (5.0.2) lib/active_record/migration.rb:553:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:38:in `block in call' +activesupport (5.0.2) lib/active_support/callbacks.rb:97:in `__run_callbacks__' +activesupport (5.0.2) lib/active_support/callbacks.rb:750:in `_run_call_callbacks' +activesupport (5.0.2) lib/active_support/callbacks.rb:90:in `run_callbacks' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:36:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call' +web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.4.0) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.0.2) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/request_id.rb:24:in `call' +rack (2.0.1) lib/rack/method_override.rb:22:in `call' +rack (2.0.1) lib/rack/runtime.rb:22:in `call' +activesupport (5.0.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/static.rb:136:in `call' +rack (2.0.1) lib/rack/sendfile.rb:111:in `call' +railties (5.0.2) lib/rails/engine.rb:522:in `call' +puma (3.8.2) lib/puma/configuration.rb:224:in `call' +puma (3.8.2) lib/puma/server.rb:600:in `handle_request' +puma (3.8.2) lib/puma/server.rb:435:in `process_client' +puma (3.8.2) lib/puma/server.rb:299:in `block in run' +puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread' + Rendering /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms) + Rendered collection of /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [8 times] (2.4ms) + Rendered /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.0ms) + Rendering /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) + Rendered /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (69.4ms) +Started GET "/tasks" for ::1 at 2017-03-24 09:38:40 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (8.6ms) +Completed 200 OK in 34ms (Views: 28.1ms | ActiveRecord: 0.6ms) + + +Started DELETE "/tasks/1" for ::1 at 2017-03-24 09:38:44 -0700 + +ActionController::RoutingError (uninitialized constant TaskaController): + +activesupport (5.0.2) lib/active_support/inflector/methods.rb:268:in `const_get' +activesupport (5.0.2) lib/active_support/inflector/methods.rb:268:in `block in constantize' +activesupport (5.0.2) lib/active_support/inflector/methods.rb:266:in `each' +activesupport (5.0.2) lib/active_support/inflector/methods.rb:266:in `inject' +activesupport (5.0.2) lib/active_support/inflector/methods.rb:266:in `constantize' +actionpack (5.0.2) lib/action_dispatch/http/request.rb:81:in `controller_class' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:44:in `controller' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:30:in `serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:39:in `block in serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `each' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `serve' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:725:in `call' +rack (2.0.1) lib/rack/etag.rb:25:in `call' +rack (2.0.1) lib/rack/conditional_get.rb:38:in `call' +rack (2.0.1) lib/rack/head.rb:12:in `call' +rack (2.0.1) lib/rack/session/abstract/id.rb:222:in `context' +rack (2.0.1) lib/rack/session/abstract/id.rb:216:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/cookies.rb:613:in `call' +activerecord (5.0.2) lib/active_record/migration.rb:553:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:38:in `block in call' +activesupport (5.0.2) lib/active_support/callbacks.rb:97:in `__run_callbacks__' +activesupport (5.0.2) lib/active_support/callbacks.rb:750:in `_run_call_callbacks' +activesupport (5.0.2) lib/active_support/callbacks.rb:90:in `run_callbacks' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:36:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call' +web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.4.0) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.0.2) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/request_id.rb:24:in `call' +rack (2.0.1) lib/rack/method_override.rb:22:in `call' +rack (2.0.1) lib/rack/runtime.rb:22:in `call' +activesupport (5.0.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/static.rb:136:in `call' +rack (2.0.1) lib/rack/sendfile.rb:111:in `call' +railties (5.0.2) lib/rails/engine.rb:522:in `call' +puma (3.8.2) lib/puma/configuration.rb:224:in `call' +puma (3.8.2) lib/puma/server.rb:600:in `handle_request' +puma (3.8.2) lib/puma/server.rb:435:in `process_client' +puma (3.8.2) lib/puma/server.rb:299:in `block in run' +puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread' + Rendering /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms) + Rendered collection of /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [8 times] (2.3ms) + Rendered /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.0ms) + Rendering /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms) + Rendered /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (70.4ms) +Started GET "/tasks" for ::1 at 2017-03-24 09:39:14 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 23ms (Views: 20.7ms | ActiveRecord: 0.1ms) + + +Started DELETE "/tasks/1" for ::1 at 2017-03-24 09:39:36 -0700 + +ActionController::RoutingError (uninitialized constant TaskaController): + +activesupport (5.0.2) lib/active_support/inflector/methods.rb:268:in `const_get' +activesupport (5.0.2) lib/active_support/inflector/methods.rb:268:in `block in constantize' +activesupport (5.0.2) lib/active_support/inflector/methods.rb:266:in `each' +activesupport (5.0.2) lib/active_support/inflector/methods.rb:266:in `inject' +activesupport (5.0.2) lib/active_support/inflector/methods.rb:266:in `constantize' +actionpack (5.0.2) lib/action_dispatch/http/request.rb:81:in `controller_class' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:44:in `controller' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:30:in `serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:39:in `block in serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `each' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `serve' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:725:in `call' +rack (2.0.1) lib/rack/etag.rb:25:in `call' +rack (2.0.1) lib/rack/conditional_get.rb:38:in `call' +rack (2.0.1) lib/rack/head.rb:12:in `call' +rack (2.0.1) lib/rack/session/abstract/id.rb:222:in `context' +rack (2.0.1) lib/rack/session/abstract/id.rb:216:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/cookies.rb:613:in `call' +activerecord (5.0.2) lib/active_record/migration.rb:553:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:38:in `block in call' +activesupport (5.0.2) lib/active_support/callbacks.rb:97:in `__run_callbacks__' +activesupport (5.0.2) lib/active_support/callbacks.rb:750:in `_run_call_callbacks' +activesupport (5.0.2) lib/active_support/callbacks.rb:90:in `run_callbacks' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:36:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call' +web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.4.0) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.0.2) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/request_id.rb:24:in `call' +rack (2.0.1) lib/rack/method_override.rb:22:in `call' +rack (2.0.1) lib/rack/runtime.rb:22:in `call' +activesupport (5.0.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/static.rb:136:in `call' +rack (2.0.1) lib/rack/sendfile.rb:111:in `call' +railties (5.0.2) lib/rails/engine.rb:522:in `call' +puma (3.8.2) lib/puma/configuration.rb:224:in `call' +puma (3.8.2) lib/puma/server.rb:600:in `handle_request' +puma (3.8.2) lib/puma/server.rb:435:in `process_client' +puma (3.8.2) lib/puma/server.rb:299:in `block in run' +puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread' + Rendering /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms) + Rendered collection of /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [8 times] (2.5ms) + Rendered /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.0ms) + Rendering /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.6ms) + Rendered /Users/annabarklund/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (69.3ms) +Started DELETE "/tasks/1" for ::1 at 2017-03-24 09:40:31 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"cxhrXwM8Bah31635qY4Z1C7E2KdY2CFg5AsLdNdD+e28WDF6kR9SWR/4brPiAaNnJ0o+rUoFdDrYbs2N4Xm6gw==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.5ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 1]] +  (0.4ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 11ms (ActiveRecord: 1.6ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09:40:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 35ms (Views: 33.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 10:25:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (9.6ms) +Completed 200 OK in 35ms (Views: 30.1ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-24 10:25:34 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (3.0ms) + Rendered tasks/new.html.erb within layouts/application (5.8ms) +Completed 200 OK in 33ms (Views: 30.0ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-24 10:25:45 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.7ms) + Rendered tasks/new.html.erb within layouts/application (3.6ms) +Completed 200 OK in 29ms (Views: 25.5ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-24 10:25:52 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 30ms (Views: 24.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/2/edit" for ::1 at 2017-03-24 10:25:54 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.1ms) + Rendered tasks/edit.html.erb within layouts/application (4.1ms) +Completed 200 OK in 32ms (Views: 29.0ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 10:27:11 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 21ms (Views: 19.2ms | ActiveRecord: 0.1ms) + + +Started GET "/" for ::1 at 2017-03-24 10:27:13 -0700 +Processing by WelcomeController#index as HTML + Rendering welcome/index.html.erb within layouts/application + Rendered welcome/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 29ms (Views: 27.1ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 10:27:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (6.1ms) +Completed 200 OK in 32ms (Views: 29.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-24 10:27:25 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.5ms) + Rendered tasks/new.html.erb within layouts/application (4.5ms) +Completed 200 OK in 30ms (Views: 26.6ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-24 10:27:32 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 26ms (Views: 22.6ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/2/edit" for ::1 at 2017-03-24 10:27:33 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.7ms) + Rendered tasks/edit.html.erb within layouts/application (5.5ms) +Completed 200 OK in 47ms (Views: 44.3ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 10:40:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (7.6ms) +Completed 200 OK in 36ms (Views: 33.0ms | ActiveRecord: 0.2ms) + + +Started GET "/" for ::1 at 2017-03-24 10:40:45 -0700 +Processing by WelcomeController#index as HTML + Rendering welcome/index.html.erb within layouts/application + Rendered welcome/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 21ms (Views: 18.9ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 10:40:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.1ms) +Completed 200 OK in 30ms (Views: 27.3ms | ActiveRecord: 0.1ms) + + +Started GET "/" for ::1 at 2017-03-24 10:41:10 -0700 +Processing by WelcomeController#index as HTML + Rendering welcome/index.html.erb within layouts/application + Rendered welcome/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 27ms (Views: 24.7ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 10:41:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (7.3ms) +Completed 200 OK in 31ms (Views: 28.3ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 10:41:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (6.8ms) +Completed 200 OK in 37ms (Views: 33.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-24 10:41:38 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.4ms) + Rendered tasks/new.html.erb within layouts/application (4.6ms) +Completed 200 OK in 29ms (Views: 25.9ms | ActiveRecord: 0.0ms) + + +Started DELETE "/tasks/2" for ::1 at 2017-03-24 10:53:49 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"iMnvkB9VPmEYyJD+VrL5JFNFrlyutUHqm811+gHKFRZHibW1jXZpkHDnU7QdPUOXWstIVrxoFLCnqLMDN/BWeA==", "id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.5ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 2]] +  (1.4ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 4ms (ActiveRecord: 2.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 10:53:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 31ms (Views: 29.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-24 10:53:56 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.5ms) + Rendered tasks/new.html.erb within layouts/application (5.3ms) +Completed 200 OK in 31ms (Views: 28.2ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-24 10:54:29 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"bsyMlgOU+SDp+vRHeOzKZS2QYcdp9LeHHs8vEfB+coGCgke2TArTzwaJY9YCOKrcT+iVewpmrbvPfQLTCl/tvA==", "task"=>{"name"=>"this is a new task", "description"=>"The description of the new task"}, "commit"=>"Create Task"} +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "this is a new task"], ["description", "The description of the new task"], ["created_at", 2017-03-24 17:54:29 UTC], ["updated_at", 2017-03-24 17:54:29 UTC]] +  (0.4ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 10:54:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 29ms (Views: 25.9ms | ActiveRecord: 0.3ms) + +