From 1e78e47bc79194f9282cfd04e214228f1be395e5 Mon Sep 17 00:00:00 2001 From: Jocelyn Gonzalez Date: Mon, 18 Sep 2017 16:38:52 -0700 Subject: [PATCH 1/9] created route, controller action, and ERB view for index --- Gemfile | 54 ++ Gemfile.lock | 196 ++++++ Rakefile | 6 + app/assets/config/manifest.js | 3 + app/assets/images/.keep | 0 app/assets/javascripts/application.js | 15 + app/assets/javascripts/cable.js | 13 + app/assets/javascripts/channels/.keep | 0 app/assets/javascripts/tasks.coffee | 3 + app/assets/stylesheets/application.css | 47 ++ app/assets/stylesheets/tasks.scss | 3 + app/channels/application_cable/channel.rb | 4 + app/channels/application_cable/connection.rb | 4 + app/controllers/application_controller.rb | 3 + app/controllers/concerns/.keep | 0 app/controllers/tasks_controller.rb | 23 + app/helpers/application_helper.rb | 2 + app/helpers/tasks_helper.rb | 2 + app/jobs/application_job.rb | 2 + app/mailers/application_mailer.rb | 4 + app/models/application_record.rb | 3 + app/models/concerns/.keep | 0 app/views/layouts/application.html.erb | 15 + app/views/layouts/mailer.html.erb | 13 + app/views/layouts/mailer.text.erb | 1 + app/views/tasks/create.html.erb | 2 + app/views/tasks/destroy.html.erb | 2 + app/views/tasks/edit.html.erb | 2 + app/views/tasks/index.html.erb | 9 + app/views/tasks/new.html.erb | 2 + app/views/tasks/show.html.erb | 2 + app/views/tasks/update.html.erb | 2 + bin/bundle | 3 + bin/rails | 9 + bin/rake | 9 + bin/setup | 38 ++ bin/spring | 17 + bin/update | 29 + bin/yarn | 11 + config.ru | 5 + config/application.rb | 18 + config/boot.rb | 3 + config/cable.yml | 10 + config/database.yml | 85 +++ config/environment.rb | 5 + config/environments/development.rb | 54 ++ config/environments/production.rb | 91 +++ config/environments/test.rb | 42 ++ .../application_controller_renderer.rb | 8 + config/initializers/assets.rb | 14 + config/initializers/backtrace_silencers.rb | 7 + config/initializers/cookies_serializer.rb | 5 + .../initializers/filter_parameter_logging.rb | 4 + config/initializers/inflections.rb | 16 + config/initializers/mime_types.rb | 4 + config/initializers/wrap_parameters.rb | 14 + config/locales/en.yml | 33 + config/puma.rb | 56 ++ config/routes.rb | 17 + config/secrets.yml | 32 + config/spring.rb | 6 + db/seeds.rb | 7 + lib/assets/.keep | 0 lib/tasks/.keep | 0 log/.keep | 0 log/development.log | 595 ++++++++++++++++++ package.json | 5 + public/404.html | 67 ++ public/422.html | 67 ++ public/500.html | 66 ++ public/apple-touch-icon-precomposed.png | 0 public/apple-touch-icon.png | 0 public/favicon.ico | 0 public/robots.txt | 1 + test/application_system_test_case.rb | 5 + test/controllers/.keep | 0 test/controllers/tasks_controller_test.rb | 39 ++ test/fixtures/.keep | 0 test/fixtures/files/.keep | 0 test/helpers/.keep | 0 test/integration/.keep | 0 test/mailers/.keep | 0 test/models/.keep | 0 test/system/.keep | 0 test/test_helper.rb | 9 + vendor/.keep | 0 86 files changed, 1943 insertions(+) create mode 100644 Gemfile create mode 100644 Gemfile.lock create mode 100644 Rakefile create mode 100644 app/assets/config/manifest.js create mode 100644 app/assets/images/.keep create mode 100644 app/assets/javascripts/application.js create mode 100644 app/assets/javascripts/cable.js create mode 100644 app/assets/javascripts/channels/.keep create mode 100644 app/assets/javascripts/tasks.coffee create mode 100644 app/assets/stylesheets/application.css create mode 100644 app/assets/stylesheets/tasks.scss create mode 100644 app/channels/application_cable/channel.rb create mode 100644 app/channels/application_cable/connection.rb create mode 100644 app/controllers/application_controller.rb create mode 100644 app/controllers/concerns/.keep create mode 100644 app/controllers/tasks_controller.rb create mode 100644 app/helpers/application_helper.rb create mode 100644 app/helpers/tasks_helper.rb create mode 100644 app/jobs/application_job.rb create mode 100644 app/mailers/application_mailer.rb create mode 100644 app/models/application_record.rb create mode 100644 app/models/concerns/.keep create mode 100644 app/views/layouts/application.html.erb create mode 100644 app/views/layouts/mailer.html.erb create mode 100644 app/views/layouts/mailer.text.erb create mode 100644 app/views/tasks/create.html.erb create mode 100644 app/views/tasks/destroy.html.erb create mode 100644 app/views/tasks/edit.html.erb create mode 100644 app/views/tasks/index.html.erb create mode 100644 app/views/tasks/new.html.erb create mode 100644 app/views/tasks/show.html.erb create mode 100644 app/views/tasks/update.html.erb create mode 100755 bin/bundle create mode 100755 bin/rails create mode 100755 bin/rake create mode 100755 bin/setup create mode 100755 bin/spring create mode 100755 bin/update create mode 100755 bin/yarn create mode 100644 config.ru create mode 100644 config/application.rb create mode 100644 config/boot.rb create mode 100644 config/cable.yml create mode 100644 config/database.yml create mode 100644 config/environment.rb create mode 100644 config/environments/development.rb create mode 100644 config/environments/production.rb create mode 100644 config/environments/test.rb create mode 100644 config/initializers/application_controller_renderer.rb create mode 100644 config/initializers/assets.rb create mode 100644 config/initializers/backtrace_silencers.rb create mode 100644 config/initializers/cookies_serializer.rb create mode 100644 config/initializers/filter_parameter_logging.rb create mode 100644 config/initializers/inflections.rb create mode 100644 config/initializers/mime_types.rb create mode 100644 config/initializers/wrap_parameters.rb create mode 100644 config/locales/en.yml create mode 100644 config/puma.rb create mode 100644 config/routes.rb create mode 100644 config/secrets.yml create mode 100644 config/spring.rb create mode 100644 db/seeds.rb create mode 100644 lib/assets/.keep create mode 100644 lib/tasks/.keep create mode 100644 log/.keep create mode 100644 log/development.log create mode 100644 package.json create mode 100644 public/404.html create mode 100644 public/422.html create mode 100644 public/500.html create mode 100644 public/apple-touch-icon-precomposed.png create mode 100644 public/apple-touch-icon.png create mode 100644 public/favicon.ico create mode 100644 public/robots.txt create mode 100644 test/application_system_test_case.rb create mode 100644 test/controllers/.keep create mode 100644 test/controllers/tasks_controller_test.rb create mode 100644 test/fixtures/.keep create mode 100644 test/fixtures/files/.keep create mode 100644 test/helpers/.keep create mode 100644 test/integration/.keep create mode 100644 test/mailers/.keep create mode 100644 test/models/.keep create mode 100644 test/system/.keep create mode 100644 test/test_helper.rb create mode 100644 vendor/.keep diff --git a/Gemfile b/Gemfile new file mode 100644 index 000000000..504af8615 --- /dev/null +++ b/Gemfile @@ -0,0 +1,54 @@ +source 'https://rubygems.org' + +git_source(:github) do |repo_name| + repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") + "https://github.com/#{repo_name}.git" +end + + +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '~> 5.1.4' +# Use postgresql as the database for Active Record +gem 'pg', '~> 0.18' +# Use Puma as the app server +gem 'puma', '~> 3.7' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 5.0' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# See https://github.com/rails/execjs#readme for more supported runtimes +# gem 'therubyracer', platforms: :ruby + +# Use CoffeeScript for .coffee assets and views +gem 'coffee-rails', '~> 4.2' +# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks +gem 'turbolinks', '~> 5' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.5' +# Use Redis adapter to run Action Cable in production +# gem 'redis', '~> 3.0' +# Use ActiveModel has_secure_password +# gem 'bcrypt', '~> 3.1.7' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +group :development, :test do + # Call 'byebug' anywhere in the code to stop execution and get a debugger console + gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] + # Adds support for Capybara system testing and selenium driver + gem 'capybara', '~> 2.13' + gem 'selenium-webdriver' +end + +group :development do + # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. + gem 'web-console', '>= 3.3.0' + gem 'listen', '>= 3.0.5', '< 3.2' + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' + gem 'spring-watcher-listen', '~> 2.0.0' +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 000000000..9ff8d7c6c --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,196 @@ +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.1.4) + actionpack (= 5.1.4) + nio4r (~> 2.0) + websocket-driver (~> 0.6.1) + actionmailer (5.1.4) + actionpack (= 5.1.4) + actionview (= 5.1.4) + activejob (= 5.1.4) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.1.4) + actionview (= 5.1.4) + activesupport (= 5.1.4) + rack (~> 2.0) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.1.4) + activesupport (= 5.1.4) + builder (~> 3.1) + erubi (~> 1.4) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.1.4) + activesupport (= 5.1.4) + globalid (>= 0.3.6) + activemodel (5.1.4) + activesupport (= 5.1.4) + activerecord (5.1.4) + activemodel (= 5.1.4) + activesupport (= 5.1.4) + arel (~> 8.0) + activesupport (5.1.4) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (~> 0.7) + minitest (~> 5.1) + tzinfo (~> 1.1) + addressable (2.5.2) + public_suffix (>= 2.0.2, < 4.0) + arel (8.0.0) + bindex (0.5.0) + builder (3.2.3) + byebug (9.1.0) + capybara (2.15.1) + addressable + mini_mime (>= 0.1.3) + nokogiri (>= 1.3.3) + rack (>= 1.0.0) + rack-test (>= 0.5.4) + xpath (~> 2.0) + childprocess (0.7.1) + ffi (~> 1.0, >= 1.0.11) + coffee-rails (4.2.2) + coffee-script (>= 2.2.0) + railties (>= 4.0.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + concurrent-ruby (1.0.5) + erubi (1.6.1) + execjs (2.7.0) + ffi (1.9.18) + globalid (0.4.0) + activesupport (>= 4.2.0) + i18n (0.8.6) + jbuilder (2.7.0) + activesupport (>= 4.2.0) + multi_json (>= 1.2) + listen (3.1.5) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + ruby_dep (~> 1.2) + loofah (2.0.3) + nokogiri (>= 1.5.9) + mail (2.6.6) + mime-types (>= 1.16, < 4) + method_source (0.8.2) + mime-types (3.1) + mime-types-data (~> 3.2015) + mime-types-data (3.2016.0521) + mini_mime (0.1.4) + mini_portile2 (2.2.0) + minitest (5.10.3) + multi_json (1.12.2) + nio4r (2.1.0) + nokogiri (1.8.0) + mini_portile2 (~> 2.2.0) + pg (0.21.0) + public_suffix (3.0.0) + puma (3.10.0) + rack (2.0.3) + rack-test (0.7.0) + rack (>= 1.0, < 3) + rails (5.1.4) + actioncable (= 5.1.4) + actionmailer (= 5.1.4) + actionpack (= 5.1.4) + actionview (= 5.1.4) + activejob (= 5.1.4) + activemodel (= 5.1.4) + activerecord (= 5.1.4) + activesupport (= 5.1.4) + bundler (>= 1.3.0) + railties (= 5.1.4) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.0.3) + loofah (~> 2.0) + railties (5.1.4) + actionpack (= 5.1.4) + activesupport (= 5.1.4) + method_source + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (12.1.0) + rb-fsevent (0.10.2) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + ruby_dep (1.5.0) + rubyzip (1.2.1) + sass (3.5.1) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sass-rails (5.0.6) + railties (>= 4.0.0, < 6) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + selenium-webdriver (3.5.2) + childprocess (~> 0.5) + rubyzip (~> 1.0) + spring (2.0.2) + activesupport (>= 4.2) + spring-watcher-listen (2.0.1) + listen (>= 2.7, < 4.0) + spring (>= 1.2, < 3.0) + sprockets (3.7.1) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + thor (0.20.0) + thread_safe (0.3.6) + tilt (2.0.8) + turbolinks (5.0.1) + turbolinks-source (~> 5) + turbolinks-source (5.0.3) + tzinfo (1.2.3) + thread_safe (~> 0.1) + uglifier (3.2.0) + execjs (>= 0.3.0, < 3) + web-console (3.5.1) + actionview (>= 5.0) + activemodel (>= 5.0) + bindex (>= 0.4.0) + railties (>= 5.0) + websocket-driver (0.6.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.2) + xpath (2.1.0) + nokogiri (~> 1.3) + +PLATFORMS + ruby + +DEPENDENCIES + byebug + capybara (~> 2.13) + coffee-rails (~> 4.2) + jbuilder (~> 2.5) + listen (>= 3.0.5, < 3.2) + pg (~> 0.18) + puma (~> 3.7) + rails (~> 5.1.4) + sass-rails (~> 5.0) + selenium-webdriver + spring + spring-watcher-listen (~> 2.0.0) + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +BUNDLED WITH + 1.15.4 diff --git a/Rakefile b/Rakefile new file mode 100644 index 000000000..e85f91391 --- /dev/null +++ b/Rakefile @@ -0,0 +1,6 @@ +# Add your own tasks in files placed in lib/tasks ending in .rake, +# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. + +require_relative 'config/application' + +Rails.application.load_tasks diff --git a/app/assets/config/manifest.js b/app/assets/config/manifest.js new file mode 100644 index 000000000..b16e53d6d --- /dev/null +++ b/app/assets/config/manifest.js @@ -0,0 +1,3 @@ +//= link_tree ../images +//= link_directory ../javascripts .js +//= link_directory ../stylesheets .css diff --git a/app/assets/images/.keep b/app/assets/images/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js new file mode 100644 index 000000000..46b20359f --- /dev/null +++ b/app/assets/javascripts/application.js @@ -0,0 +1,15 @@ +// This is a manifest file that'll be compiled into application.js, which will include all the files +// listed below. +// +// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's +// vendor/assets/javascripts directory can be referenced here using a relative path. +// +// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the +// compiled file. JavaScript code in this file should be added after the last require_* statement. +// +// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details +// about supported directives. +// +//= require rails-ujs +//= require turbolinks +//= require_tree . diff --git a/app/assets/javascripts/cable.js b/app/assets/javascripts/cable.js new file mode 100644 index 000000000..739aa5f02 --- /dev/null +++ b/app/assets/javascripts/cable.js @@ -0,0 +1,13 @@ +// Action Cable provides the framework to deal with WebSockets in Rails. +// You can generate new channels where WebSocket features live using the `rails generate channel` command. +// +//= require action_cable +//= require_self +//= require_tree ./channels + +(function() { + this.App || (this.App = {}); + + App.cable = ActionCable.createConsumer(); + +}).call(this); diff --git a/app/assets/javascripts/channels/.keep b/app/assets/javascripts/channels/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/app/assets/javascripts/tasks.coffee b/app/assets/javascripts/tasks.coffee new file mode 100644 index 000000000..24f83d18b --- /dev/null +++ b/app/assets/javascripts/tasks.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css new file mode 100644 index 000000000..aa2160e4d --- /dev/null +++ b/app/assets/stylesheets/application.css @@ -0,0 +1,47 @@ +/* + * This is a manifest file that'll be compiled into application.css, which will include all the files + * listed below. + * + * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's + * vendor/assets/stylesheets directory can be referenced here using a relative path. + * + * You're free to add application-wide styles to this file and they'll appear at the bottom of the + * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS + * files in this directory. Styles in this file should be added after the last require_* statement. + * It is generally better to create a new file per style scope. + * + *= require_tree . + *= require_self + */ + +body { + background: #EAE1DF; + color: #456990; +} +main { + margin: auto; + width: 70vw; + height: 100vh; + display: flex; + flex-wrap: wrap; + justify-content: space-between; + align-items: center; + box-sizing: border-box; +} +h1 { + float: left; + width: 35%; + height: 80vh; + font-family: 'Pacifico', cursive; + text-align: center; +} + +ul { + font-family: 'Shadows Into Light', cursive; + font-size: 1.5em; + border-radius: 5%; + width: 50%; + height: 60vh; + margin: auto; + padding-left: 12%; +} diff --git a/app/assets/stylesheets/tasks.scss b/app/assets/stylesheets/tasks.scss new file mode 100644 index 000000000..c5e7712d4 --- /dev/null +++ b/app/assets/stylesheets/tasks.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Tasks controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/channels/application_cable/channel.rb b/app/channels/application_cable/channel.rb new file mode 100644 index 000000000..d67269728 --- /dev/null +++ b/app/channels/application_cable/channel.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Channel < ActionCable::Channel::Base + end +end diff --git a/app/channels/application_cable/connection.rb b/app/channels/application_cable/connection.rb new file mode 100644 index 000000000..0ff5442f4 --- /dev/null +++ b/app/channels/application_cable/connection.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Connection < ActionCable::Connection::Base + end +end diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb new file mode 100644 index 000000000..1c07694e9 --- /dev/null +++ b/app/controllers/application_controller.rb @@ -0,0 +1,3 @@ +class ApplicationController < ActionController::Base + protect_from_forgery with: :exception +end diff --git a/app/controllers/concerns/.keep b/app/controllers/concerns/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb new file mode 100644 index 000000000..733131357 --- /dev/null +++ b/app/controllers/tasks_controller.rb @@ -0,0 +1,23 @@ +class TasksController < ApplicationController + def index + @tasks = ["Wash dishes", "Vacuum carpet", "Buy groceries", "Take vitamins", "Eat veggies" ] + end + + def edit + end + + def new + end + + def show + end + + def update + end + + def create + end + + def destroy + end +end diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb new file mode 100644 index 000000000..de6be7945 --- /dev/null +++ b/app/helpers/application_helper.rb @@ -0,0 +1,2 @@ +module ApplicationHelper +end diff --git a/app/helpers/tasks_helper.rb b/app/helpers/tasks_helper.rb new file mode 100644 index 000000000..ce894d00c --- /dev/null +++ b/app/helpers/tasks_helper.rb @@ -0,0 +1,2 @@ +module TasksHelper +end diff --git a/app/jobs/application_job.rb b/app/jobs/application_job.rb new file mode 100644 index 000000000..a009ace51 --- /dev/null +++ b/app/jobs/application_job.rb @@ -0,0 +1,2 @@ +class ApplicationJob < ActiveJob::Base +end diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb new file mode 100644 index 000000000..286b2239d --- /dev/null +++ b/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' +end diff --git a/app/models/application_record.rb b/app/models/application_record.rb new file mode 100644 index 000000000..10a4cba84 --- /dev/null +++ b/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/app/models/concerns/.keep b/app/models/concerns/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb new file mode 100644 index 000000000..9ecd061d5 --- /dev/null +++ b/app/views/layouts/application.html.erb @@ -0,0 +1,15 @@ + + + + + TaskList + <%= csrf_meta_tags %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + + <%= yield %> + + diff --git a/app/views/layouts/mailer.html.erb b/app/views/layouts/mailer.html.erb new file mode 100644 index 000000000..cbd34d2e9 --- /dev/null +++ b/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/app/views/layouts/mailer.text.erb b/app/views/layouts/mailer.text.erb new file mode 100644 index 000000000..37f0bddbd --- /dev/null +++ b/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/app/views/tasks/create.html.erb b/app/views/tasks/create.html.erb new file mode 100644 index 000000000..fcad439c4 --- /dev/null +++ b/app/views/tasks/create.html.erb @@ -0,0 +1,2 @@ +

Tasks#create

+

Find me in app/views/tasks/create.html.erb

diff --git a/app/views/tasks/destroy.html.erb b/app/views/tasks/destroy.html.erb new file mode 100644 index 000000000..a90559f9d --- /dev/null +++ b/app/views/tasks/destroy.html.erb @@ -0,0 +1,2 @@ +

Tasks#destroy

+

Find me in app/views/tasks/destroy.html.erb

diff --git a/app/views/tasks/edit.html.erb b/app/views/tasks/edit.html.erb new file mode 100644 index 000000000..374190308 --- /dev/null +++ b/app/views/tasks/edit.html.erb @@ -0,0 +1,2 @@ +

Tasks#edit

+

Find me in app/views/tasks/edit.html.erb

diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb new file mode 100644 index 000000000..2e1cb5327 --- /dev/null +++ b/app/views/tasks/index.html.erb @@ -0,0 +1,9 @@ +
+

TaskList

+ +
diff --git a/app/views/tasks/new.html.erb b/app/views/tasks/new.html.erb new file mode 100644 index 000000000..2484008a3 --- /dev/null +++ b/app/views/tasks/new.html.erb @@ -0,0 +1,2 @@ +

Tasks#new

+

Find me in app/views/tasks/new.html.erb

diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb new file mode 100644 index 000000000..1139224db --- /dev/null +++ b/app/views/tasks/show.html.erb @@ -0,0 +1,2 @@ +

Tasks#show

+

Find me in app/views/tasks/show.html.erb

diff --git a/app/views/tasks/update.html.erb b/app/views/tasks/update.html.erb new file mode 100644 index 000000000..fdb1ea609 --- /dev/null +++ b/app/views/tasks/update.html.erb @@ -0,0 +1,2 @@ +

Tasks#update

+

Find me in app/views/tasks/update.html.erb

diff --git a/bin/bundle b/bin/bundle new file mode 100755 index 000000000..66e9889e8 --- /dev/null +++ b/bin/bundle @@ -0,0 +1,3 @@ +#!/usr/bin/env ruby +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) +load Gem.bin_path('bundler', 'bundle') diff --git a/bin/rails b/bin/rails new file mode 100755 index 000000000..5badb2fde --- /dev/null +++ b/bin/rails @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +APP_PATH = File.expand_path('../config/application', __dir__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/bin/rake b/bin/rake new file mode 100755 index 000000000..d87d5f578 --- /dev/null +++ b/bin/rake @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +require_relative '../config/boot' +require 'rake' +Rake.application.run diff --git a/bin/setup b/bin/setup new file mode 100755 index 000000000..78c4e861d --- /dev/null +++ b/bin/setup @@ -0,0 +1,38 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # Install JavaScript dependencies if using Yarn + # system('bin/yarn') + + + # puts "\n== Copying sample files ==" + # unless File.exist?('config/database.yml') + # cp 'config/database.yml.sample', 'config/database.yml' + # end + + puts "\n== Preparing database ==" + system! 'bin/rails db:setup' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/bin/spring b/bin/spring new file mode 100755 index 000000000..fb2ec2ebb --- /dev/null +++ b/bin/spring @@ -0,0 +1,17 @@ +#!/usr/bin/env ruby + +# This file loads spring without using Bundler, in order to be fast. +# It gets overwritten when you run the `spring binstub` command. + +unless defined?(Spring) + require 'rubygems' + require 'bundler' + + lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) + spring = lockfile.specs.detect { |spec| spec.name == "spring" } + if spring + Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path + gem 'spring', spring.version + require 'spring/binstub' + end +end diff --git a/bin/update b/bin/update new file mode 100755 index 000000000..a8e4462f2 --- /dev/null +++ b/bin/update @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a way to update your development environment automatically. + # Add necessary update steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + puts "\n== Updating database ==" + system! 'bin/rails db:migrate' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/bin/yarn b/bin/yarn new file mode 100755 index 000000000..c2bacef83 --- /dev/null +++ b/bin/yarn @@ -0,0 +1,11 @@ +#!/usr/bin/env ruby +VENDOR_PATH = File.expand_path('..', __dir__) +Dir.chdir(VENDOR_PATH) do + begin + exec "yarnpkg #{ARGV.join(" ")}" + rescue Errno::ENOENT + $stderr.puts "Yarn executable was not detected in the system." + $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install" + exit 1 + end +end diff --git a/config.ru b/config.ru new file mode 100644 index 000000000..f7ba0b527 --- /dev/null +++ b/config.ru @@ -0,0 +1,5 @@ +# This file is used by Rack-based servers to start the application. + +require_relative 'config/environment' + +run Rails.application diff --git a/config/application.rb b/config/application.rb new file mode 100644 index 000000000..16136d34f --- /dev/null +++ b/config/application.rb @@ -0,0 +1,18 @@ +require_relative 'boot' + +require 'rails/all' + +# Require the gems listed in Gemfile, including any gems +# you've limited to :test, :development, or :production. +Bundler.require(*Rails.groups) + +module TaskList + class Application < Rails::Application + # Initialize configuration defaults for originally generated Rails version. + config.load_defaults 5.1 + + # Settings in config/environments/* take precedence over those specified here. + # Application configuration should go into files in config/initializers + # -- all .rb files in that directory are automatically loaded. + end +end diff --git a/config/boot.rb b/config/boot.rb new file mode 100644 index 000000000..30f5120df --- /dev/null +++ b/config/boot.rb @@ -0,0 +1,3 @@ +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) + +require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/config/cable.yml b/config/cable.yml new file mode 100644 index 000000000..cc73740fa --- /dev/null +++ b/config/cable.yml @@ -0,0 +1,10 @@ +development: + adapter: async + +test: + adapter: async + +production: + adapter: redis + url: redis://localhost:6379/1 + channel_prefix: TaskList_production diff --git a/config/database.yml b/config/database.yml new file mode 100644 index 000000000..40243c8b5 --- /dev/null +++ b/config/database.yml @@ -0,0 +1,85 @@ +# PostgreSQL. Versions 9.1 and up are supported. +# +# Install the pg driver: +# gem install pg +# On OS X with Homebrew: +# gem install pg -- --with-pg-config=/usr/local/bin/pg_config +# On OS X with MacPorts: +# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config +# On Windows: +# gem install pg +# Choose the win32 build. +# Install PostgreSQL and put its /bin directory on your path. +# +# Configure Using Gemfile +# gem 'pg' +# +default: &default + adapter: postgresql + encoding: unicode + # For details on connection pooling, see Rails configuration guide + # http://guides.rubyonrails.org/configuring.html#database-pooling + pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> + +development: + <<: *default + database: TaskList_development + + # The specified database role being used to connect to postgres. + # To create additional roles in postgres see `$ createuser --help`. + # When left blank, postgres will use the default role. This is + # the same name as the operating system user that initialized the database. + #username: TaskList + + # The password associated with the postgres role (username). + #password: + + # Connect on a TCP socket. Omitted by default since the client uses a + # domain socket that doesn't need configuration. Windows does not have + # domain sockets, so uncomment these lines. + #host: localhost + + # The TCP port the server listens on. Defaults to 5432. + # If your server runs on a different port number, change accordingly. + #port: 5432 + + # Schema search path. The server defaults to $user,public + #schema_search_path: myapp,sharedapp,public + + # Minimum log levels, in increasing order: + # debug5, debug4, debug3, debug2, debug1, + # log, notice, warning, error, fatal, and panic + # Defaults to warning. + #min_messages: notice + +# Warning: The database defined as "test" will be erased and +# re-generated from your development database when you run "rake". +# Do not set this db to the same as development or production. +test: + <<: *default + database: TaskList_test + +# As with config/secrets.yml, you never want to store sensitive information, +# like your database password, in your source code. If your source code is +# ever seen by anyone, they now have access to your database. +# +# Instead, provide the password as a unix environment variable when you boot +# the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database +# for a full rundown on how to provide these environment variables in a +# production deployment. +# +# On Heroku and other platform providers, you may have a full connection URL +# available as an environment variable. For example: +# +# DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase" +# +# You can use this database configuration with: +# +# production: +# url: <%= ENV['DATABASE_URL'] %> +# +production: + <<: *default + database: TaskList_production + username: TaskList + password: <%= ENV['TASKLIST_DATABASE_PASSWORD'] %> diff --git a/config/environment.rb b/config/environment.rb new file mode 100644 index 000000000..426333bb4 --- /dev/null +++ b/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require_relative 'application' + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/config/environments/development.rb b/config/environments/development.rb new file mode 100644 index 000000000..5187e2218 --- /dev/null +++ b/config/environments/development.rb @@ -0,0 +1,54 @@ +Rails.application.configure do + # Settings specified here will take precedence over those in config/application.rb. + + # In the development environment your application's code is reloaded on + # every request. This slows down response time but is perfect for development + # since you don't have to restart the web server when you make code changes. + config.cache_classes = false + + # Do not eager load code on boot. + config.eager_load = false + + # Show full error reports. + config.consider_all_requests_local = true + + # Enable/disable caching. By default caching is disabled. + if Rails.root.join('tmp/caching-dev.txt').exist? + config.action_controller.perform_caching = true + + config.cache_store = :memory_store + config.public_file_server.headers = { + 'Cache-Control' => "public, max-age=#{2.days.seconds.to_i}" + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + end + + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + config.action_mailer.perform_caching = false + + # Print deprecation notices to the Rails logger. + config.active_support.deprecation = :log + + # Raise an error on page load if there are pending migrations. + config.active_record.migration_error = :page_load + + # Debug mode disables concatenation and preprocessing of assets. + # This option may cause significant delays in view rendering with a large + # number of complex assets. + config.assets.debug = true + + # Suppress logger output for asset requests. + config.assets.quiet = true + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true + + # Use an evented file watcher to asynchronously detect changes in source code, + # routes, locales, etc. This feature depends on the listen gem. + config.file_watcher = ActiveSupport::EventedFileUpdateChecker +end diff --git a/config/environments/production.rb b/config/environments/production.rb new file mode 100644 index 000000000..fcd7d8b14 --- /dev/null +++ b/config/environments/production.rb @@ -0,0 +1,91 @@ +Rails.application.configure do + # Settings specified here will take precedence over those in config/application.rb. + + # Code is not reloaded between requests. + config.cache_classes = true + + # Eager load code on boot. This eager loads most of Rails and + # your application in memory, allowing both threaded web servers + # and those relying on copy on write to perform better. + # Rake tasks automatically ignore this option for performance. + config.eager_load = true + + # Full error reports are disabled and caching is turned on. + config.consider_all_requests_local = false + config.action_controller.perform_caching = true + + # Attempt to read encrypted secrets from `config/secrets.yml.enc`. + # Requires an encryption key in `ENV["RAILS_MASTER_KEY"]` or + # `config/secrets.yml.key`. + config.read_encrypted_secrets = true + + # Disable serving static files from the `/public` folder by default since + # Apache or NGINX already handles this. + config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + + # Compress JavaScripts and CSS. + config.assets.js_compressor = :uglifier + # config.assets.css_compressor = :sass + + # Do not fallback to assets pipeline if a precompiled asset is missed. + config.assets.compile = false + + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb + + # Enable serving of images, stylesheets, and JavaScripts from an asset server. + # config.action_controller.asset_host = 'http://assets.example.com' + + # Specifies the header that your server uses for sending files. + # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache + # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX + + # Mount Action Cable outside main process or domain + # config.action_cable.mount_path = nil + # config.action_cable.url = 'wss://example.com/cable' + # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. + # config.force_ssl = true + + # Use the lowest log level to ensure availability of diagnostic information + # when problems arise. + config.log_level = :debug + + # Prepend all log lines with the following tags. + config.log_tags = [ :request_id ] + + # Use a different cache store in production. + # config.cache_store = :mem_cache_store + + # Use a real queuing backend for Active Job (and separate queues per environment) + # config.active_job.queue_adapter = :resque + # config.active_job.queue_name_prefix = "TaskList_#{Rails.env}" + config.action_mailer.perform_caching = false + + # Ignore bad email addresses and do not raise email delivery errors. + # Set this to true and configure the email server for immediate delivery to raise delivery errors. + # config.action_mailer.raise_delivery_errors = false + + # Enable locale fallbacks for I18n (makes lookups for any locale fall back to + # the I18n.default_locale when a translation cannot be found). + config.i18n.fallbacks = true + + # Send deprecation notices to registered listeners. + config.active_support.deprecation = :notify + + # Use default logging formatter so that PID and timestamp are not suppressed. + config.log_formatter = ::Logger::Formatter.new + + # Use a different logger for distributed setups. + # require 'syslog/logger' + # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') + + if ENV["RAILS_LOG_TO_STDOUT"].present? + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false +end diff --git a/config/environments/test.rb b/config/environments/test.rb new file mode 100644 index 000000000..8e5cbde53 --- /dev/null +++ b/config/environments/test.rb @@ -0,0 +1,42 @@ +Rails.application.configure do + # Settings specified here will take precedence over those in config/application.rb. + + # The test environment is used exclusively to run your application's + # test suite. You never need to work with it otherwise. Remember that + # your test database is "scratch space" for the test suite and is wiped + # and recreated between test runs. Don't rely on the data there! + config.cache_classes = true + + # Do not eager load code on boot. This avoids loading your whole application + # just for the purpose of running a single test. If you are using a tool that + # preloads Rails for running tests, you may have to set it to true. + config.eager_load = false + + # Configure public file server for tests with Cache-Control for performance. + config.public_file_server.enabled = true + config.public_file_server.headers = { + 'Cache-Control' => "public, max-age=#{1.hour.seconds.to_i}" + } + + # Show full error reports and disable caching. + config.consider_all_requests_local = true + config.action_controller.perform_caching = false + + # Raise exceptions instead of rendering exception templates. + config.action_dispatch.show_exceptions = false + + # Disable request forgery protection in test environment. + config.action_controller.allow_forgery_protection = false + config.action_mailer.perform_caching = false + + # Tell Action Mailer not to deliver emails to the real world. + # The :test delivery method accumulates sent emails in the + # ActionMailer::Base.deliveries array. + config.action_mailer.delivery_method = :test + + # Print deprecation notices to the stderr. + config.active_support.deprecation = :stderr + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true +end diff --git a/config/initializers/application_controller_renderer.rb b/config/initializers/application_controller_renderer.rb new file mode 100644 index 000000000..89d2efab2 --- /dev/null +++ b/config/initializers/application_controller_renderer.rb @@ -0,0 +1,8 @@ +# Be sure to restart your server when you modify this file. + +# ActiveSupport::Reloader.to_prepare do +# ApplicationController.renderer.defaults.merge!( +# http_host: 'example.org', +# https: false +# ) +# end diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb new file mode 100644 index 000000000..4b828e80c --- /dev/null +++ b/config/initializers/assets.rb @@ -0,0 +1,14 @@ +# Be sure to restart your server when you modify this file. + +# Version of your assets, change this if you want to expire all your assets. +Rails.application.config.assets.version = '1.0' + +# Add additional assets to the asset load path. +# Rails.application.config.assets.paths << Emoji.images_path +# Add Yarn node_modules folder to the asset load path. +Rails.application.config.assets.paths << Rails.root.join('node_modules') + +# Precompile additional assets. +# application.js, application.css, and all non-JS/CSS in the app/assets +# folder are already added. +# Rails.application.config.assets.precompile += %w( admin.js admin.css ) diff --git a/config/initializers/backtrace_silencers.rb b/config/initializers/backtrace_silencers.rb new file mode 100644 index 000000000..59385cdf3 --- /dev/null +++ b/config/initializers/backtrace_silencers.rb @@ -0,0 +1,7 @@ +# Be sure to restart your server when you modify this file. + +# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. +# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } + +# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code. +# Rails.backtrace_cleaner.remove_silencers! diff --git a/config/initializers/cookies_serializer.rb b/config/initializers/cookies_serializer.rb new file mode 100644 index 000000000..5a6a32d37 --- /dev/null +++ b/config/initializers/cookies_serializer.rb @@ -0,0 +1,5 @@ +# Be sure to restart your server when you modify this file. + +# Specify a serializer for the signed and encrypted cookie jars. +# Valid options are :json, :marshal, and :hybrid. +Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/config/initializers/filter_parameter_logging.rb b/config/initializers/filter_parameter_logging.rb new file mode 100644 index 000000000..4a994e1e7 --- /dev/null +++ b/config/initializers/filter_parameter_logging.rb @@ -0,0 +1,4 @@ +# Be sure to restart your server when you modify this file. + +# Configure sensitive parameters which will be filtered from the log file. +Rails.application.config.filter_parameters += [:password] diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb new file mode 100644 index 000000000..ac033bf9d --- /dev/null +++ b/config/initializers/inflections.rb @@ -0,0 +1,16 @@ +# Be sure to restart your server when you modify this file. + +# Add new inflection rules using the following format. Inflections +# are locale specific, and you may define rules for as many different +# locales as you wish. All of these examples are active by default: +# ActiveSupport::Inflector.inflections(:en) do |inflect| +# inflect.plural /^(ox)$/i, '\1en' +# inflect.singular /^(ox)en/i, '\1' +# inflect.irregular 'person', 'people' +# inflect.uncountable %w( fish sheep ) +# end + +# These inflection rules are supported but not enabled by default: +# ActiveSupport::Inflector.inflections(:en) do |inflect| +# inflect.acronym 'RESTful' +# end diff --git a/config/initializers/mime_types.rb b/config/initializers/mime_types.rb new file mode 100644 index 000000000..dc1899682 --- /dev/null +++ b/config/initializers/mime_types.rb @@ -0,0 +1,4 @@ +# Be sure to restart your server when you modify this file. + +# Add new mime types for use in respond_to blocks: +# Mime::Type.register "text/richtext", :rtf diff --git a/config/initializers/wrap_parameters.rb b/config/initializers/wrap_parameters.rb new file mode 100644 index 000000000..bbfc3961b --- /dev/null +++ b/config/initializers/wrap_parameters.rb @@ -0,0 +1,14 @@ +# Be sure to restart your server when you modify this file. + +# This file contains settings for ActionController::ParamsWrapper which +# is enabled by default. + +# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. +ActiveSupport.on_load(:action_controller) do + wrap_parameters format: [:json] +end + +# To enable root element in JSON for ActiveRecord objects. +# ActiveSupport.on_load(:active_record) do +# self.include_root_in_json = true +# end diff --git a/config/locales/en.yml b/config/locales/en.yml new file mode 100644 index 000000000..decc5a857 --- /dev/null +++ b/config/locales/en.yml @@ -0,0 +1,33 @@ +# Files in the config/locales directory are used for internationalization +# and are automatically loaded by Rails. If you want to use locales other +# than English, add the necessary files in this directory. +# +# To use the locales, use `I18n.t`: +# +# I18n.t 'hello' +# +# In views, this is aliased to just `t`: +# +# <%= t('hello') %> +# +# To use a different locale, set it with `I18n.locale`: +# +# I18n.locale = :es +# +# This would use the information in config/locales/es.yml. +# +# The following keys must be escaped otherwise they will not be retrieved by +# the default I18n backend: +# +# true, false, on, off, yes, no +# +# Instead, surround them with single quotes. +# +# en: +# 'true': 'foo' +# +# To learn more, please read the Rails Internationalization guide +# available at http://guides.rubyonrails.org/i18n.html. + +en: + hello: "Hello world" diff --git a/config/puma.rb b/config/puma.rb new file mode 100644 index 000000000..1e19380dc --- /dev/null +++ b/config/puma.rb @@ -0,0 +1,56 @@ +# Puma can serve each request in a thread from an internal thread pool. +# The `threads` method setting takes two numbers: a minimum and maximum. +# Any libraries that use thread pools should be configured to match +# the maximum value specified for Puma. Default is set to 5 threads for minimum +# and maximum; this matches the default thread size of Active Record. +# +threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 } +threads threads_count, threads_count + +# Specifies the `port` that Puma will listen on to receive requests; default is 3000. +# +port ENV.fetch("PORT") { 3000 } + +# Specifies the `environment` that Puma will run in. +# +environment ENV.fetch("RAILS_ENV") { "development" } + +# Specifies the number of `workers` to boot in clustered mode. +# Workers are forked webserver processes. If using threads and workers together +# the concurrency of the application would be max `threads` * `workers`. +# Workers do not work on JRuby or Windows (both of which do not support +# processes). +# +# workers ENV.fetch("WEB_CONCURRENCY") { 2 } + +# Use the `preload_app!` method when specifying a `workers` number. +# This directive tells Puma to first boot the application and load code +# before forking the application. This takes advantage of Copy On Write +# process behavior so workers use less memory. If you use this option +# you need to make sure to reconnect any threads in the `on_worker_boot` +# block. +# +# preload_app! + +# If you are preloading your application and using Active Record, it's +# recommended that you close any connections to the database before workers +# are forked to prevent connection leakage. +# +# before_fork do +# ActiveRecord::Base.connection_pool.disconnect! if defined?(ActiveRecord) +# end + +# The code in the `on_worker_boot` will be called if you are using +# clustered mode by specifying a number of `workers`. After each worker +# process is booted, this block will be run. If you are using the `preload_app!` +# option, you will want to use this block to reconnect to any threads +# or connections that may have been created at application boot, as Ruby +# cannot share connections between processes. +# +# on_worker_boot do +# ActiveRecord::Base.establish_connection if defined?(ActiveRecord) +# end +# + +# Allow puma to be restarted by `rails restart` command. +plugin :tmp_restart diff --git a/config/routes.rb b/config/routes.rb new file mode 100644 index 000000000..8241d4def --- /dev/null +++ b/config/routes.rb @@ -0,0 +1,17 @@ +Rails.application.routes.draw do + get '/tasks', to: 'tasks#index', as: 'tasks' #tasks_path + + get 'tasks/edit' + + get 'tasks/new' + + get 'tasks/show' + + get 'tasks/update' + + get 'tasks/create' + + get 'tasks/destroy' + + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html +end diff --git a/config/secrets.yml b/config/secrets.yml new file mode 100644 index 000000000..1f48eb453 --- /dev/null +++ b/config/secrets.yml @@ -0,0 +1,32 @@ +# Be sure to restart your server when you modify this file. + +# Your secret key is used for verifying the integrity of signed cookies. +# If you change this key, all old signed cookies will become invalid! + +# Make sure the secret is at least 30 characters and all random, +# no regular words or you'll be exposed to dictionary attacks. +# You can use `rails secret` to generate a secure secret key. + +# Make sure the secrets in this file are kept private +# if you're sharing your code publicly. + +# Shared secrets are available across all environments. + +# shared: +# api_key: a1B2c3D4e5F6 + +# Environmental secrets are only available for that specific environment. + +development: + secret_key_base: f6229f444d8b2c32016b8af9df53cb4e9ac149fed76af9256d74e96cfd6000c09ec7c7e5b75bd24849e21f8246af6b525ccfc05aa325d11516dcd8ae469d5e59 + +test: + secret_key_base: 86a96834035159de4d5ed9f5b1daed5ce1858f2b4310d6292be57e62fd4cbbb94fc21998253f22a4500cc7c12f981babe059a455241d6f4871a5224d7bc623f3 + +# Do not keep production secrets in the unencrypted secrets file. +# Instead, either read values from the environment. +# Or, use `bin/rails secrets:setup` to configure encrypted secrets +# and move the `production:` environment over there. + +production: + secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> diff --git a/config/spring.rb b/config/spring.rb new file mode 100644 index 000000000..c9119b40c --- /dev/null +++ b/config/spring.rb @@ -0,0 +1,6 @@ +%w( + .ruby-version + .rbenv-vars + tmp/restart.txt + tmp/caching-dev.txt +).each { |path| Spring.watch(path) } diff --git a/db/seeds.rb b/db/seeds.rb new file mode 100644 index 000000000..1beea2acc --- /dev/null +++ b/db/seeds.rb @@ -0,0 +1,7 @@ +# This file should contain all the record creation needed to seed the database with its default values. +# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). +# +# Examples: +# +# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) +# Character.create(name: 'Luke', movie: movies.first) diff --git a/lib/assets/.keep b/lib/assets/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/lib/tasks/.keep b/lib/tasks/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/log/.keep b/log/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/log/development.log b/log/development.log new file mode 100644 index 000000000..8c031ec45 --- /dev/null +++ b/log/development.log @@ -0,0 +1,595 @@ +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:38:07 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 901ms (Views: 442.6ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-18 15:38:15 -0700 +Processing by Rails::WelcomeController#index as HTML + Rendering /Users/jocelyngonzalez/.rvm/gems/ruby-2.4.0/gems/railties-5.1.4/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/jocelyngonzalez/.rvm/gems/ruby-2.4.0/gems/railties-5.1.4/lib/rails/templates/rails/welcome/index.html.erb (3.0ms) +Completed 200 OK in 12ms (Views: 6.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:38:20 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 31ms (Views: 28.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:42:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 37ms (Views: 33.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:48:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 40ms (Views: 38.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:54:11 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 43ms (Views: 41.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:55:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 42ms (Views: 40.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:56:00 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 24ms (Views: 22.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:56:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 39ms (Views: 37.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:57:39 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 25ms (Views: 23.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:57:48 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 23ms (Views: 21.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:58:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 26ms (Views: 25.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:58:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 29ms (Views: 27.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:58:50 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 26ms (Views: 23.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:59:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 40ms (Views: 36.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:59:48 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 25ms (Views: 22.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:00:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 26ms (Views: 23.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:00:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 27ms (Views: 24.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:02:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 28ms (Views: 26.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:03:14 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 43ms (Views: 40.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:03:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 46ms (Views: 39.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:04:26 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 38ms (Views: 36.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:07:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.8ms) +Completed 200 OK in 40ms (Views: 38.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:08:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.8ms) +Completed 200 OK in 35ms (Views: 33.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:08:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 25ms (Views: 22.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:09:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 28ms (Views: 26.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:09:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 39ms (Views: 35.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:09:37 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 24ms (Views: 22.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:11:48 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 42ms (Views: 40.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:12:13 -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 200 OK in 26ms (Views: 24.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:12:20 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 31ms (Views: 28.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:12:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 36ms (Views: 34.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:14:00 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 31ms (Views: 29.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:14:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 24ms (Views: 21.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:14:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 25ms (Views: 22.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:14:55 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 31ms (Views: 29.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:15:00 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 19ms (Views: 17.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:15:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 30ms (Views: 28.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:15:37 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.8ms) +Completed 200 OK in 27ms (Views: 25.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:15:48 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 25ms (Views: 22.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:15:55 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 25ms (Views: 23.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:16:07 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 23ms (Views: 21.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:16:43 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 40ms (Views: 36.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:16:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 27ms (Views: 25.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:17:01 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 18ms (Views: 16.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:17:24 -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 200 OK in 25ms (Views: 23.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:17:39 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 36ms (Views: 33.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:17:50 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.8ms) +Completed 200 OK in 42ms (Views: 39.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:18:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 24ms (Views: 22.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:18:23 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 44ms (Views: 41.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:18:57 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 24ms (Views: 22.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:19:52 -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 200 OK in 39ms (Views: 37.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:23:46 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 41ms (Views: 39.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:24:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 25ms (Views: 24.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:24:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 29ms (Views: 26.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:25:00 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 29ms (Views: 27.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:25:14 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 37ms (Views: 34.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:25:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 48ms (Views: 46.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:26:02 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 31ms (Views: 28.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:27:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 42ms (Views: 40.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:27: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.4ms) +Completed 200 OK in 41ms (Views: 39.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:27:55 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 38ms (Views: 36.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:28:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 30ms (Views: 28.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:28:23 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 29ms (Views: 27.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:28:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 35ms (Views: 33.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:29:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 17ms (Views: 15.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:29:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 20ms (Views: 17.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:29:57 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 25ms (Views: 23.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:30:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 19ms (Views: 15.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:30:39 -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 200 OK in 30ms (Views: 28.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:31:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 25ms (Views: 22.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:31:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.8ms) +Completed 200 OK in 42ms (Views: 39.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:31:48 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 50ms (Views: 48.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:32:11 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 28ms (Views: 26.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:32:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 33ms (Views: 30.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:32:40 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 47ms (Views: 45.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:33:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 39ms (Views: 36.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:33:39 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 38ms (Views: 36.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:33:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 17ms (Views: 15.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:33:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 27ms (Views: 25.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:34:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 26ms (Views: 24.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:34:40 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 36ms (Views: 33.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:35:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 33ms (Views: 31.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:36:01 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 27ms (Views: 25.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:36:23 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 31ms (Views: 28.3ms) + + diff --git a/package.json b/package.json new file mode 100644 index 000000000..f9cbc5515 --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "name": "TaskList", + "private": true, + "dependencies": {} +} diff --git a/public/404.html b/public/404.html new file mode 100644 index 000000000..2be3af26f --- /dev/null +++ b/public/404.html @@ -0,0 +1,67 @@ + + + + The page you were looking for doesn't exist (404) + + + + + + +
+
+

The page you were looking for doesn't exist.

+

You may have mistyped the address or the page may have moved.

+
+

If you are the application owner check the logs for more information.

+
+ + diff --git a/public/422.html b/public/422.html new file mode 100644 index 000000000..c08eac0d1 --- /dev/null +++ b/public/422.html @@ -0,0 +1,67 @@ + + + + The change you wanted was rejected (422) + + + + + + +
+
+

The change you wanted was rejected.

+

Maybe you tried to change something you didn't have access to.

+
+

If you are the application owner check the logs for more information.

+
+ + diff --git a/public/500.html b/public/500.html new file mode 100644 index 000000000..78a030af2 --- /dev/null +++ b/public/500.html @@ -0,0 +1,66 @@ + + + + We're sorry, but something went wrong (500) + + + + + + +
+
+

We're sorry, but something went wrong.

+
+

If you are the application owner check the logs for more information.

+
+ + diff --git a/public/apple-touch-icon-precomposed.png b/public/apple-touch-icon-precomposed.png new file mode 100644 index 000000000..e69de29bb diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png new file mode 100644 index 000000000..e69de29bb diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 000000000..e69de29bb diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 000000000..37b576a4a --- /dev/null +++ b/public/robots.txt @@ -0,0 +1 @@ +# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb new file mode 100644 index 000000000..d19212abd --- /dev/null +++ b/test/application_system_test_case.rb @@ -0,0 +1,5 @@ +require "test_helper" + +class ApplicationSystemTestCase < ActionDispatch::SystemTestCase + driven_by :selenium, using: :chrome, screen_size: [1400, 1400] +end diff --git a/test/controllers/.keep b/test/controllers/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/controllers/tasks_controller_test.rb b/test/controllers/tasks_controller_test.rb new file mode 100644 index 000000000..cfd715385 --- /dev/null +++ b/test/controllers/tasks_controller_test.rb @@ -0,0 +1,39 @@ +require 'test_helper' + +class TasksControllerTest < ActionDispatch::IntegrationTest + test "should get index" do + get tasks_index_url + assert_response :success + end + + test "should get edit" do + get tasks_edit_url + assert_response :success + end + + test "should get new" do + get tasks_new_url + assert_response :success + end + + test "should get show" do + get tasks_show_url + assert_response :success + end + + test "should get update" do + get tasks_update_url + assert_response :success + end + + test "should get create" do + get tasks_create_url + assert_response :success + end + + test "should get destroy" do + get tasks_destroy_url + assert_response :success + end + +end diff --git a/test/fixtures/.keep b/test/fixtures/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/fixtures/files/.keep b/test/fixtures/files/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/helpers/.keep b/test/helpers/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/integration/.keep b/test/integration/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/mailers/.keep b/test/mailers/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/models/.keep b/test/models/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/system/.keep b/test/system/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/test_helper.rb b/test/test_helper.rb new file mode 100644 index 000000000..e3c4ff0b8 --- /dev/null +++ b/test/test_helper.rb @@ -0,0 +1,9 @@ +require File.expand_path('../../config/environment', __FILE__) +require 'rails/test_help' + +class ActiveSupport::TestCase + # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. + fixtures :all + + # Add more helper methods to be used by all tests here... +end diff --git a/vendor/.keep b/vendor/.keep new file mode 100644 index 000000000..e69de29bb From e96fcb4a37515ec8d81b7273c368710c11fbffa9 Mon Sep 17 00:00:00 2001 From: Jocelyn Gonzalez Date: Mon, 18 Sep 2017 21:45:09 -0700 Subject: [PATCH 2/9] finished wave zero, added some css, including buttons --- app/assets/stylesheets/application.css | 26 +- app/views/tasks/index.html.erb | 7 + log/development.log | 716 +++++++++++++++++++++++++ 3 files changed, 745 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index aa2160e4d..5bdb35ccc 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -27,21 +27,39 @@ main { justify-content: space-between; align-items: center; box-sizing: border-box; + border: 1px solid red; } h1 { float: left; width: 35%; height: 80vh; font-family: 'Pacifico', cursive; + font-size: 3em; text-align: center; + border: 1px solid black; } - ul { font-family: 'Shadows Into Light', cursive; font-size: 1.5em; + background: #D5CDCB; border-radius: 5%; width: 50%; - height: 60vh; - margin: auto; - padding-left: 12%; + height: auto; + padding-left: 10%; + padding-bottom: 2%; + border: 5px solid #028090; + box-shadow: -2px 2px 2px #114B5F; +} +input { + display: inline-block; + float: left; + font-size: .6em; + width: auto; + background: none; + border: 0; + outline:none; + color: #F45B69; +} +.clearfix { + clear: both; } diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb index 2e1cb5327..3efcce272 100644 --- a/app/views/tasks/index.html.erb +++ b/app/views/tasks/index.html.erb @@ -1,9 +1,16 @@

TaskList

+

    My Tasks

    <% @tasks.each do |task| %>
  • <%= task %>
  • +
    + <%= button_to "Mark as Complete" + " | " %> + <%= button_to "Edit" + " | " %> + <%= button_to "Delete" %> +
    +
    <% end %>
diff --git a/log/development.log b/log/development.log index 8c031ec45..fe33b6549 100644 --- a/log/development.log +++ b/log/development.log @@ -593,3 +593,719 @@ Processing by TasksController#index as HTML Completed 200 OK in 31ms (Views: 28.3ms) +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 20:43:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 794ms (Views: 332.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 20:47:07 -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 200 OK in 50ms (Views: 48.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 20:48:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 73ms (Views: 71.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 20:48:47 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 28ms (Views: 26.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 20:50:07 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 45ms (Views: 43.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 20:50:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 50ms (Views: 48.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 20:51:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.8ms) +Completed 200 OK in 36ms (Views: 33.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 20:52:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.8ms) +Completed 200 OK in 51ms (Views: 49.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 20:52:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 48ms (Views: 46.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 20:53:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 38ms (Views: 35.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 20:53:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 33ms (Views: 31.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 20:53:48 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 29ms (Views: 27.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 20:53:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 20ms (Views: 17.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 20:54:02 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 30ms (Views: 27.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 20:54:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 29ms (Views: 27.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 20:54:57 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 35ms (Views: 31.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 20:55:07 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.8ms) +Completed 200 OK in 39ms (Views: 36.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 20:55:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 28ms (Views: 26.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 20:55:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 26ms (Views: 23.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:05:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (230.6ms) +Completed 500 Internal Server Error in 235ms + + + +ActionView::Template::Error (undefined local variable or method `num' for #<#:0x007fa66bdeffa8>): + 1:
+ 2:

TaskList

+ 3: <%= button_to "Mark as Complete", update_tasks_path(@tasks[num]) %> + 4: <%= button_to "Edit", edit_tasks_path(@tasks[num]) %> + 5: <%= button_to "Delete", delete_task_path(@tasks[num]), method: :delete %> + 6:
    + +app/views/tasks/index.html.erb:3:in `_app_views_tasks_index_html_erb___3120710947551328384_70176375499660' +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:07:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (119.1ms) +Completed 500 Internal Server Error in 127ms + + + +ActionView::Template::Error (undefined method `update_task_path' for #<#:0x007fa66cb54810> +Did you mean? tasks_update_path): + 1:
    + 2:

    TaskList

    + 3: <%= button_to "Mark as Complete", update_task_path(@tasks) %> + 4: <%= button_to "Edit", edit_task_path(@tasks) %> + 5: <%= button_to "Delete", delete_task_path(@tasks), method: :delete %> + 6:
      + +app/views/tasks/index.html.erb:3:in `_app_views_tasks_index_html_erb___3120710947551328384_70176382560600' +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:07:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 40ms (Views: 37.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:08:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (7.0ms) +Completed 200 OK in 39ms (Views: 37.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:10:52 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (5.5ms) +Completed 200 OK in 56ms (Views: 52.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:11:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 31ms (Views: 29.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:11:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 36ms (Views: 33.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:12:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 33ms (Views: 30.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:12:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 38ms (Views: 35.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:12:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 33ms (Views: 31.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:12:40 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 22ms (Views: 20.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:13:01 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 22ms (Views: 20.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:13:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 23ms (Views: 20.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:14:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (5.5ms) +Completed 200 OK in 21ms (Views: 19.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:14:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 19ms (Views: 17.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:14:46 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 32ms (Views: 29.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:15:01 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 29ms (Views: 26.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:19:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (13.1ms) +Completed 200 OK in 88ms (Views: 78.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:19:26 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (7.5ms) +Completed 200 OK in 97ms (Views: 93.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:19:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 50ms (Views: 48.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:19:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 55ms (Views: 52.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:20:47 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (6.0ms) +Completed 200 OK in 32ms (Views: 30.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:21:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 49ms (Views: 47.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:22:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (10.2ms) +Completed 200 OK in 36ms (Views: 33.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:22:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 33ms (Views: 31.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:23:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (5.4ms) +Completed 200 OK in 40ms (Views: 38.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:23:20 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (5.3ms) +Completed 200 OK in 30ms (Views: 28.3ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-18 21:23:26 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks"): + +actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.3) lib/rack/method_override.rb:22:in `call' +rack (2.0.3) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.3) lib/rack/sendfile.rb:111:in `call' +railties (5.1.4) lib/rails/engine.rb:522:in `call' +puma (3.10.0) lib/puma/configuration.rb:225:in `call' +puma (3.10.0) lib/puma/server.rb:605:in `handle_request' +puma (3.10.0) lib/puma/server.rb:437:in `process_client' +puma (3.10.0) lib/puma/server.rb:301:in `block in run' +puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:24:07 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 34ms (Views: 31.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:25:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (4.8ms) +Completed 200 OK in 33ms (Views: 31.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:27:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (6.4ms) +Completed 200 OK in 47ms (Views: 45.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:27:39 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 41ms (Views: 39.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:27:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (5.4ms) +Completed 200 OK in 22ms (Views: 20.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:27:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 37ms (Views: 34.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:28:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 42ms (Views: 40.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:28:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 37ms (Views: 34.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:29:36 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (5.8ms) +Completed 200 OK in 28ms (Views: 27.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:30:39 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (5.8ms) +Completed 200 OK in 46ms (Views: 44.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:30:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 20ms (Views: 18.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:31:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (5.9ms) +Completed 200 OK in 36ms (Views: 34.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:31:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 30ms (Views: 27.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:31:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (5.7ms) +Completed 200 OK in 20ms (Views: 18.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:31:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (5.7ms) +Completed 200 OK in 35ms (Views: 33.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:32:57 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (5.4ms) +Completed 200 OK in 34ms (Views: 32.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:33:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 33ms (Views: 31.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:33:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 37ms (Views: 34.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:34:14 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 33ms (Views: 31.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:34:26 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 35ms (Views: 32.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:34:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 23ms (Views: 19.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:34:57 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 40ms (Views: 37.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:35:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (5.4ms) +Completed 200 OK in 20ms (Views: 18.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:35:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (5.1ms) +Completed 200 OK in 25ms (Views: 22.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:35:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 29ms (Views: 27.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:35:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 28ms (Views: 26.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:36:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (5.6ms) +Completed 200 OK in 39ms (Views: 37.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:36:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (10.4ms) +Completed 200 OK in 81ms (Views: 78.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:36:46 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (10.4ms) +Completed 200 OK in 63ms (Views: 60.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:37:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 29ms (Views: 27.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:37:52 -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 6ms + + + +SyntaxError (/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/index.html.erb:9: syntax error, unexpected ')' +utton_to "Mark as Complete" |);@output_buffer.safe_append=' + ^ +/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/index.html.erb:10: syntax error, unexpected ')' +r.append=( button_to "Edit" |);@output_buffer.safe_append=' + ^ +/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/index.html.erb:14: syntax error, unexpected keyword_end, expecting ')' +'.freeze; end + ^ +/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/index.html.erb:19: syntax error, unexpected keyword_ensure, expecting ')' + ensure + ^ +/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/index.html.erb:21: syntax error, unexpected keyword_end, expecting ')' + end + ^): + +app/views/tasks/index.html.erb:9: syntax error, unexpected ')' +app/views/tasks/index.html.erb:10: syntax error, unexpected ')' +app/views/tasks/index.html.erb:14: syntax error, unexpected keyword_end, expecting ')' +app/views/tasks/index.html.erb:19: syntax error, unexpected keyword_ensure, expecting ')' +app/views/tasks/index.html.erb:21: syntax error, unexpected keyword_end, expecting ')' +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:38:26 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 23ms (Views: 21.5ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-18 21:38:31 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks"): + +actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.3) lib/rack/method_override.rb:22:in `call' +rack (2.0.3) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.3) lib/rack/sendfile.rb:111:in `call' +railties (5.1.4) lib/rails/engine.rb:522:in `call' +puma (3.10.0) lib/puma/configuration.rb:225:in `call' +puma (3.10.0) lib/puma/server.rb:605:in `handle_request' +puma (3.10.0) lib/puma/server.rb:437:in `process_client' +puma (3.10.0) lib/puma/server.rb:301:in `block in run' +puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:38:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 21ms (Views: 19.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:39: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.7ms) +Completed 500 Internal Server Error in 5ms + + + +SyntaxError (/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/index.html.erb:10: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '(' +.append=( " | " + button_to "Edit" + " | " );@output_buffe + ^): + +app/views/tasks/index.html.erb:10: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '(' +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:40:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (9.5ms) +Completed 200 OK in 35ms (Views: 33.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 21:40:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 37ms (Views: 34.9ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-18 21:40:50 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks"): + +actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.3) lib/rack/method_override.rb:22:in `call' +rack (2.0.3) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.3) lib/rack/sendfile.rb:111:in `call' +railties (5.1.4) lib/rails/engine.rb:522:in `call' +puma (3.10.0) lib/puma/configuration.rb:225:in `call' +puma (3.10.0) lib/puma/server.rb:605:in `handle_request' +puma (3.10.0) lib/puma/server.rb:437:in `process_client' +puma (3.10.0) lib/puma/server.rb:301:in `block in run' +puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread' From a5cdcf020319ae79a3ca1fef74d6f8c704753cbf Mon Sep 17 00:00:00 2001 From: Jocelyn Gonzalez Date: Wed, 20 Sep 2017 16:24:12 -0700 Subject: [PATCH 3/9] linked tasks to show --- app/assets/stylesheets/application.css | 34 +- app/controllers/tasks_controller.rb | 11 +- app/models/task.rb | 2 + app/views/tasks/create.html.erb | 3 + app/views/tasks/index.html.erb | 20 +- app/views/tasks/new.html.erb | 14 +- app/views/tasks/show.html.erb | 10 +- app/views/tasks/update.html.erb | 3 + config/routes.rb | 19 +- db/migrate/20170919214014_create_tasks.rb | 12 + db/schema.rb | 27 + log/development.log | 2008 +++++++++++++++++++++ test/fixtures/tasks.yml | 13 + test/models/task_test.rb | 7 + 14 files changed, 2161 insertions(+), 22 deletions(-) create mode 100644 app/models/task.rb create mode 100644 db/migrate/20170919214014_create_tasks.rb create mode 100644 db/schema.rb create mode 100644 test/fixtures/tasks.yml create mode 100644 test/models/task_test.rb diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 5bdb35ccc..52df3405b 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -21,22 +21,22 @@ body { main { margin: auto; width: 70vw; - height: 100vh; + height: 90vh; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; box-sizing: border-box; - border: 1px solid red; } h1 { float: left; - width: 35%; - height: 80vh; + width: 100%; + height: auto; font-family: 'Pacifico', cursive; font-size: 3em; text-align: center; - border: 1px solid black; + border: 10px double #F45B69; + border-radius: 10%; } ul { font-family: 'Shadows Into Light', cursive; @@ -44,12 +44,13 @@ ul { background: #D5CDCB; border-radius: 5%; width: 50%; - height: auto; + height: 80%; padding-left: 10%; padding-bottom: 2%; border: 5px solid #028090; box-shadow: -2px 2px 2px #114B5F; } + input { display: inline-block; float: left; @@ -59,7 +60,28 @@ input { border: 0; outline:none; color: #F45B69; + /*border: 1px solid black;*/ } + .clearfix { clear: both; } + +.sidebar { + width: 30%; + height: 80%; +} + +.sidebar input { + width: 70%; + height: 100%; + padding: 10px 20px; + margin-left: 15%; + margin-bottom: 10px; + float: none; + font-size: 1.5em; + background: #D5CDCB; + border-radius: 45%; + border: 5px solid #028090; + box-shadow: -2px 2px 2px #114B5F; +} diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index 733131357..35096b670 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -1,21 +1,30 @@ class TasksController < ApplicationController + def index - @tasks = ["Wash dishes", "Vacuum carpet", "Buy groceries", "Take vitamins", "Eat veggies" ] + @tasks = Task.all end def edit end def new + @task = Task.new end def show + @task = Task.find( params[:id] ) end def update end def create + @task = Task.new(name: params[:task][:name], description: params[:task][:description], completion_date: params[:task][:completion_date]) + if @task.save #successful = @task.save, if successful + redirect_to root_path + else + render :new + end end def destroy diff --git a/app/models/task.rb b/app/models/task.rb new file mode 100644 index 000000000..3c2342421 --- /dev/null +++ b/app/models/task.rb @@ -0,0 +1,2 @@ +class Task < ApplicationRecord +end diff --git a/app/views/tasks/create.html.erb b/app/views/tasks/create.html.erb index fcad439c4..ccd5ed0b4 100644 --- a/app/views/tasks/create.html.erb +++ b/app/views/tasks/create.html.erb @@ -1,2 +1,5 @@

      Tasks#create

      Find me in app/views/tasks/create.html.erb

      + +

      Param

      +<%= params %> diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb index 3efcce272..0e5477ad6 100644 --- a/app/views/tasks/index.html.erb +++ b/app/views/tasks/index.html.erb @@ -1,14 +1,22 @@
      -

      TaskList

      - +

        My Tasks

        <% @tasks.each do |task| %> -
      • <%= task %>
      • +
      • + <%= link_to(task.name, task_path(task.id), alt: "link to task.name") %> +
      • - <%= button_to "Mark as Complete" + " | " %> - <%= button_to "Edit" + " | " %> - <%= button_to "Delete" %> + <%= button_to "Mark Complete", toggle_complete_path(task.id), method: :patch %> + <%= button_to "Edit", edit_task_path(task.id), method: :get %> + <%= button_to "Delete", delete_task_path(task.id), method: :delete %>
        <% end %> diff --git a/app/views/tasks/new.html.erb b/app/views/tasks/new.html.erb index 2484008a3..b8fee0090 100644 --- a/app/views/tasks/new.html.erb +++ b/app/views/tasks/new.html.erb @@ -1,2 +1,14 @@

        Tasks#new

        -

        Find me in app/views/tasks/new.html.erb

        + +<%= form_for @task do |t| %> + <%= t.label :name %> + <%= t.text_field :name %> + + <%= t.label :description %> + <%= t.text_field :description %> + + <%= t.label :completion_date %> + <%= t.text_field :completion_date %> + + <%= t.submit "add task" %> +<% end %> diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb index 1139224db..cac6578a9 100644 --- a/app/views/tasks/show.html.erb +++ b/app/views/tasks/show.html.erb @@ -1,2 +1,10 @@

        Tasks#show

        -

        Find me in app/views/tasks/show.html.erb

        +
        + +

        +<%= @task.name %> +

        +

        +<%= @task.description %> +

        +
        diff --git a/app/views/tasks/update.html.erb b/app/views/tasks/update.html.erb index fdb1ea609..c21e1d753 100644 --- a/app/views/tasks/update.html.erb +++ b/app/views/tasks/update.html.erb @@ -1,2 +1,5 @@

        Tasks#update

        Find me in app/views/tasks/update.html.erb

        +

        + should not be updating anything here. this page should populate nothing. +

        diff --git a/config/routes.rb b/config/routes.rb index 8241d4def..e05e27fc4 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,17 +1,22 @@ Rails.application.routes.draw do - get '/tasks', to: 'tasks#index', as: 'tasks' #tasks_path - get 'tasks/edit' + root to: 'tasks#index' - get 'tasks/new' + get '/tasks', to: 'tasks#index', as: 'tasks' # tasks_path - get 'tasks/show' + get '/tasks/:id/edit', to: 'tasks#edit', as: 'edit_task' # edit_task_path - get 'tasks/update' + get '/tasks/new', to: 'tasks#new', as: 'new_task' # new_task_path' - get 'tasks/create' + get '/tasks/:id', to: 'tasks#show', as: 'task' # task_path - get 'tasks/destroy' + patch '/tasks/:id', to: 'tasks#update', as: 'update_task' # update_task_path + + post '/tasks', to: 'tasks#create', as: 'create_task' # create_task_path + + patch '/tasks/:id/toggle_complete', to: 'tasks#toggle_complete', as: 'toggle_complete' #toggle_complete_path + + delete '/tasks', to: 'tasks#destroy', as: 'delete_task' # delete_task_path # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html end diff --git a/db/migrate/20170919214014_create_tasks.rb b/db/migrate/20170919214014_create_tasks.rb new file mode 100644 index 000000000..7d439d636 --- /dev/null +++ b/db/migrate/20170919214014_create_tasks.rb @@ -0,0 +1,12 @@ +class CreateTasks < ActiveRecord::Migration[5.1] + def change + create_table :tasks do |t| + t.string :name + t.string :description + t.string :completion_date + t.boolean :status + + t.timestamps + end + end +end diff --git a/db/schema.rb b/db/schema.rb new file mode 100644 index 000000000..b0951f150 --- /dev/null +++ b/db/schema.rb @@ -0,0 +1,27 @@ +# This file is auto-generated from the current state of the database. Instead +# of editing this file, please use the migrations feature of Active Record to +# incrementally modify your database, and then regenerate this schema definition. +# +# Note that this schema.rb definition is the authoritative source for your +# database schema. If you need to create the application database on another +# system, you should be using db:schema:load, not running all the migrations +# from scratch. The latter is a flawed and unsustainable approach (the more migrations +# you'll amass, the slower it'll run and the greater likelihood for issues). +# +# It's strongly recommended that you check this file into your version control system. + +ActiveRecord::Schema.define(version: 20170919214014) do + + # These are extensions that must be enabled in order to support this database + enable_extension "plpgsql" + + create_table "tasks", force: :cascade do |t| + t.string "name" + t.string "description" + t.string "completion_date" + t.boolean "status" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + +end diff --git a/log/development.log b/log/development.log index fe33b6549..031ae767e 100644 --- a/log/development.log +++ b/log/development.log @@ -1309,3 +1309,2011 @@ puma (3.10.0) lib/puma/server.rb:605:in `handle_request' puma (3.10.0) lib/puma/server.rb:437:in `process_client' puma (3.10.0) lib/puma/server.rb:301:in `block in run' puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +  (7.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) +  (20.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.4ms) SELECT pg_try_advisory_lock(4169262226251541860) +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to CreateTasks (20170919214014) +  (0.3ms) BEGIN +  (15.8ms) CREATE TABLE "tasks" ("id" bigserial primary key, "name" character varying, "description" character varying, "completion_date" character varying, "status" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170919214014"]] +  (1.3ms) COMMIT + ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (0.2ms) BEGIN + SQL (0.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-09-19 22:00:11.706439"], ["updated_at", "2017-09-19 22:00:11.706439"]] +  (1.8ms) COMMIT +  (0.3ms) SELECT pg_advisory_unlock(4169262226251541860) +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.3ms) BEGIN + SQL (14.6ms) INSERT INTO "tasks" ("name", "description", "completion_date", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Laundry"], ["description", "Colors only!"], ["completion_date", "11-6-17"], ["status", "f"], ["created_at", "2017-09-19 22:12:49.065799"], ["updated_at", "2017-09-19 22:12:49.065799"]] +  (12.5ms) COMMIT +  (0.3ms) BEGIN + SQL (0.6ms) INSERT INTO "tasks" ("name", "description", "completion_date", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Dishes"], ["description", "Load and unload the dishwasher"], ["completion_date", "11-7-17"], ["status", "f"], ["created_at", "2017-09-19 22:14:32.203610"], ["updated_at", "2017-09-19 22:14:32.203610"]] +  (1.6ms) COMMIT + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] +Started GET "/" for 127.0.0.1 at 2017-09-19 15:21:09 -0700 +  (7.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by Rails::WelcomeController#index as HTML + Rendering /Users/jocelyngonzalez/.rvm/gems/ruby-2.4.0/gems/railties-5.1.4/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/jocelyngonzalez/.rvm/gems/ruby-2.4.0/gems/railties-5.1.4/lib/rails/templates/rails/welcome/index.html.erb (4.9ms) +Completed 200 OK in 29ms (Views: 13.6ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 15:21:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (32.4ms) +Completed 200 OK in 361ms (Views: 337.8ms | ActiveRecord: 10.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 15:25:56 -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 (4.3ms) +Completed 200 OK in 37ms (Views: 34.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 15:26:16 -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 (2.8ms) +Completed 200 OK in 35ms (Views: 31.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 15:38:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 500 Internal Server Error in 23ms (ActiveRecord: 0.0ms) + + + +SyntaxError (/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/index.html.erb:9: syntax error, unexpected ':', expecting ')' +, toggle_complete_path(@tasks:id.toggle_complete));@output_b + ^ +/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/index.html.erb:9: syntax error, unexpected ')', expecting keyword_end +th(@tasks:id.toggle_complete));@output_buffer.safe_append=' + ^ +/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/index.html.erb:19: syntax error, unexpected keyword_ensure, expecting end-of-input + ensure + ^): + +app/views/tasks/index.html.erb:9: syntax error, unexpected ':', expecting ')' +app/views/tasks/index.html.erb:9: syntax error, unexpected ')', expecting keyword_end +app/views/tasks/index.html.erb:19: syntax error, unexpected keyword_ensure, expecting end-of-input +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 15:40:02 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms) + + + +SyntaxError (/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/index.html.erb:9: syntax error, unexpected ':', expecting ')' +, toggle_complete_path(@tasks:id.toggle_complete), method: : + ^ +/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/index.html.erb:9: syntax error, unexpected tLABEL +s:id.toggle_complete), method: :patch );@output_buffer.safe_ + ^ +/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/index.html.erb:19: syntax error, unexpected keyword_ensure, expecting end-of-input + ensure + ^): + +app/views/tasks/index.html.erb:9: syntax error, unexpected ':', expecting ')' +app/views/tasks/index.html.erb:9: syntax error, unexpected tLABEL +app/views/tasks/index.html.erb:19: syntax error, unexpected keyword_ensure, expecting end-of-input +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 15:54:09 -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 7ms (ActiveRecord: 0.0ms) + + + +SyntaxError (/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/index.html.erb:9: syntax error, unexpected ':', expecting ')' +, toggle_complete_path(@tasks:id.status), method: :patch );@ + ^ +/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/index.html.erb:9: syntax error, unexpected tLABEL +ath(@tasks:id.status), method: :patch );@output_buffer.safe_ + ^ +/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/index.html.erb:19: syntax error, unexpected keyword_ensure, expecting end-of-input + ensure + ^): + +app/views/tasks/index.html.erb:9: syntax error, unexpected ':', expecting ')' +app/views/tasks/index.html.erb:9: syntax error, unexpected tLABEL +app/views/tasks/index.html.erb:19: syntax error, unexpected keyword_ensure, expecting end-of-input +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 15:54:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.8ms) +Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms) + + + +SyntaxError (/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/index.html.erb:9: syntax error, unexpected ':', expecting ')' +, toggle_complete_path(@tasks:id.status), method: :patch );@ + ^ +/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/index.html.erb:9: syntax error, unexpected tLABEL +ath(@tasks:id.status), method: :patch );@output_buffer.safe_ + ^ +/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/index.html.erb:19: syntax error, unexpected keyword_ensure, expecting end-of-input + ensure + ^): + +app/views/tasks/index.html.erb:9: syntax error, unexpected ':', expecting ')' +app/views/tasks/index.html.erb:9: syntax error, unexpected tLABEL +app/views/tasks/index.html.erb:19: syntax error, unexpected keyword_ensure, expecting end-of-input +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 16:09:57 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (18.6ms) +Completed 200 OK in 60ms (Views: 50.9ms | ActiveRecord: 7.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 16:10:48 -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 (11.9ms) +Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.3ms) + + + +ActionView::Template::Error (undefined method `id' for # +Did you mean? ids): + 8:
        + 9: <%= button_to "Mark as Complete" %> + 10: <%= button_to "Edit" %> + 11: <%= button_to "Delete", delete_book_path(@tasks.id), method: :delete %> + 12:
        + 13:
        + 14: <% end %> + +app/views/tasks/index.html.erb:11:in `block in _app_views_tasks_index_html_erb___2335051026346593280_70231094909180' +app/views/tasks/index.html.erb:6:in `_app_views_tasks_index_html_erb___2335051026346593280_70231094909180' +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 16:16:36 -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 500 Internal Server Error in 10ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined method `id' for # +Did you mean? ids): + 7:
      • <%= task.name %>
      • + 8:
        + 9: + 10: <%= button_to "Edit", edit_task_path(@tasks.id)%> + 11: + 12:
        + 13:
        + +app/views/tasks/index.html.erb:10:in `block in _app_views_tasks_index_html_erb___2335051026346593280_70231128451220' +app/views/tasks/index.html.erb:6:in `_app_views_tasks_index_html_erb___2335051026346593280_70231128451220' +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 16:25: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 (9.7ms) +Completed 500 Internal Server Error in 28ms (ActiveRecord: 0.3ms) + + + +ActionView::Template::Error (No route matches {:action=>"edit", :controller=>"tasks"}, missing required keys: [:id]): + 7:
      • <%= task.name %>
      • + 8:
        + 9: + 10: <%= button_to "Edit", edit_task_path, method: :get %> + 11: + 12:
        + 13:
        + +app/views/tasks/index.html.erb:10:in `block in _app_views_tasks_index_html_erb___2335051026346593280_70231146632280' +app/views/tasks/index.html.erb:6:in `_app_views_tasks_index_html_erb___2335051026346593280_70231146632280' +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 16:29:39 -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 (1.9ms) +Completed 200 OK in 40ms (Views: 37.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1/edit" for 127.0.0.1 at 2017-09-19 16:29:52 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (0.6ms) +Completed 200 OK in 18ms (Views: 15.6ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 16:32:43 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 44ms (Views: 42.1ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 16:36:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (18.5ms) +Completed 200 OK in 83ms (Views: 72.5ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 16:40:58 -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.6ms) +Completed 200 OK in 61ms (Views: 58.7ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 16:41:13 -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 (3.2ms) +Completed 200 OK in 44ms (Views: 40.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 16:41:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.9ms) +Completed 200 OK in 48ms (Views: 45.6ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 16:41:46 -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 (4.4ms) +Completed 200 OK in 51ms (Views: 46.5ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 16:42:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.1ms) +Completed 200 OK in 34ms (Views: 31.6ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 16:42:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 44ms (Views: 41.1ms | ActiveRecord: 1.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 16:42:48 -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 (3.7ms) +Completed 200 OK in 42ms (Views: 38.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 16:43:01 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (6.3ms) +Completed 200 OK in 34ms (Views: 32.0ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 16:43:14 -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 (3.8ms) +Completed 200 OK in 58ms (Views: 56.0ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/1/toggle_complete" for 127.0.0.1 at 2017-09-19 16:43:45 -0700 + +AbstractController::ActionNotFound (The action 'toggle_complete' could not be found for TasksController): + +actionpack (5.1.4) lib/abstract_controller/base.rb:119:in `process' +actionview (5.1.4) lib/action_view/rendering.rb:30:in `process' +actionpack (5.1.4) lib/action_controller/metal.rb:189:in `dispatch' +actionpack (5.1.4) lib/action_controller/metal.rb:253:in `dispatch' +actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' +actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:31:in `serve' +actionpack (5.1.4) lib/action_dispatch/journey/router.rb:50:in `block in serve' +actionpack (5.1.4) lib/action_dispatch/journey/router.rb:33:in `each' +actionpack (5.1.4) lib/action_dispatch/journey/router.rb:33:in `serve' +actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:834:in `call' +rack (2.0.3) lib/rack/etag.rb:25:in `call' +rack (2.0.3) lib/rack/conditional_get.rb:38:in `call' +rack (2.0.3) lib/rack/head.rb:12:in `call' +rack (2.0.3) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.3) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/cookies.rb:613:in `call' +activerecord (5.1.4) lib/active_record/migration.rb:556:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' +activesupport (5.1.4) lib/active_support/callbacks.rb:97:in `run_callbacks' +actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:24:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.3) lib/rack/method_override.rb:22:in `call' +rack (2.0.3) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.3) lib/rack/sendfile.rb:111:in `call' +railties (5.1.4) lib/rails/engine.rb:522:in `call' +puma (3.10.0) lib/puma/configuration.rb:225:in `call' +puma (3.10.0) lib/puma/server.rb:605:in `handle_request' +puma (3.10.0) lib/puma/server.rb:437:in `process_client' +puma (3.10.0) lib/puma/server.rb:301:in `block in run' +puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 22:57:46 -0700 +  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (21.1ms) +Completed 200 OK in 402ms (Views: 377.5ms | ActiveRecord: 5.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 22:58:07 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (13.9ms) +Completed 200 OK in 52ms (Views: 42.2ms | ActiveRecord: 6.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 22:58:17 -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 (4.1ms) +Completed 200 OK in 29ms (Views: 26.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 22:58:27 -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 (3.4ms) +Completed 200 OK in 38ms (Views: 36.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 22:58:36 -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 (4.6ms) +Completed 200 OK in 43ms (Views: 41.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 22:59:06 -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 (5.0ms) +Completed 200 OK in 51ms (Views: 48.5ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:00:25 -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 (2.5ms) +Completed 200 OK in 28ms (Views: 25.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:00:50 -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 (3.3ms) +Completed 200 OK in 27ms (Views: 25.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:01:04 -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 (2.9ms) +Completed 200 OK in 26ms (Views: 23.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:01:36 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 50ms (Views: 48.0ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:02:00 -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 (2.8ms) +Completed 200 OK in 26ms (Views: 24.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:06:35 -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 (3.5ms) +Completed 200 OK in 24ms (Views: 21.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:08:09 -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 (4.4ms) +Completed 200 OK in 22ms (Views: 20.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:21:28 -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 (2.8ms) +Completed 200 OK in 28ms (Views: 25.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:22: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 (5.7ms) +Completed 200 OK in 29ms (Views: 27.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:23:43 -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 (3.2ms) +Completed 200 OK in 46ms (Views: 44.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:24: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 (3.2ms) +Completed 200 OK in 35ms (Views: 31.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:26:55 -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 (3.3ms) +Completed 200 OK in 43ms (Views: 38.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:27:40 -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 (2.9ms) +Completed 200 OK in 35ms (Views: 33.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:28:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 50ms (Views: 46.8ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:28:48 -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 (4.2ms) +Completed 200 OK in 36ms (Views: 34.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:29:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.7ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (8.2ms) +Completed 200 OK in 57ms (Views: 53.9ms | ActiveRecord: 1.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:30:39 -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.7ms) +Completed 200 OK in 68ms (Views: 65.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:30:51 -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 (3.8ms) +Completed 200 OK in 49ms (Views: 47.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:31:16 -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 (3.1ms) +Completed 200 OK in 32ms (Views: 28.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:31:26 -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 (3.7ms) +Completed 200 OK in 27ms (Views: 24.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:31:59 -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 (2.9ms) +Completed 200 OK in 20ms (Views: 18.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:32:41 -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.1ms) +Completed 200 OK in 31ms (Views: 29.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:33:06 -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 (3.4ms) +Completed 200 OK in 30ms (Views: 27.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:33:41 -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 (2.8ms) +Completed 200 OK in 25ms (Views: 23.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:34:00 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 29ms (Views: 27.4ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:34:04 -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 (3.0ms) +Completed 200 OK in 21ms (Views: 18.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:34:34 -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 (4.0ms) +Completed 200 OK in 26ms (Views: 24.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:34:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.2ms) +Completed 200 OK in 22ms (Views: 19.0ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:34:56 -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 (3.0ms) +Completed 200 OK in 32ms (Views: 29.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:35:32 -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 (3.7ms) +Completed 200 OK in 35ms (Views: 33.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:35:59 -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 (3.0ms) +Completed 200 OK in 26ms (Views: 23.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:36:27 -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 (4.3ms) +Completed 200 OK in 31ms (Views: 29.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:36:54 -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 (4.9ms) +Completed 200 OK in 53ms (Views: 50.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:37:32 -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 (3.0ms) +Completed 200 OK in 26ms (Views: 24.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:37:44 -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 (2.9ms) +Completed 200 OK in 28ms (Views: 25.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:37:51 -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 (3.6ms) +Completed 200 OK in 35ms (Views: 33.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:38:50 -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 (4.2ms) +Completed 200 OK in 33ms (Views: 30.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:39:18 -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 (2.8ms) +Completed 200 OK in 28ms (Views: 25.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:40:09 -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 (3.4ms) +Completed 200 OK in 33ms (Views: 30.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:40:26 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 30ms (Views: 28.1ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:40:35 -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 (4.0ms) +Completed 200 OK in 45ms (Views: 43.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:40:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (17.7ms) +Completed 200 OK in 49ms (Views: 46.0ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:41:07 -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 (4.1ms) +Completed 200 OK in 32ms (Views: 29.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:41:17 -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 (4.0ms) +Completed 200 OK in 36ms (Views: 34.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:41:30 -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 (3.9ms) +Completed 200 OK in 36ms (Views: 32.7ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:41:40 -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 (3.2ms) +Completed 200 OK in 32ms (Views: 30.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:42:21 -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 (3.8ms) +Completed 200 OK in 43ms (Views: 40.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:42:43 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 31ms (Views: 28.8ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:43:22 -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 (3.5ms) +Completed 200 OK in 32ms (Views: 30.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:43:47 -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 (3.4ms) +Completed 200 OK in 29ms (Views: 27.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:43:56 -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 (3.8ms) +Completed 200 OK in 33ms (Views: 31.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:44:16 -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 (3.3ms) +Completed 200 OK in 39ms (Views: 36.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:44:24 -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 (2.8ms) +Completed 200 OK in 34ms (Views: 32.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:44:50 -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 (4.5ms) +Completed 200 OK in 44ms (Views: 41.3ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:45:07 -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 (3.5ms) +Completed 200 OK in 29ms (Views: 26.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:45:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (6.0ms) +Completed 200 OK in 36ms (Views: 33.6ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:45:32 -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 (3.9ms) +Completed 200 OK in 30ms (Views: 28.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:45:40 -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 (4.4ms) +Completed 200 OK in 35ms (Views: 33.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:45:56 -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 (9.2ms) +Completed 200 OK in 34ms (Views: 32.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:46:19 -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 (5.9ms) +Completed 200 OK in 39ms (Views: 36.0ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:46:36 -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 (3.2ms) +Completed 200 OK in 18ms (Views: 16.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:46:53 -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 47ms (Views: 45.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:47:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 34ms (Views: 31.1ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:47:47 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 35ms (Views: 33.2ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:48:06 -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 (3.3ms) +Completed 200 OK in 29ms (Views: 26.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:48:16 -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 (2.7ms) +Completed 200 OK in 21ms (Views: 18.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:48:21 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 37ms (Views: 34.8ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:48:45 -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 (2.7ms) +Completed 200 OK in 31ms (Views: 29.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:49:00 -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 (2.7ms) +Completed 200 OK in 31ms (Views: 28.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:49:13 -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 (2.7ms) +Completed 200 OK in 31ms (Views: 28.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:49:35 -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 (2.8ms) +Completed 200 OK in 35ms (Views: 31.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:49:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 29ms (Views: 27.0ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:50:18 -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 (2.8ms) +Completed 200 OK in 36ms (Views: 32.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:50:46 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 35ms (Views: 33.2ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:50:57 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.7ms) +Completed 200 OK in 31ms (Views: 29.0ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:51:28 -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 (2.7ms) +Completed 200 OK in 31ms (Views: 28.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:51:36 -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 (3.0ms) +Completed 200 OK in 35ms (Views: 33.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:51:44 -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 (2.7ms) +Completed 200 OK in 24ms (Views: 21.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:52:04 -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 (2.7ms) +Completed 200 OK in 38ms (Views: 36.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:52:14 -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 (4.8ms) +Completed 200 OK in 37ms (Views: 34.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:52:55 -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 (2.9ms) +Completed 200 OK in 49ms (Views: 47.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:53:04 -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 (3.2ms) +Completed 200 OK in 38ms (Views: 35.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:53:23 -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 (3.9ms) +Completed 200 OK in 33ms (Views: 31.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:53:30 -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 (3.1ms) +Completed 200 OK in 37ms (Views: 33.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:53:44 -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 (3.9ms) +Completed 200 OK in 34ms (Views: 31.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:54:02 -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 (3.3ms) +Completed 200 OK in 26ms (Views: 24.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:54:20 -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 (3.4ms) +Completed 200 OK in 38ms (Views: 35.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:54:38 -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 (2.9ms) +Completed 200 OK in 34ms (Views: 32.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:55:20 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 34ms (Views: 31.6ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:55:41 -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 (4.6ms) +Completed 200 OK in 34ms (Views: 32.1ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:55:47 -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 (2.8ms) +Completed 200 OK in 35ms (Views: 32.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:55:55 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 44ms (Views: 42.1ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:56:25 -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 (3.7ms) +Completed 200 OK in 41ms (Views: 39.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:57:14 -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 (2.7ms) +Completed 200 OK in 35ms (Views: 32.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:57:40 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.7ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (8.3ms) +Completed 200 OK in 39ms (Views: 35.4ms | ActiveRecord: 1.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:57:54 -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 (8.7ms) +Completed 200 OK in 35ms (Views: 33.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:58:24 -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 (3.3ms) +Completed 200 OK in 51ms (Views: 48.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:58:41 -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 (3.0ms) +Completed 200 OK in 52ms (Views: 48.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:58:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 48ms (Views: 46.1ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:59:45 -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 (5.8ms) +Completed 200 OK in 35ms (Views: 33.0ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 23:59:59 -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 (3.1ms) +Completed 200 OK in 36ms (Views: 34.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:00:25 -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 (4.3ms) +Completed 200 OK in 34ms (Views: 31.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:00:45 -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 (4.5ms) +Completed 200 OK in 50ms (Views: 48.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:01:16 -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 (4.9ms) +Completed 200 OK in 51ms (Views: 48.6ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:01:36 -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 (3.8ms) +Completed 200 OK in 49ms (Views: 46.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:02:00 -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 (4.4ms) +Completed 200 OK in 35ms (Views: 32.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:02:11 -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 (3.9ms) +Completed 200 OK in 37ms (Views: 35.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:02:38 -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 (3.2ms) +Completed 200 OK in 38ms (Views: 35.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:03:14 -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 (3.1ms) +Completed 200 OK in 20ms (Views: 17.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:03:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.6ms) +Completed 200 OK in 38ms (Views: 35.6ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:03:52 -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 (2.8ms) +Completed 200 OK in 29ms (Views: 26.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:04:18 -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 (3.2ms) +Completed 200 OK in 33ms (Views: 30.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:04:28 -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 (6.4ms) +Completed 200 OK in 44ms (Views: 41.7ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:04:55 -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 (2.7ms) +Completed 200 OK in 39ms (Views: 36.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:05:02 -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 (4.2ms) +Completed 200 OK in 37ms (Views: 35.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:05:11 -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 (3.2ms) +Completed 200 OK in 39ms (Views: 36.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:05:18 -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 (4.1ms) +Completed 200 OK in 36ms (Views: 34.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:05:38 -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 (3.1ms) +Completed 200 OK in 40ms (Views: 36.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:05:48 -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 (3.1ms) +Completed 200 OK in 39ms (Views: 36.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:05:56 -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 (4.1ms) +Completed 200 OK in 46ms (Views: 44.2ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:06:06 -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 (2.8ms) +Completed 200 OK in 27ms (Views: 25.6ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:06:14 -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 (3.2ms) +Completed 200 OK in 30ms (Views: 27.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:06:21 -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 (3.1ms) +Completed 200 OK in 30ms (Views: 27.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:06:30 -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 (3.2ms) +Completed 200 OK in 32ms (Views: 30.3ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:07:09 -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 (2.7ms) +Completed 200 OK in 31ms (Views: 29.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:08:09 -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 (2.8ms) +Completed 200 OK in 34ms (Views: 32.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:08:33 -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 (4.3ms) +Completed 200 OK in 33ms (Views: 30.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:08: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 (3.4ms) +Completed 200 OK in 39ms (Views: 37.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:09:05 -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 (2.7ms) +Completed 200 OK in 37ms (Views: 34.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:09:37 -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 (3.6ms) +Completed 200 OK in 34ms (Views: 30.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 00:09:56 -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 (2.8ms) +Completed 200 OK in 26ms (Views: 23.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 00:10:03 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (0.5ms) +Completed 200 OK in 21ms (Views: 17.9ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 15:17:02 -0700 +  (7.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (22.0ms) +Completed 200 OK in 487ms (Views: 464.0ms | ActiveRecord: 5.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 15:31:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (17.5ms) +Completed 500 Internal Server Error in 32ms (ActiveRecord: 0.0ms) + + + +ActionView::Template::Error (No route matches {:action=>"show", :controller=>"tasks"}, missing required keys: [:id]): + 1:
        + 2: +

          My Tasks

          <% @tasks.each do |task| %>
        • <%= link_to(task.name, task_path(task.id), alt: "link to task.name") %>
        • -
          - <%= button_to "Mark Complete", toggle_complete_path(task.id), method: :patch %> - <%= button_to "Edit", edit_task_path(task.id), method: :get %> - <%= button_to "Delete", delete_task_path(task.id), method: :delete %> +
          + <%= link_to "Mark Complete", toggle_complete_path(task.id), method: :patch, class: "button" %> +

          |

          + <%= link_to "Edit", edit_task_path(task.id), class: "button"%> +

          |

          + <%= link_to "Delete", delete_task_path(task.id), method: :delete, class: "button" %>
          <% end %> diff --git a/app/views/tasks/new.html.erb b/app/views/tasks/new.html.erb index b8fee0090..9f63835ce 100644 --- a/app/views/tasks/new.html.erb +++ b/app/views/tasks/new.html.erb @@ -1,14 +1,16 @@

          Tasks#new

          -<%= form_for @task do |t| %> - <%= t.label :name %> - <%= t.text_field :name %> +
          +<%= form_for @task do |f| %> + <%= f.label :name %> + <%= f.text_field :name %> - <%= t.label :description %> - <%= t.text_field :description %> + <%= f.label :description %> + <%= f.text_field :description %> - <%= t.label :completion_date %> - <%= t.text_field :completion_date %> + <%= f.label :completion_date %> + <%= f.text_field :completion_date %> - <%= t.submit "add task" %> + <%= f.submit "add task" %> <% end %> +
          diff --git a/config/routes.rb b/config/routes.rb index e05e27fc4..c02be5ba3 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,6 +1,6 @@ Rails.application.routes.draw do - root to: 'tasks#index' + # root to: 'tasks#index' get '/tasks', to: 'tasks#index', as: 'tasks' # tasks_path diff --git a/log/development.log b/log/development.log index 031ae767e..75a112bbe 100644 --- a/log/development.log +++ b/log/development.log @@ -3317,3 +3317,1153 @@ Processing by TasksController#new as HTML Completed 200 OK in 28ms (Views: 25.7ms | ActiveRecord: 0.0ms) +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 16:27:22 -0700 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (39.1ms) +Completed 200 OK in 325ms (Views: 290.6ms | ActiveRecord: 4.4ms) + + +Started GET "/tasks/" for 127.0.0.1 at 2017-09-20 16:27:27 -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 (19.7ms) +Completed 200 OK in 60ms (Views: 51.0ms | ActiveRecord: 6.3ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 16:27:29 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.2ms) +Completed 200 OK in 20ms (Views: 18.3ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 16:35:21 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (6.8ms) +Completed 200 OK in 44ms (Views: 41.5ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 16:35:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (8.3ms) +Completed 200 OK in 40ms (Views: 36.3ms | ActiveRecord: 1.1ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 16:35:31 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (3.8ms) +Completed 200 OK in 31ms (Views: 29.4ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/" for 127.0.0.1 at 2017-09-20 16:39:42 -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 (11.2ms) +Completed 200 OK in 54ms (Views: 51.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/" for 127.0.0.1 at 2017-09-20 16:39:45 -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 (8.3ms) +Completed 200 OK in 33ms (Views: 31.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 16:39:47 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.1ms) +Completed 200 OK in 21ms (Views: 17.2ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/" for 127.0.0.1 at 2017-09-20 16:40:23 -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 (7.0ms) +Completed 200 OK in 23ms (Views: 21.0ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/" for 127.0.0.1 at 2017-09-20 16:40:28 -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 (4.4ms) +Completed 200 OK in 21ms (Views: 18.5ms | ActiveRecord: 0.3ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-20 16:40:29 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"duCFyhlfwuakR889kllk+UpEWDX/9e4+agEo8nHY/hllNmPkBbpK2/f1qqDPlU7n7r+nM4jlmItKGf8sRFv7Qw=="} +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) + + + +NoMethodError (undefined method `[]' for nil:NilClass): + +app/controllers/tasks_controller.rb:22:in `create' +Started POST "/tasks" for 127.0.0.1 at 2017-09-20 16:45:26 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"duCFyhlfwuakR889kllk+UpEWDX/9e4+agEo8nHY/hllNmPkBbpK2/f1qqDPlU7n7r+nM4jlmItKGf8sRFv7Qw=="} +Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.0ms) + + + +NoMethodError (undefined method `[]' for nil:NilClass): + +app/controllers/tasks_controller.rb:22:in `create' +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 16:46:21 -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 (14.7ms) +Completed 200 OK in 60ms (Views: 42.2ms | ActiveRecord: 5.2ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 16:46:25 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (4.0ms) +Completed 200 OK in 19ms (Views: 17.4ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-20 16:46:33 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"JQTLtqy+vjzJ/CIkks28gMqIXhcsT/OgtzomSo2Q2qM20i2YsFs2AZpOR7nPAZaebnOhEVtfhRWXIvGUuBPf+Q==", "task"=>{"name"=>"", "description"=>"", "completion_date"=>""}, "commit"=>"add task"} +  (0.1ms) BEGIN + SQL (7.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", ""], ["description", ""], ["completion_date", ""], ["created_at", "2017-09-20 23:46:33.777255"], ["updated_at", "2017-09-20 23:46:33.777255"]] +  (11.7ms) COMMIT +Redirected to http://localhost:3000/tasks +Completed 302 Found in 25ms (ActiveRecord: 19.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 16:46:33 -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 (4.5ms) +Completed 200 OK in 24ms (Views: 21.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 16:46:38 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (1.6ms) +Completed 200 OK in 18ms (Views: 16.5ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 16:47:33 -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.1ms) +Completed 200 OK in 38ms (Views: 35.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 16:47:35 -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.1ms) +Completed 200 OK in 21ms (Views: 18.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 16:47:38 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (4.6ms) +Completed 200 OK in 54ms (Views: 49.3ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-20 16:47:46 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"qOAv1s7U5xll7EFo6JtDRPWBQU3qk7ge8jsnijB6louCv6FXqkJVwYS6wsMENnfAgZod3ZSv63Y9KEOTa2nOrg==", "task"=>{"name"=>"", "description"=>"", "completion_date"=>""}, "commit"=>"add task"} +  (0.1ms) BEGIN + SQL (0.8ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", ""], ["description", ""], ["completion_date", ""], ["created_at", "2017-09-20 23:47:46.859736"], ["updated_at", "2017-09-20 23:47:46.859736"]] +  (6.1ms) COMMIT +Redirected to http://localhost:3000/tasks +Completed 302 Found in 11ms (ActiveRecord: 7.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 16:47:46 -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 (4.9ms) +Completed 200 OK in 19ms (Views: 16.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 16:49:07 -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 46ms (Views: 40.5ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 16:51:38 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.1ms) +Completed 200 OK in 48ms (Views: 44.6ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 16:56:57 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.2ms) +Completed 200 OK in 126ms (Views: 123.3ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/" for 127.0.0.1 at 2017-09-20 16:57:08 -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.1ms) +Completed 200 OK in 44ms (Views: 40.6ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 16:57:10 -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 22ms (Views: 19.9ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 16:57:21 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.5ms) +Completed 200 OK in 27ms (Views: 25.5ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 16:57:31 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (1.8ms) +Completed 200 OK in 27ms (Views: 24.8ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 16:58:36 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (1.9ms) +Completed 200 OK in 39ms (Views: 37.2ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 16:58:51 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.7ms) +Completed 200 OK in 43ms (Views: 41.1ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-20 16:59:41 -0700 +Processing by Rails::WelcomeController#index as HTML + Rendering /Users/jocelyngonzalez/.rvm/gems/ruby-2.4.0/gems/railties-5.1.4/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/jocelyngonzalez/.rvm/gems/ruby-2.4.0/gems/railties-5.1.4/lib/rails/templates/rails/welcome/index.html.erb (3.1ms) +Completed 200 OK in 12ms (Views: 6.1ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 16:59:47 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (7.0ms) +Completed 200 OK in 51ms (Views: 49.1ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 16:59:52 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (1.9ms) +Completed 200 OK in 21ms (Views: 18.6ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 17:01:15 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (3.7ms) +Completed 200 OK in 50ms (Views: 48.5ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 20:12:45 -0700 +  (7.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (33.9ms) +Completed 200 OK in 428ms (Views: 386.9ms | ActiveRecord: 3.8ms) + + +Started GET "/tasks/" for 127.0.0.1 at 2017-09-20 20:12:58 -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.0ms) +Completed 200 OK in 25ms (Views: 21.4ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/" for 127.0.0.1 at 2017-09-20 20:13:42 -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.4ms) +Completed 200 OK in 23ms (Views: 20.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 20:13:50 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (1.9ms) +Completed 200 OK in 19ms (Views: 17.4ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/" for 127.0.0.1 at 2017-09-20 20:15:56 -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 (3.9ms) +Completed 200 OK in 36ms (Views: 34.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 20:16:18 -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 40ms (Views: 34.5ms | ActiveRecord: 0.0ms) + + + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] +  (0.3ms) BEGIN + SQL (0.6ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 7]] +  (12.5ms) COMMIT + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] +  (0.2ms) BEGIN + SQL (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 6]] +  (1.4ms) COMMIT + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] +  (0.2ms) BEGIN + SQL (0.5ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 5]] +  (1.6ms) COMMIT + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] +  (0.3ms) BEGIN + SQL (0.5ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 4]] +  (1.6ms) COMMIT + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +  (0.3ms) BEGIN + SQL (0.5ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 3]] +  (1.4ms) COMMIT + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 20:44:07 -0700 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (37.5ms) +Completed 200 OK in 348ms (Views: 308.4ms | ActiveRecord: 3.3ms) + + +Started GET "/tasks/" for 127.0.0.1 at 2017-09-20 20:44:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (16.6ms) +Completed 200 OK in 51ms (Views: 43.4ms | ActiveRecord: 5.6ms) + + +Started GET "/tasks/" for 127.0.0.1 at 2017-09-20 20:44:14 -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 (3.7ms) +Completed 200 OK in 25ms (Views: 23.4ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 20:44:18 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (4.0ms) +Completed 200 OK in 53ms (Views: 50.3ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-20 20:44:59 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"hxeL8Q+nk3GD95WPB8BE0+Qn1PjfQ/02BJ7jrb/pnGutSAVwazEhqWKhFiTrbXBXkDyIaKF/rl7LjYe05PrETg==", "task"=>{"name"=>"Vacuum carpet", "description"=>"Under carpet too!", "completion_date"=>"10-1-17"}, "commit"=>"add task"} +  (0.2ms) BEGIN + SQL (6.8ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Vacuum carpet"], ["description", "Under carpet too!"], ["completion_date", "10-1-17"], ["created_at", "2017-09-21 03:44:59.339102"], ["updated_at", "2017-09-21 03:44:59.339102"]] +  (5.6ms) COMMIT +Redirected to http://localhost:3000/tasks +Completed 302 Found in 19ms (ActiveRecord: 12.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 20:44:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 36ms (Views: 33.5ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 20:45:10 -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 79ms (Views: 75.1ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 20:48:28 -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 (3.3ms) +Completed 200 OK in 156ms (Views: 152.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 20:48:33 -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 (3.5ms) +Completed 200 OK in 19ms (Views: 17.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 20:48:57 -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 (3.2ms) +Completed 200 OK in 35ms (Views: 33.5ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 20:49: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 (2.6ms) +Completed 200 OK in 21ms (Views: 18.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 20:49:16 -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 (4.0ms) +Completed 200 OK in 24ms (Views: 22.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 20:50:00 -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 (2.7ms) +Completed 200 OK in 39ms (Views: 36.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 20:50:40 -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 (2.8ms) +Completed 200 OK in 51ms (Views: 48.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 20:50:50 -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 (2.5ms) +Completed 200 OK in 19ms (Views: 16.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 20:51:12 -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 (2.5ms) +Completed 200 OK in 42ms (Views: 39.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 20:53:52 -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 (2.9ms) +Completed 200 OK in 53ms (Views: 48.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 20:53:55 -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 (3.2ms) +Completed 200 OK in 19ms (Views: 16.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 20:54:43 -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 (3.7ms) +Completed 200 OK in 37ms (Views: 35.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 20:57:51 -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 (3.1ms) +Completed 200 OK in 61ms (Views: 58.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 20:58:37 -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 (3.5ms) +Completed 200 OK in 38ms (Views: 35.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 20:58:53 -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 (3.0ms) +Completed 200 OK in 39ms (Views: 35.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 20:59:04 -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 (2.6ms) +Completed 200 OK in 43ms (Views: 40.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 20:59:38 -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 (2.8ms) +Completed 200 OK in 55ms (Views: 52.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:00:25 -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 (3.4ms) +Completed 200 OK in 41ms (Views: 38.9ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:01:26 -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 (2.6ms) +Completed 200 OK in 33ms (Views: 30.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:01:59 -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 (2.7ms) +Completed 200 OK in 57ms (Views: 53.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2/edit" for 127.0.0.1 at 2017-09-20 21:02:41 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (0.8ms) +Completed 200 OK in 46ms (Views: 39.0ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:04:05 -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 (3.2ms) +Completed 200 OK in 49ms (Views: 46.0ms | ActiveRecord: 0.4ms) + + +Started PATCH "/tasks/2/toggle_complete" for 127.0.0.1 at 2017-09-20 21:04:08 -0700 + +AbstractController::ActionNotFound (The action 'toggle_complete' could not be found for TasksController): + +actionpack (5.1.4) lib/abstract_controller/base.rb:119:in `process' +actionview (5.1.4) lib/action_view/rendering.rb:30:in `process' +actionpack (5.1.4) lib/action_controller/metal.rb:189:in `dispatch' +actionpack (5.1.4) lib/action_controller/metal.rb:253:in `dispatch' +actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' +actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:31:in `serve' +actionpack (5.1.4) lib/action_dispatch/journey/router.rb:50:in `block in serve' +actionpack (5.1.4) lib/action_dispatch/journey/router.rb:33:in `each' +actionpack (5.1.4) lib/action_dispatch/journey/router.rb:33:in `serve' +actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:834:in `call' +rack (2.0.3) lib/rack/etag.rb:25:in `call' +rack (2.0.3) lib/rack/conditional_get.rb:38:in `call' +rack (2.0.3) lib/rack/head.rb:12:in `call' +rack (2.0.3) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.3) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/cookies.rb:613:in `call' +activerecord (5.1.4) lib/active_record/migration.rb:556:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' +activesupport (5.1.4) lib/active_support/callbacks.rb:97:in `run_callbacks' +actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:24:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.3) lib/rack/method_override.rb:22:in `call' +rack (2.0.3) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.3) lib/rack/sendfile.rb:111:in `call' +railties (5.1.4) lib/rails/engine.rb:522:in `call' +puma (3.10.0) lib/puma/configuration.rb:225:in `call' +puma (3.10.0) lib/puma/server.rb:605:in `handle_request' +puma (3.10.0) lib/puma/server.rb:437:in `process_client' +puma (3.10.0) lib/puma/server.rb:301:in `block in run' +puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:05:00 -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 (2.9ms) +Completed 200 OK in 55ms (Views: 52.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/8" for 127.0.0.1 at 2017-09-20 21:05:04 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"8"} + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 61ms (Views: 45.9ms | ActiveRecord: 1.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:05:26 -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 (2.7ms) +Completed 200 OK in 38ms (Views: 34.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:06:22 -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 (3.6ms) +Completed 200 OK in 54ms (Views: 52.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:06:26 -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 (2.8ms) +Completed 200 OK in 24ms (Views: 21.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:06:36 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 43ms (Views: 41.2ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:06:40 -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 (3.2ms) +Completed 200 OK in 30ms (Views: 26.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:06:42 -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 (2.7ms) +Completed 200 OK in 22ms (Views: 19.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:08:33 -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 (3.4ms) +Completed 200 OK in 57ms (Views: 55.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:08:48 -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 (2.8ms) +Completed 200 OK in 43ms (Views: 39.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:09:14 -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 (3.8ms) +Completed 200 OK in 32ms (Views: 30.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:09:41 -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 (3.5ms) +Completed 200 OK in 36ms (Views: 33.6ms | ActiveRecord: 0.3ms) + + +Started DELETE "/tasks.1" for 127.0.0.1 at 2017-09-20 21:10:35 -0700 +Processing by TasksController#destroy as + Parameters: {"authenticity_token"=>"/l667RW8uZsjjHG+qnzNMWtgW041WKo3i/EAzghhce/UZywoOgJNeDA+iJeFcV1/xtSMjWMqTDBUow57U6UCgQ=="} + Rendering tasks/destroy.html.erb within layouts/application + Rendered tasks/destroy.html.erb within layouts/application (0.3ms) +Completed 200 OK in 37ms (Views: 24.7ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:11:54 -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 (3.9ms) +Completed 200 OK in 51ms (Views: 47.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:12:04 -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 (3.6ms) +Completed 200 OK in 26ms (Views: 24.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:13:43 -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 (2.8ms) +Completed 200 OK in 24ms (Views: 21.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:14:13 -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 (3.2ms) +Completed 200 OK in 22ms (Views: 18.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1/edit" for 127.0.0.1 at 2017-09-20 21:14:18 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (0.5ms) +Completed 200 OK in 42ms (Views: 39.0ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:14:40 -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 (2.6ms) +Completed 200 OK in 18ms (Views: 16.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:16:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.0ms) + + + +SyntaxError (/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/index.html.erb:7: syntax error, unexpected '=' +d Task", new_task_path, class="menu" );@output_buffer.safe_a + ^ +/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/index.html.erb:8: syntax error, unexpected '=' +All Tasks", tasks_path, class="menu" );@output_buffer.safe_a + ^ +/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/index.html.erb:12: syntax error, unexpected keyword_do_block, expecting keyword_end +'.freeze; @tasks.each do |task| + ^ +/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/index.html.erb:29: syntax error, unexpected keyword_ensure, expecting end-of-input + ensure + ^): + +app/views/tasks/index.html.erb:7: syntax error, unexpected '=' +app/views/tasks/index.html.erb:8: syntax error, unexpected '=' +app/views/tasks/index.html.erb:12: syntax error, unexpected keyword_do_block, expecting keyword_end +app/views/tasks/index.html.erb:29: syntax error, unexpected keyword_ensure, expecting end-of-input +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:17:45 -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 (2.7ms) +Completed 200 OK in 54ms (Views: 51.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:18:56 -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 (3.7ms) +Completed 200 OK in 63ms (Views: 59.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:19:00 -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 (3.0ms) +Completed 200 OK in 20ms (Views: 18.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:19:26 -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 5ms (ActiveRecord: 0.0ms) + + + +SyntaxError (/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/index.html.erb:7: syntax error, unexpected '=' +d Task", new_task_path, class="menu" );@output_buffer.safe_a + ^ +/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/index.html.erb:8: syntax error, unexpected '=' +All Tasks", tasks_path, class="menu" );@output_buffer.safe_a + ^ +/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/index.html.erb:12: syntax error, unexpected keyword_do_block, expecting keyword_end +'.freeze; @tasks.each do |task| + ^ +/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/index.html.erb:29: syntax error, unexpected keyword_ensure, expecting end-of-input + ensure + ^): + +app/views/tasks/index.html.erb:7: syntax error, unexpected '=' +app/views/tasks/index.html.erb:8: syntax error, unexpected '=' +app/views/tasks/index.html.erb:12: syntax error, unexpected keyword_do_block, expecting keyword_end +app/views/tasks/index.html.erb:29: syntax error, unexpected keyword_ensure, expecting end-of-input +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:19:42 -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 (2.6ms) +Completed 200 OK in 24ms (Views: 21.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:22:33 -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 (5.0ms) +Completed 200 OK in 71ms (Views: 67.7ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:22:37 -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 (2.6ms) +Completed 200 OK in 20ms (Views: 17.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:22:42 -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 (3.2ms) +Completed 200 OK in 26ms (Views: 22.6ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-20 21:22:44 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 26ms (Views: 19.1ms | ActiveRecord: 1.4ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-20 21:22:48 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 25ms (Views: 20.2ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:23:05 -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 (8.8ms) +Completed 200 OK in 32ms (Views: 29.5ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:23:11 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.4ms) +Completed 200 OK in 24ms (Views: 21.3ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:23:16 -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 (3.5ms) +Completed 200 OK in 20ms (Views: 17.7ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:23:25 -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 (3.6ms) +Completed 200 OK in 48ms (Views: 45.0ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:23:30 -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 (13.3ms) +Completed 200 OK in 35ms (Views: 31.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:23:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (7.4ms) +Completed 200 OK in 36ms (Views: 32.1ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:24:03 -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 (6.8ms) +Completed 200 OK in 43ms (Views: 38.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:25:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 47ms (Views: 45.0ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:25:52 -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 (3.0ms) +Completed 200 OK in 48ms (Views: 45.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:26:41 -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 (3.0ms) +Completed 200 OK in 34ms (Views: 32.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:27:36 -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 (3.1ms) +Completed 200 OK in 59ms (Views: 56.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:27:43 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 41ms (Views: 39.0ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:28:24 -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 (8.9ms) +Completed 200 OK in 76ms (Views: 72.7ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:28:27 -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 (3.2ms) +Completed 200 OK in 29ms (Views: 25.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:28:44 -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 (3.6ms) +Completed 200 OK in 46ms (Views: 41.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:28:48 -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 (2.8ms) +Completed 200 OK in 21ms (Views: 18.6ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:28:59 -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 (2.9ms) +Completed 200 OK in 42ms (Views: 39.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:29:24 -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 (3.6ms) +Completed 200 OK in 46ms (Views: 44.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:30:05 -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 (5.8ms) +Completed 200 OK in 67ms (Views: 63.7ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:30:27 -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 (2.8ms) +Completed 200 OK in 42ms (Views: 39.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:30:36 -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 (3.2ms) +Completed 200 OK in 42ms (Views: 39.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:31:39 -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 (2.7ms) +Completed 200 OK in 64ms (Views: 61.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:32:23 -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 (3.4ms) +Completed 200 OK in 38ms (Views: 36.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:33:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 36ms (Views: 34.3ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:33:39 -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 (3.2ms) +Completed 200 OK in 33ms (Views: 31.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:34:13 -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 (4.5ms) +Completed 200 OK in 51ms (Views: 49.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:34:22 -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 (3.1ms) +Completed 200 OK in 39ms (Views: 37.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:39:27 -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 (3.2ms) +Completed 200 OK in 54ms (Views: 51.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:39:39 -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 (3.4ms) +Completed 200 OK in 36ms (Views: 33.6ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:39:44 -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 (3.1ms) +Completed 200 OK in 29ms (Views: 26.1ms | ActiveRecord: 0.3ms) + + From 4c58c3d6d36749808e27123d283ff947ffc14d88 Mon Sep 17 00:00:00 2001 From: Jocelyn Gonzalez Date: Thu, 21 Sep 2017 13:44:39 -0700 Subject: [PATCH 5/9] added edit function, before destroy --- app/controllers/tasks_controller.rb | 24 ++- app/views/tasks/destroy.html.erb | 8 +- app/views/tasks/edit.html.erb | 10 + config/routes.rb | 2 +- log/development.log | 305 ++++++++++++++++++++++++++++ 5 files changed, 346 insertions(+), 3 deletions(-) diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index daa40f300..72362eb89 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -5,6 +5,10 @@ def index end def edit + @task = Task.find_by(id: params[:id]) + unless @task + redirect_to root_path + end end def new @@ -16,12 +20,20 @@ def show end def update + task = Task.find_by(id: params[:id]) + redirect_to root_path unless task + + if task.update_attributes task_params + redirect_to root_path + else + render :edit + end end def create @task = Task.new(name: params[:task][:name], description: params[:task][:description], completion_date: params[:task][:completion_date]) if @task.save #successful = @task.save, if successful - redirect_to tasks_path + redirect_to root_path else render :new end @@ -29,4 +41,14 @@ def create def destroy end + + def toggle_complete + + end + + private + + def task_params + return params.require(:task).permit(:name, :description, :completion_date) + end end diff --git a/app/views/tasks/destroy.html.erb b/app/views/tasks/destroy.html.erb index a90559f9d..1af2b2cc8 100644 --- a/app/views/tasks/destroy.html.erb +++ b/app/views/tasks/destroy.html.erb @@ -1,2 +1,8 @@

          Tasks#destroy

          -

          Find me in app/views/tasks/destroy.html.erb

          + +<%= form_for @task do |f| %> + <%= f.label :name %> + <%= f.label :description %> + <%= f.label :completion_date %> + <%= f.submit %> +<% end %> diff --git a/app/views/tasks/edit.html.erb b/app/views/tasks/edit.html.erb index 374190308..50db15c4a 100644 --- a/app/views/tasks/edit.html.erb +++ b/app/views/tasks/edit.html.erb @@ -1,2 +1,12 @@

          Tasks#edit

          Find me in app/views/tasks/edit.html.erb

          + +<%= form_for @task do |f| %> + <%= f.label :name %> + <%= f.text_field :name %> + <%= f.label :description %> + <%= f.text_field :description %> + <%= f.label :completion_date %> + <%= f.text_field :completion_date %> + <%= f.submit %> +<% end %> diff --git a/config/routes.rb b/config/routes.rb index c02be5ba3..e05e27fc4 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,6 +1,6 @@ Rails.application.routes.draw do - # root to: 'tasks#index' + root to: 'tasks#index' get '/tasks', to: 'tasks#index', as: 'tasks' # tasks_path diff --git a/log/development.log b/log/development.log index 75a112bbe..199fb3079 100644 --- a/log/development.log +++ b/log/development.log @@ -4467,3 +4467,308 @@ Processing by TasksController#index as HTML Completed 200 OK in 29ms (Views: 26.1ms | ActiveRecord: 0.3ms) +Started GET "/" for 127.0.0.1 at 2017-09-21 13:10:23 -0700 +  (6.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +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 (26.1ms) +Completed 200 OK in 363ms (Views: 329.4ms | ActiveRecord: 4.7ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-21 13:10:35 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (53.7ms) +Completed 200 OK in 94ms (Views: 87.0ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-21 13:11:35 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"q/+t7PjxiF4fHWEbMy/Qlba1/5Q/8m/NOoIMzkWNr+aBoCNtnGc6hv5L4rDfguQRwq6jBEHOPKX1kWjXHp73ww==", "task"=>{"name"=>"Make dinner", "description"=>"Using food in fridge", "completion_date"=>"11-2-17"}, "commit"=>"add task"} +  (0.1ms) BEGIN + SQL (1.2ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Make dinner"], ["description", "Using food in fridge"], ["completion_date", "11-2-17"], ["created_at", "2017-09-21 20:11:35.090712"], ["updated_at", "2017-09-21 20:11:35.090712"]] +  (11.3ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 17ms (ActiveRecord: 12.6ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-21 13:11:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (7.3ms) +Completed 200 OK in 31ms (Views: 28.4ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:11:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (18.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (36.8ms) +Completed 200 OK in 71ms (Views: 47.2ms | ActiveRecord: 18.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:11:47 -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 (13.4ms) +Completed 200 OK in 65ms (Views: 61.3ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:11:50 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (51.8ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (59.1ms) +Completed 200 OK in 94ms (Views: 39.3ms | ActiveRecord: 51.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:14:40 -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 (19.7ms) +Completed 200 OK in 71ms (Views: 46.9ms | ActiveRecord: 5.9ms) + + +Started GET "/tasks/8/edit" for 127.0.0.1 at 2017-09-21 13:14:45 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"8"} + Task Load (8.9ms) SELECT "tasks".* FROM "tasks" WHERE (8) LIMIT $1 [["LIMIT", 1]] +Completed 500 Internal Server Error in 11ms (ActiveRecord: 8.9ms) + + + +ActiveRecord::StatementInvalid (PG::DatatypeMismatch: ERROR: argument of WHERE must be type boolean, not type integer +LINE 1: SELECT "tasks".* FROM "tasks" WHERE (8) LIMIT $1 + ^ +: SELECT "tasks".* FROM "tasks" WHERE (8) LIMIT $1): + +app/controllers/tasks_controller.rb:8:in `edit' +Started GET "/tasks/8/edit" for 127.0.0.1 at 2017-09-21 13:15:34 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"8"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (0.3ms) +Completed 200 OK in 63ms (Views: 32.5ms | ActiveRecord: 4.1ms) + + +Started GET "/tasks/" for 127.0.0.1 at 2017-09-21 13:20:08 -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 (3.3ms) +Completed 200 OK in 43ms (Views: 41.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/" for 127.0.0.1 at 2017-09-21 13:20:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (60.4ms) +Completed 200 OK in 84ms (Views: 80.3ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks/1/edit" for 127.0.0.1 at 2017-09-21 13:20:13 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (5.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.2ms) +Completed 500 Internal Server Error in 17ms (ActiveRecord: 5.7ms) + + + +SyntaxError (/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/edit.html.erb:12: syntax error, unexpected keyword_end +ze;@output_buffer.append=( end ); + ^ +/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/edit.html.erb:15: syntax error, unexpected keyword_ensure, expecting ')' + ensure + ^ +/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/edit.html.erb:17: syntax error, unexpected keyword_end, expecting ')' + end + ^): + +app/views/tasks/edit.html.erb:12: syntax error, unexpected keyword_end +app/views/tasks/edit.html.erb:15: syntax error, unexpected keyword_ensure, expecting ')' +app/views/tasks/edit.html.erb:17: syntax error, unexpected keyword_end, expecting ')' +Started GET "/tasks/" for 127.0.0.1 at 2017-09-21 13:20:36 -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 (3.5ms) +Completed 200 OK in 21ms (Views: 19.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2/edit" for 127.0.0.1 at 2017-09-21 13:20:39 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (6.1ms) +Completed 200 OK in 63ms (Views: 58.1ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/2" for 127.0.0.1 at 2017-09-21 13:21:09 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"jlz0e5dw2TMRCBBn1ghBO2xq6O3ciwp4MR8BVr64c+I1LmhZFzzb6E5KWZKhKl1ULXrUgKH0oao0MKCv64QMdA==", "task"=>{"name"=>"Dishes", "description"=>"Clear the sink", "completion_date"=>"11-7-17"}, "commit"=>"Update Task", "id"=>"2"} + Rendering tasks/update.html.erb within layouts/application + Rendered tasks/update.html.erb within layouts/application (0.4ms) +Completed 200 OK in 22ms (Views: 17.2ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/" for 127.0.0.1 at 2017-09-21 13:27:45 -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 (11.8ms) +Completed 200 OK in 63ms (Views: 46.1ms | ActiveRecord: 3.1ms) + + +Started GET "/tasks/2" for 127.0.0.1 at 2017-09-21 13:27:54 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 45ms (Views: 37.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2/edit" for 127.0.0.1 at 2017-09-21 13:27:59 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (5.5ms) +Completed 200 OK in 58ms (Views: 47.7ms | ActiveRecord: 0.4ms) + + +Started PATCH "/tasks/2" for 127.0.0.1 at 2017-09-21 13:28:07 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"RPSRD190Mdwd+Geio2n91i6pAc2eJPzmpUSolprGIeX/hg0t3zgzB0K6LlfUS+G5b7k9oONbVzSgawlvz/pecw==", "task"=>{"name"=>"Dishes", "description"=>"Clear the sink", "completion_date"=>"11-7-17"}, "commit"=>"Update Task", "id"=>"2"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] +  (0.2ms) BEGIN + SQL (0.8ms) UPDATE "tasks" SET "description" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["description", "Clear the sink"], ["updated_at", "2017-09-21 20:28:07.389775"], ["id", 2]] +  (6.2ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 14ms (ActiveRecord: 7.5ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-21 13:28:07 -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.1ms) +Completed 200 OK in 32ms (Views: 28.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/2" for 127.0.0.1 at 2017-09-21 13:28:23 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 44ms (Views: 39.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/9" for 127.0.0.1 at 2017-09-21 13:28:31 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 50ms (Views: 40.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/9/edit" for 127.0.0.1 at 2017-09-21 13:28:34 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"9"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (4.4ms) +Completed 200 OK in 51ms (Views: 45.2ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/9" for 127.0.0.1 at 2017-09-21 13:28:48 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"KD+NX01Mj1Gn2P495eu36iuhstdk93jVSulRKNoI14w/cu4i+Rl6pHTnkrdRnVpk9fJqujKoVAzQLOyShqZLKQ==", "task"=>{"name"=>"Make dinner", "description"=>"Make spaghetti", "completion_date"=>"11-2-17"}, "commit"=>"Update Task", "id"=>"9"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (0.3ms) UPDATE "tasks" SET "description" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["description", "Make spaghetti"], ["updated_at", "2017-09-21 20:28:48.077260"], ["id", 9]] +  (5.7ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 11ms (ActiveRecord: 6.4ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-21 13:28:48 -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 (3.2ms) +Completed 200 OK in 20ms (Views: 18.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/9" for 127.0.0.1 at 2017-09-21 13:28:53 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 60ms (Views: 52.9ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-21 13:31:14 -0700 + +AbstractController::ActionNotFound (The action 'toggle_complete' could not be found for TasksController): + +actionpack (5.1.4) lib/abstract_controller/base.rb:119:in `process' +actionview (5.1.4) lib/action_view/rendering.rb:30:in `process' +actionpack (5.1.4) lib/action_controller/metal.rb:189:in `dispatch' +actionpack (5.1.4) lib/action_controller/metal.rb:253:in `dispatch' +actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' +actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:31:in `serve' +actionpack (5.1.4) lib/action_dispatch/journey/router.rb:50:in `block in serve' +actionpack (5.1.4) lib/action_dispatch/journey/router.rb:33:in `each' +actionpack (5.1.4) lib/action_dispatch/journey/router.rb:33:in `serve' +actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:834:in `call' +rack (2.0.3) lib/rack/etag.rb:25:in `call' +rack (2.0.3) lib/rack/conditional_get.rb:38:in `call' +rack (2.0.3) lib/rack/head.rb:12:in `call' +rack (2.0.3) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.3) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/cookies.rb:613:in `call' +activerecord (5.1.4) lib/active_record/migration.rb:556:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' +activesupport (5.1.4) lib/active_support/callbacks.rb:97:in `run_callbacks' +actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:24:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.3) lib/rack/method_override.rb:22:in `call' +rack (2.0.3) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.3) lib/rack/sendfile.rb:111:in `call' +railties (5.1.4) lib/rails/engine.rb:522:in `call' +puma (3.10.0) lib/puma/configuration.rb:225:in `call' +puma (3.10.0) lib/puma/server.rb:605:in `handle_request' +puma (3.10.0) lib/puma/server.rb:437:in `process_client' +puma (3.10.0) lib/puma/server.rb:301:in `block in run' +puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread' From ea5f83b6e0bc69fdc683a26de4d8d3a5fae71bee Mon Sep 17 00:00:00 2001 From: Jocelyn Gonzalez Date: Fri, 22 Sep 2017 16:08:02 -0700 Subject: [PATCH 6/9] toggle complete is done, maybe --- app/assets/stylesheets/application.css | 8 + app/controllers/tasks_controller.rb | 10 + app/views/tasks/destroy.html.erb | 9 +- app/views/tasks/index.html.erb | 16 +- app/views/tasks/show.html.erb | 1 + config/routes.rb | 5 +- log/development.log | 1518 ++++++++++++++++++++++++ 7 files changed, 1556 insertions(+), 11 deletions(-) diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 063c3880c..c223c9231 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -104,3 +104,11 @@ ul { border: 3px solid #028090; box-shadow: -2px 2px 2px #114B5F; } + +.none { + text-decoration: none; +} + +.complete { + text-decoration: line-through; +} diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index 72362eb89..0282c5ca0 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -40,10 +40,20 @@ def create end def destroy + Task.find_by(id: params[:id]).delete + redirect_to root_path end def toggle_complete + task = Task.find_by(id: params[:id]) + if task.status + task.status = false + elsif + task.status = true + end + task.save + redirect_to root_path end private diff --git a/app/views/tasks/destroy.html.erb b/app/views/tasks/destroy.html.erb index 1af2b2cc8..ea73dab39 100644 --- a/app/views/tasks/destroy.html.erb +++ b/app/views/tasks/destroy.html.erb @@ -1,8 +1,3 @@

          Tasks#destroy

          - -<%= form_for @task do |f| %> - <%= f.label :name %> - <%= f.label :description %> - <%= f.label :completion_date %> - <%= f.submit %> -<% end %> +

          Find me in app/views/tasks/destroy.html.erb

          +

          THERE IS NOTHING THAT IS SUPPOSED TO BE HERE, WHAT ARE YOU EVEN DOING???

          diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb index 552af86ff..57c425681 100644 --- a/app/views/tasks/index.html.erb +++ b/app/views/tasks/index.html.erb @@ -11,15 +11,27 @@

            My Tasks

            <% @tasks.each do |task| %> + <%if task.status %>
          • - <%= link_to(task.name, task_path(task.id), alt: "link to task.name") %> + <%= link_to(task.name, task_path(task.id), alt: "link to task.name", class: "complete") %>
          • + <%else %> +
          • + <%= link_to(task.name, task_path(task.id), alt: "link to task.name", class: "none") %> +
          • + <% end %>
            + + <% if task.status %> + <%= link_to "Completed", toggle_complete_path(task.id), method: :patch, class: "button" %> + <% else %> <%= link_to "Mark Complete", toggle_complete_path(task.id), method: :patch, class: "button" %> + <% end %> +

            |

            <%= link_to "Edit", edit_task_path(task.id), class: "button"%>

            |

            - <%= link_to "Delete", delete_task_path(task.id), method: :delete, class: "button" %> + <%= link_to "Delete", delete_task_path(task.id), method: :delete, data: {confirm: "But are you sure though?" }, class: "button" %>
            <% end %> diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb index cac6578a9..3ad7b8163 100644 --- a/app/views/tasks/show.html.erb +++ b/app/views/tasks/show.html.erb @@ -1,4 +1,5 @@

            Tasks#show

            +

            diff --git a/config/routes.rb b/config/routes.rb index e05e27fc4..d4ed632ff 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -10,13 +10,14 @@ get '/tasks/:id', to: 'tasks#show', as: 'task' # task_path + patch '/tasks/:id/toggle_complete', to: 'tasks#toggle_complete', as: 'toggle_complete' #toggle_complete_path + patch '/tasks/:id', to: 'tasks#update', as: 'update_task' # update_task_path post '/tasks', to: 'tasks#create', as: 'create_task' # create_task_path - patch '/tasks/:id/toggle_complete', to: 'tasks#toggle_complete', as: 'toggle_complete' #toggle_complete_path - delete '/tasks', to: 'tasks#destroy', as: 'delete_task' # delete_task_path + delete '/tasks/:id', to: 'tasks#destroy', as: 'delete_task' # delete_task_path # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html end diff --git a/log/development.log b/log/development.log index 199fb3079..5ce1e71c8 100644 --- a/log/development.log +++ b/log/development.log @@ -4772,3 +4772,1521 @@ puma (3.10.0) lib/puma/server.rb:605:in `handle_request' puma (3.10.0) lib/puma/server.rb:437:in `process_client' puma (3.10.0) lib/puma/server.rb:301:in `block in run' puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/" for 127.0.0.1 at 2017-09-21 13:46:23 -0700 +  (6.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (22.9ms) +Completed 200 OK in 318ms (Views: 290.8ms | ActiveRecord: 4.4ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-21 13:46:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (18.9ms) +Completed 200 OK in 37ms (Views: 26.2ms | ActiveRecord: 9.2ms) + + +Started DELETE "/tasks.2" for 127.0.0.1 at 2017-09-21 13:46:31 -0700 +Processing by TasksController#destroy as + Parameters: {"authenticity_token"=>"rWrw2+LcO/z/+fzZsksJ+gwUUf5jnSEH/1z1/3SzZcm+vBb1/jmzwaxLmUTvhyPkqO+u+BSNV7LfRCIhQTBgkw=="} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" IS NULL LIMIT $1 [["LIMIT", 1]] +Redirected to http://localhost:3000/ +Completed 400 Bad Request in 4ms (ActiveRecord: 0.4ms) + + + +ActionController::ParameterMissing (param is missing or the value is empty: task): + +app/controllers/tasks_controller.rb:60:in `task_params' +app/controllers/tasks_controller.rb:46:in `destroy' +Started DELETE "/tasks.2" for 127.0.0.1 at 2017-09-21 13:49:10 -0700 +Processing by TasksController#destroy as + Parameters: {"authenticity_token"=>"rWrw2+LcO/z/+fzZsksJ+gwUUf5jnSEH/1z1/3SzZcm+vBb1/jmzwaxLmUTvhyPkqO+u+BSNV7LfRCIhQTBgkw=="} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" IS NULL LIMIT $1 [["LIMIT", 1]] +Redirected to http://localhost:3000/ +Completed 500 Internal Server Error in 17ms (ActiveRecord: 2.1ms) + + + +NoMethodError (undefined method `save' for nil:NilClass): + +app/controllers/tasks_controller.rb:46:in `destroy' +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:49:14 -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 (13.1ms) +Completed 200 OK in 46ms (Views: 40.7ms | ActiveRecord: 3.6ms) + + +Started DELETE "/tasks.1" for 127.0.0.1 at 2017-09-21 13:49:18 -0700 +Processing by TasksController#destroy as + Parameters: {"authenticity_token"=>"GNBRhaSs72bmwhhQpqeFG+yK2hZ0GB9HOi+5BdJctf4LBreruElnW7Vwfc37a68FSHElEAMIafIaN27b59+wpA=="} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" IS NULL LIMIT $1 [["LIMIT", 1]] +Redirected to http://localhost:3000/ +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.3ms) + + + +NoMethodError (undefined method `save' for nil:NilClass): + +app/controllers/tasks_controller.rb:46:in `destroy' +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:52:13 -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 (3.3ms) +Completed 200 OK in 42ms (Views: 39.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:52:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 43ms (Views: 40.2ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-21 13:56:34 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (66.1ms) +Completed 200 OK in 118ms (Views: 112.6ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 15:10:22 -0700 +  (6.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (21.4ms) +Completed 200 OK in 315ms (Views: 290.2ms | ActiveRecord: 5.6ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-21 15:11:02 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (53.9ms) +Completed 200 OK in 90ms (Views: 86.9ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 15:11:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (123.4ms) +Completed 200 OK in 151ms (Views: 137.6ms | ActiveRecord: 10.4ms) + + +Started DELETE "/tasks.1" for 127.0.0.1 at 2017-09-21 15:11:08 -0700 +Processing by TasksController#destroy as + Parameters: {"authenticity_token"=>"/72sS2gpQI7bMAYRwPfs3QpmQ6hRrP/TW0LUNYFe3K7sa0pldMzIs4iCY4ydO8bDrp28ria8iWZ7WgPrtN3Z9A=="} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" IS NULL LIMIT $1 [["LIMIT", 1]] +Redirected to http://localhost:3000/ +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.4ms) + + + +NoMethodError (undefined method `save' for nil:NilClass): + +app/controllers/tasks_controller.rb:46:in `destroy' +Started GET "/" for 127.0.0.1 at 2017-09-22 11:33:18 -0700 +  (2.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (22.0ms) +Completed 200 OK in 325ms (Views: 295.7ms | ActiveRecord: 5.6ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-22 11:33:23 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 79ms (Views: 13.3ms | ActiveRecord: 44.8ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-22 11:35:04 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (19.1ms) +Completed 500 Internal Server Error in 26ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined method `name' for #): + 1:

            Tasks#show

            + 2: <%= params.name %> + 3:
            + 4: + 5:

            + +app/views/tasks/show.html.erb:2:in `_app_views_tasks_show_html_erb__3610934925353169381_70285397518460' +Started GET "/" for 127.0.0.1 at 2017-09-22 11:35:36 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 27ms (Views: 24.1ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-22 11:35:41 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (5.0ms) +Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.5ms) + + + +ActionView::Template::Error (undefined method `name' for #): + 1:

            Tasks#show

            + 2: <%= params.name %> + 3:
            + 4: + 5:

            + +app/views/tasks/show.html.erb:2:in `_app_views_tasks_show_html_erb__3610934925353169381_70285430579420' +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-22 11:48:54 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 46ms (Views: 40.9ms | ActiveRecord: 0.7ms) + + + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] +Started GET "/" for 127.0.0.1 at 2017-09-22 11:59:51 -0700 +  (8.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (20.6ms) +Completed 200 OK in 401ms (Views: 364.0ms | ActiveRecord: 6.0ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 12:11:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (18.0ms) +Completed 200 OK in 78ms (Views: 52.2ms | ActiveRecord: 5.8ms) + + +Started DELETE "/tasks.1" for 127.0.0.1 at 2017-09-22 12:11:35 -0700 +Processing by TasksController#destroy as + Parameters: {"authenticity_token"=>"wfBdH096+Yqn65bKzWjjZe4Sk+yHGtK7Fv3KnD3WexY4I/Tv4sw3hfakfwlqoQhuiKIiywFflafXWnwdbdJVQA=="} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" IS NULL LIMIT $1 [["LIMIT", 1]] +Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.4ms) + + + +NoMethodError (undefined method `delete' for nil:NilClass): + +app/controllers/tasks_controller.rb:43:in `destroy' +Started DELETE "/tasks.1" for 127.0.0.1 at 2017-09-22 12:13:07 -0700 +Processing by TasksController#destroy as + Parameters: {"authenticity_token"=>"wfBdH096+Yqn65bKzWjjZe4Sk+yHGtK7Fv3KnD3WexY4I/Tv4sw3hfakfwlqoQhuiKIiywFflafXWnwdbdJVQA=="} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" IS NULL LIMIT $1 [["LIMIT", 1]] +Completed 500 Internal Server Error in 14ms (ActiveRecord: 1.4ms) + + + +NoMethodError (undefined method `delete' for nil:NilClass): + +app/controllers/tasks_controller.rb:43:in `destroy' +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 12:13:10 -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 (10.7ms) +Completed 200 OK in 49ms (Views: 45.5ms | ActiveRecord: 2.0ms) + + +Started DELETE "/tasks.1" for 127.0.0.1 at 2017-09-22 12:13:13 -0700 +Processing by TasksController#destroy as + Parameters: {"authenticity_token"=>"twoVnP4prL6Bd3IFMEQ7XSkP7FnNg3pCG8d9RlXC5HhO2bxsU59isdA4m8aXjdBWT79dfkvGPV7aYMvHBcbKLg=="} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" IS NULL LIMIT $1 [["LIMIT", 1]] +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.3ms) + + + +NoMethodError (undefined method `delete' for nil:NilClass): + +app/controllers/tasks_controller.rb:43:in `destroy' +Started GET "/" for 127.0.0.1 at 2017-09-22 12:16:38 -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 (10.9ms) +Completed 200 OK in 62ms (Views: 45.1ms | ActiveRecord: 3.2ms) + + +Started DELETE "/tasks/1" for 127.0.0.1 at 2017-09-22 12:16:43 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"fDhQidZkOgnVk0HewEV/XeonzAy9jRcvxKgXN9e0gUeF6/l5e9L0BoTcqB1njJRWjJd9KzvIUDMFD6G2h7CvEQ==", "id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + SQL (12.7ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 1]] +Redirected to http://localhost:3000/ +Completed 302 Found in 20ms (ActiveRecord: 13.3ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 12:16:43 -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 (2.7ms) +Completed 200 OK in 24ms (Views: 22.0ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 12:19:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms) + + + +SyntaxError (/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/index.html.erb:22: syntax error, unexpected keyword_class, expecting ')' + are you sure though?" } class: "button" );@output_buffer.sa + ^): + +app/views/tasks/index.html.erb:22: syntax error, unexpected keyword_class, expecting ')' +Started GET "/" for 127.0.0.1 at 2017-09-22 12:59:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms) + + + +SyntaxError (/Users/jocelyngonzalez/ada/TaskList/app/views/tasks/index.html.erb:22: syntax error, unexpected keyword_class, expecting ')' + are you sure though?" } class: "button" );@output_buffer.sa + ^): + +app/views/tasks/index.html.erb:22: syntax error, unexpected keyword_class, expecting ')' +Started GET "/" for 127.0.0.1 at 2017-09-22 12:59:19 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (6.9ms) +Completed 200 OK in 53ms (Views: 50.3ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-22 12:59:27 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (81.7ms) +Completed 200 OK in 107ms (Views: 99.5ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-22 12:59:45 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Mvuj9JTlC19Kt0ds72gsL8QqI9BDszguuoPWgQKhM4VvRM9fi1fSR1GgWnwKTQnKWr1AfpyyfmUxssqnTOFoEQ==", "task"=>{"name"=>"Play Monopoly", "description"=>"Psych. ", "completion_date"=>"10-3-17"}, "commit"=>"add task"} +  (0.2ms) BEGIN + SQL (7.6ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Play Monopoly"], ["description", "Psych. "], ["completion_date", "10-3-17"], ["created_at", "2017-09-22 19:59:45.778949"], ["updated_at", "2017-09-22 19:59:45.778949"]] +  (5.8ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 20ms (ActiveRecord: 13.6ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 12:59:45 -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 (3.0ms) +Completed 200 OK in 22ms (Views: 20.5ms | ActiveRecord: 0.3ms) + + +Started DELETE "/tasks/10" for 127.0.0.1 at 2017-09-22 12:59:52 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"fGbQ4hsYY3TjfpfwjdcA+cn/hA4y/F87ubmu2AqhrOKFtXkStq6te7IxfjMqHuvyr081KbS5GCd4HhhZWqWCtA==", "id"=>"10"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + SQL (1.5ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 10]] +Redirected to http://localhost:3000/ +Completed 302 Found in 6ms (ActiveRecord: 1.9ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 12:59:52 -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 (2.5ms) +Completed 200 OK in 22ms (Views: 19.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-22 13:00:46 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (3.4ms) +Completed 200 OK in 57ms (Views: 54.4ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 13:03:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (6.0ms) +Completed 200 OK in 73ms (Views: 67.6ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 13:11:09 -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 (4.5ms) +Completed 200 OK in 62ms (Views: 59.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-22 13:11:14 -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 41ms (Views: 39.4ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-22 13:11:58 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"1DVHtPVODUIWR+14rUKcz9ydp/XrFb1/LJz9hahuiIWJiisf6vzUWg1Q8GhIZ7kqQgrEWzQU+zSnreGj5i7TEQ==", "task"=>{"name"=>"Give Mice Cookies", "description"=>"All of THEM", "completion_date"=>"10-9-17"}, "commit"=>"add task"} +  (0.2ms) BEGIN + SQL (6.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Give Mice Cookies"], ["description", "All of THEM"], ["completion_date", "10-9-17"], ["created_at", "2017-09-22 20:11:58.471129"], ["updated_at", "2017-09-22 20:11:58.471129"]] +  (6.3ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 17ms (ActiveRecord: 13.0ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 13:11:58 -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 (2.9ms) +Completed 200 OK in 24ms (Views: 22.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/11" for 127.0.0.1 at 2017-09-22 13:18:28 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 87ms (Views: 75.8ms | ActiveRecord: 0.4ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 13:31:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (16.5ms) +Completed 200 OK in 189ms (Views: 179.2ms | ActiveRecord: 1.5ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 13:31:39 -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 (3.4ms) +Completed 200 OK in 25ms (Views: 23.6ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 13:31:49 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"qU4ndNQ/qaNyXVzRMlokAfBOGf2OOkQQGIQ3u2IReBhQnY6EeYlnrCMStRKVk88Klv6o2gh/AwzZI4E6MhVWTg==", "id"=>"8"} +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 49ms (ActiveRecord: 0.0ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 13:31:53 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"qU4ndNQ/qaNyXVzRMlokAfBOGf2OOkQQGIQ3u2IReBhQnY6EeYlnrCMStRKVk88Klv6o2gh/AwzZI4E6MhVWTg==", "id"=>"8"} +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 47ms (ActiveRecord: 0.0ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 13:31:55 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"qU4ndNQ/qaNyXVzRMlokAfBOGf2OOkQQGIQ3u2IReBhQnY6EeYlnrCMStRKVk88Klv6o2gh/AwzZI4E6MhVWTg==", "id"=>"8"} +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 50ms (ActiveRecord: 0.0ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 13:32:37 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"qU4ndNQ/qaNyXVzRMlokAfBOGf2OOkQQGIQ3u2IReBhQnY6EeYlnrCMStRKVk88Klv6o2gh/AwzZI4E6MhVWTg==", "id"=>"8"} +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 49ms (ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 13:38:56 -0700 + +SyntaxError (/Users/jocelyngonzalez/ada/TaskList/app/controllers/tasks_controller.rb:59: syntax error, unexpected end-of-input, expecting keyword_end): + +app/controllers/tasks_controller.rb:59: syntax error, unexpected end-of-input, expecting keyword_end +Started GET "/" for 127.0.0.1 at 2017-09-22 13:45:47 -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 (20.3ms) +Completed 200 OK in 80ms (Views: 61.5ms | ActiveRecord: 5.5ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 13:57:21 -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 (3.1ms) +Completed 200 OK in 56ms (Views: 53.2ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 13:57:25 -0700 + +AbstractController::ActionNotFound (The action 'toggle_complete' could not be found for TasksController): + +actionpack (5.1.4) lib/abstract_controller/base.rb:119:in `process' +actionview (5.1.4) lib/action_view/rendering.rb:30:in `process' +actionpack (5.1.4) lib/action_controller/metal.rb:189:in `dispatch' +actionpack (5.1.4) lib/action_controller/metal.rb:253:in `dispatch' +actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' +actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:31:in `serve' +actionpack (5.1.4) lib/action_dispatch/journey/router.rb:50:in `block in serve' +actionpack (5.1.4) lib/action_dispatch/journey/router.rb:33:in `each' +actionpack (5.1.4) lib/action_dispatch/journey/router.rb:33:in `serve' +actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:834:in `call' +rack (2.0.3) lib/rack/etag.rb:25:in `call' +rack (2.0.3) lib/rack/conditional_get.rb:38:in `call' +rack (2.0.3) lib/rack/head.rb:12:in `call' +rack (2.0.3) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.3) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/cookies.rb:613:in `call' +activerecord (5.1.4) lib/active_record/migration.rb:556:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' +activesupport (5.1.4) lib/active_support/callbacks.rb:97:in `run_callbacks' +actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:24:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.3) lib/rack/method_override.rb:22:in `call' +rack (2.0.3) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.3) lib/rack/sendfile.rb:111:in `call' +railties (5.1.4) lib/rails/engine.rb:522:in `call' +puma (3.10.0) lib/puma/configuration.rb:225:in `call' +puma (3.10.0) lib/puma/server.rb:605:in `handle_request' +puma (3.10.0) lib/puma/server.rb:437:in `process_client' +puma (3.10.0) lib/puma/server.rb:301:in `block in run' +puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/" for 127.0.0.1 at 2017-09-22 14:13:43 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (21.7ms) +Completed 200 OK in 82ms (Views: 60.3ms | ActiveRecord: 6.0ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 14:13:58 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"b1yJrL+EfDXKEskix6/wesrZhsMFXY3wiYqJ1P9CUKWWjyBcEjKyOptdIOFgZhtxrGk35IMYyuxILT9Vr0Z+8w==", "id"=>"8"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 58ms (ActiveRecord: 0.4ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 14:13:59 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"b1yJrL+EfDXKEskix6/wesrZhsMFXY3wiYqJ1P9CUKWWjyBcEjKyOptdIOFgZhtxrGk35IMYyuxILT9Vr0Z+8w==", "id"=>"8"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 58ms (ActiveRecord: 0.5ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 14:14:00 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"b1yJrL+EfDXKEskix6/wesrZhsMFXY3wiYqJ1P9CUKWWjyBcEjKyOptdIOFgZhtxrGk35IMYyuxILT9Vr0Z+8w==", "id"=>"8"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 49ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 14:14:01 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"b1yJrL+EfDXKEskix6/wesrZhsMFXY3wiYqJ1P9CUKWWjyBcEjKyOptdIOFgZhtxrGk35IMYyuxILT9Vr0Z+8w==", "id"=>"8"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 53ms (ActiveRecord: 0.4ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 14:14:01 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"b1yJrL+EfDXKEskix6/wesrZhsMFXY3wiYqJ1P9CUKWWjyBcEjKyOptdIOFgZhtxrGk35IMYyuxILT9Vr0Z+8w==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 58ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 14:14:02 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"b1yJrL+EfDXKEskix6/wesrZhsMFXY3wiYqJ1P9CUKWWjyBcEjKyOptdIOFgZhtxrGk35IMYyuxILT9Vr0Z+8w==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 56ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 14:14:02 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"b1yJrL+EfDXKEskix6/wesrZhsMFXY3wiYqJ1P9CUKWWjyBcEjKyOptdIOFgZhtxrGk35IMYyuxILT9Vr0Z+8w==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 49ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 14:14:03 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"b1yJrL+EfDXKEskix6/wesrZhsMFXY3wiYqJ1P9CUKWWjyBcEjKyOptdIOFgZhtxrGk35IMYyuxILT9Vr0Z+8w==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 51ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 14:14:03 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"b1yJrL+EfDXKEskix6/wesrZhsMFXY3wiYqJ1P9CUKWWjyBcEjKyOptdIOFgZhtxrGk35IMYyuxILT9Vr0Z+8w==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 59ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 14:14:03 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"b1yJrL+EfDXKEskix6/wesrZhsMFXY3wiYqJ1P9CUKWWjyBcEjKyOptdIOFgZhtxrGk35IMYyuxILT9Vr0Z+8w==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 49ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 14:14:04 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"b1yJrL+EfDXKEskix6/wesrZhsMFXY3wiYqJ1P9CUKWWjyBcEjKyOptdIOFgZhtxrGk35IMYyuxILT9Vr0Z+8w==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 55ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 14:14:19 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"b1yJrL+EfDXKEskix6/wesrZhsMFXY3wiYqJ1P9CUKWWjyBcEjKyOptdIOFgZhtxrGk35IMYyuxILT9Vr0Z+8w==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 54ms (ActiveRecord: 0.2ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 15:11:48 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (20.0ms) +Completed 200 OK in 88ms (Views: 73.0ms | ActiveRecord: 1.1ms) + + +Started PATCH "/tasks/1/toggle_complete" for 127.0.0.1 at 2017-09-22 15:12:02 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"GYcuTZ4cIRz0iOUoeQ6PJ1g3gWpX32A0zzAFOC3+Z2jgVIe9M6rvE6XHDOvex2QsPocwTdGaJygOl7O5ffpJPg==", "id"=>"1"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.6ms) + + + +NoMethodError (undefined method `status=' for nil:NilClass): + +app/controllers/tasks_controller.rb:49:in `toggle_complete' +Started PATCH "/tasks/1/toggle_complete" for 127.0.0.1 at 2017-09-22 15:12:28 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"GYcuTZ4cIRz0iOUoeQ6PJ1g3gWpX32A0zzAFOC3+Z2jgVIe9M6rvE6XHDOvex2QsPocwTdGaJygOl7O5ffpJPg==", "id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.3ms) + + + +NoMethodError (undefined method `status=' for nil:NilClass): + +app/controllers/tasks_controller.rb:49:in `toggle_complete' +Started PATCH "/tasks/1/toggle_complete" for 127.0.0.1 at 2017-09-22 15:20:37 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"GYcuTZ4cIRz0iOUoeQ6PJ1g3gWpX32A0zzAFOC3+Z2jgVIe9M6rvE6XHDOvex2QsPocwTdGaJygOl7O5ffpJPg==", "id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 68ms (ActiveRecord: 3.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 15:21:00 -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 (14.4ms) +Completed 200 OK in 67ms (Views: 61.5ms | ActiveRecord: 3.4ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 15:21:05 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"4CFUwVbrZpAqcKPYqEOZP9M2dj8BA+fd4PT8NhL3qcYZ8v0x+12on3s/ShsPinI0tYbHGIdGoMEhU0q3QvOHkA==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 53ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 15:21:07 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"4CFUwVbrZpAqcKPYqEOZP9M2dj8BA+fd4PT8NhL3qcYZ8v0x+12on3s/ShsPinI0tYbHGIdGoMEhU0q3QvOHkA==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 52ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 15:21:08 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"4CFUwVbrZpAqcKPYqEOZP9M2dj8BA+fd4PT8NhL3qcYZ8v0x+12on3s/ShsPinI0tYbHGIdGoMEhU0q3QvOHkA==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 51ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 15:21:09 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"4CFUwVbrZpAqcKPYqEOZP9M2dj8BA+fd4PT8NhL3qcYZ8v0x+12on3s/ShsPinI0tYbHGIdGoMEhU0q3QvOHkA==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 49ms (ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 15:21:54 -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 (3.7ms) +Completed 200 OK in 26ms (Views: 23.0ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 15:21:56 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"X/Il1KIuY7ksxkrCobo8JPu7uzCz99v0IRqFkhBiuzGmIYwkD5ittn2JowEGc9cvnQsKFzWynOjgvTMTQGaVZw==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 51ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/2/toggle_complete" for 127.0.0.1 at 2017-09-22 15:21:57 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"X/Il1KIuY7ksxkrCobo8JPu7uzCz99v0IRqFkhBiuzGmIYwkD5ittn2JowEGc9cvnQsKFzWynOjgvTMTQGaVZw==", "id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 52ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/11/toggle_complete" for 127.0.0.1 at 2017-09-22 15:21:59 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"X/Il1KIuY7ksxkrCobo8JPu7uzCz99v0IRqFkhBiuzGmIYwkD5ittn2JowEGc9cvnQsKFzWynOjgvTMTQGaVZw==", "id"=>"11"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 51ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 15:22:00 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"X/Il1KIuY7ksxkrCobo8JPu7uzCz99v0IRqFkhBiuzGmIYwkD5ittn2JowEGc9cvnQsKFzWynOjgvTMTQGaVZw==", "id"=>"8"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 54ms (ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 15:22:01 -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 (6.1ms) +Completed 200 OK in 33ms (Views: 31.3ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 15:22:11 -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 (14.5ms) +Completed 200 OK in 51ms (Views: 30.2ms | ActiveRecord: 4.1ms) + + +Started PATCH "/tasks/2/toggle_complete" for 127.0.0.1 at 2017-09-22 15:22:15 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"QqSopilVnS3a/L7GPOgrkYp8vNkIC08kWLT5NtcTqtG7dwFWhONTIouzVwWbIcCa7MwN/o5OCDiZE0+3hxeEhw==", "id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 50ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/2/toggle_complete" for 127.0.0.1 at 2017-09-22 15:22:16 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"QqSopilVnS3a/L7GPOgrkYp8vNkIC08kWLT5NtcTqtG7dwFWhONTIouzVwWbIcCa7MwN/o5OCDiZE0+3hxeEhw==", "id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 50ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/2/toggle_complete" for 127.0.0.1 at 2017-09-22 15:22:16 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"QqSopilVnS3a/L7GPOgrkYp8vNkIC08kWLT5NtcTqtG7dwFWhONTIouzVwWbIcCa7MwN/o5OCDiZE0+3hxeEhw==", "id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 50ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/2/toggle_complete" for 127.0.0.1 at 2017-09-22 15:22:17 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"QqSopilVnS3a/L7GPOgrkYp8vNkIC08kWLT5NtcTqtG7dwFWhONTIouzVwWbIcCa7MwN/o5OCDiZE0+3hxeEhw==", "id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 51ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/2/toggle_complete" for 127.0.0.1 at 2017-09-22 15:22:17 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"QqSopilVnS3a/L7GPOgrkYp8vNkIC08kWLT5NtcTqtG7dwFWhONTIouzVwWbIcCa7MwN/o5OCDiZE0+3hxeEhw==", "id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 47ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/2/toggle_complete" for 127.0.0.1 at 2017-09-22 15:22:17 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"QqSopilVnS3a/L7GPOgrkYp8vNkIC08kWLT5NtcTqtG7dwFWhONTIouzVwWbIcCa7MwN/o5OCDiZE0+3hxeEhw==", "id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 52ms (ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 15:22:34 -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 (3.5ms) +Completed 200 OK in 31ms (Views: 28.0ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/11/toggle_complete" for 127.0.0.1 at 2017-09-22 15:22:37 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"LEnzX8CEN7a7ZdiLHFmXE0Shj+AMwHhDNfcXDGtHS4XVmlqvbTL5ueoqMUi7kHwYIhE+x4qFP1/0UKGNO0Nl0w==", "id"=>"11"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 56ms (ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/11/toggle_complete" for 127.0.0.1 at 2017-09-22 15:22:38 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"LEnzX8CEN7a7ZdiLHFmXE0Shj+AMwHhDNfcXDGtHS4XVmlqvbTL5ueoqMUi7kHwYIhE+x4qFP1/0UKGNO0Nl0w==", "id"=>"11"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 53ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/11/toggle_complete" for 127.0.0.1 at 2017-09-22 15:22:38 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"LEnzX8CEN7a7ZdiLHFmXE0Shj+AMwHhDNfcXDGtHS4XVmlqvbTL5ueoqMUi7kHwYIhE+x4qFP1/0UKGNO0Nl0w==", "id"=>"11"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 51ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/11/toggle_complete" for 127.0.0.1 at 2017-09-22 15:22:38 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"LEnzX8CEN7a7ZdiLHFmXE0Shj+AMwHhDNfcXDGtHS4XVmlqvbTL5ueoqMUi7kHwYIhE+x4qFP1/0UKGNO0Nl0w==", "id"=>"11"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 53ms (ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 15:22:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 38ms (Views: 35.9ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 15:22:53 -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 (4.5ms) +Completed 200 OK in 34ms (Views: 31.1ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 15:22:55 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"Vxnix4yo60giFg2nfkScWQjELOubN+NqJfiH9xg+pAmuyks3IR4lR3NZ5GTZjXdSbnSdzB1ypHbkXzF2SDqKXw==", "id"=>"8"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 56ms (ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 15:22:56 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"Vxnix4yo60giFg2nfkScWQjELOubN+NqJfiH9xg+pAmuyks3IR4lR3NZ5GTZjXdSbnSdzB1ypHbkXzF2SDqKXw==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 53ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 15:22:56 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"Vxnix4yo60giFg2nfkScWQjELOubN+NqJfiH9xg+pAmuyks3IR4lR3NZ5GTZjXdSbnSdzB1ypHbkXzF2SDqKXw==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 57ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 15:22:56 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"Vxnix4yo60giFg2nfkScWQjELOubN+NqJfiH9xg+pAmuyks3IR4lR3NZ5GTZjXdSbnSdzB1ypHbkXzF2SDqKXw==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 54ms (ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 15:23:49 -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 (2.9ms) +Completed 200 OK in 20ms (Views: 17.7ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 15:23:52 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"eJBxkTHtU4quEVoIr+8gLx87UnS4wqLDbCmEjEiUsayBQ9hhnFudhf9es8sIJsskeYvjUz6H5d+tjjINGJCf+g==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 56ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/2/toggle_complete" for 127.0.0.1 at 2017-09-22 15:23:53 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"eJBxkTHtU4quEVoIr+8gLx87UnS4wqLDbCmEjEiUsayBQ9hhnFudhf9es8sIJsskeYvjUz6H5d+tjjINGJCf+g==", "id"=>"2"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 56ms (ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/9/toggle_complete" for 127.0.0.1 at 2017-09-22 15:23:55 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"eJBxkTHtU4quEVoIr+8gLx87UnS4wqLDbCmEjEiUsayBQ9hhnFudhf9es8sIJsskeYvjUz6H5d+tjjINGJCf+g==", "id"=>"9"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 51ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/11/toggle_complete" for 127.0.0.1 at 2017-09-22 15:23:56 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"eJBxkTHtU4quEVoIr+8gLx87UnS4wqLDbCmEjEiUsayBQ9hhnFudhf9es8sIJsskeYvjUz6H5d+tjjINGJCf+g==", "id"=>"11"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 52ms (ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 15:24:37 -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.2ms) +Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.3ms) + + + +ActionView::Template::Error (undefined method `status=' for nil:NilClass): + 16: + 17:
            + 18: + 19: <% if @task.status = false %> + 20: <%= link_to "Mark Complete", toggle_complete_path(task.id), method: :patch, class: "button complete" %> + 21: <% else %> + 22: <%= link_to "Mark NOT Complete", toggle_complete_path(task.id), method: :patch, class: "button none" %> + +app/views/tasks/index.html.erb:19:in `block in _app_views_tasks_index_html_erb__3658078047686416521_70354775636280' +app/views/tasks/index.html.erb:13:in `_app_views_tasks_index_html_erb__3658078047686416521_70354775636280' +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 15:27:36 -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 (15.0ms) +Completed 200 OK in 40ms (Views: 26.1ms | ActiveRecord: 3.4ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 15:27:39 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"iADvmIaw/QmEREKJZJy32KPRsY2Ls4FwuWK70N4vY25x00ZoKwYzBtULq0rDVVzTxWEAqg32xmx4xQ1RjitNOA==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 51ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 15:27:40 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"iADvmIaw/QmEREKJZJy32KPRsY2Ls4FwuWK70N4vY25x00ZoKwYzBtULq0rDVVzTxWEAqg32xmx4xQ1RjitNOA==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 60ms (ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 15:28:08 -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 (3.3ms) +Completed 200 OK in 23ms (Views: 20.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/8" for 127.0.0.1 at 2017-09-22 15:28:11 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"8"} + Task Load (5.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 70ms (Views: 59.8ms | ActiveRecord: 5.0ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 15:28:14 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"cwQcHYpIYjb1aPwrhrk4LSqKiNx+H/GXATjRxXtdWA+K17XtJ/6sOaQnFeghcNMmTDo5+/hatovAn2dEK1l2WQ==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 65ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/2/toggle_complete" for 127.0.0.1 at 2017-09-22 15:28:16 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"cwQcHYpIYjb1aPwrhrk4LSqKiNx+H/GXATjRxXtdWA+K17XtJ/6sOaQnFeghcNMmTDo5+/hatovAn2dEK1l2WQ==", "id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 52ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/2/toggle_complete" for 127.0.0.1 at 2017-09-22 15:28:17 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"cwQcHYpIYjb1aPwrhrk4LSqKiNx+H/GXATjRxXtdWA+K17XtJ/6sOaQnFeghcNMmTDo5+/hatovAn2dEK1l2WQ==", "id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 52ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/9/toggle_complete" for 127.0.0.1 at 2017-09-22 15:28:18 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"cwQcHYpIYjb1aPwrhrk4LSqKiNx+H/GXATjRxXtdWA+K17XtJ/6sOaQnFeghcNMmTDo5+/hatovAn2dEK1l2WQ==", "id"=>"9"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 49ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/11/toggle_complete" for 127.0.0.1 at 2017-09-22 15:28:20 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"cwQcHYpIYjb1aPwrhrk4LSqKiNx+H/GXATjRxXtdWA+K17XtJ/6sOaQnFeghcNMmTDo5+/hatovAn2dEK1l2WQ==", "id"=>"11"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 54ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/9/toggle_complete" for 127.0.0.1 at 2017-09-22 15:28:21 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"cwQcHYpIYjb1aPwrhrk4LSqKiNx+H/GXATjRxXtdWA+K17XtJ/6sOaQnFeghcNMmTDo5+/hatovAn2dEK1l2WQ==", "id"=>"9"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 55ms (ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/2/toggle_complete" for 127.0.0.1 at 2017-09-22 15:28:22 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"cwQcHYpIYjb1aPwrhrk4LSqKiNx+H/GXATjRxXtdWA+K17XtJ/6sOaQnFeghcNMmTDo5+/hatovAn2dEK1l2WQ==", "id"=>"2"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 54ms (ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 15:28:23 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"cwQcHYpIYjb1aPwrhrk4LSqKiNx+H/GXATjRxXtdWA+K17XtJ/6sOaQnFeghcNMmTDo5+/hatovAn2dEK1l2WQ==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 60ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/9/toggle_complete" for 127.0.0.1 at 2017-09-22 15:28:24 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"cwQcHYpIYjb1aPwrhrk4LSqKiNx+H/GXATjRxXtdWA+K17XtJ/6sOaQnFeghcNMmTDo5+/hatovAn2dEK1l2WQ==", "id"=>"9"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 57ms (ActiveRecord: 0.2ms) + + + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 15:36:45 -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 (11.4ms) +Completed 200 OK in 34ms (Views: 22.2ms | ActiveRecord: 2.9ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 15:36:49 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"vVFjkmj/Q24KC8M9fM3iPl5ALSKD+3q8+RO5zl9tbB1EgspixUmNYVtEKv7bBAk1OPCcBQW+PaA4tA9PD2lCSw==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 58ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/2/toggle_complete" for 127.0.0.1 at 2017-09-22 15:36:50 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"vVFjkmj/Q24KC8M9fM3iPl5ALSKD+3q8+RO5zl9tbB1EgspixUmNYVtEKv7bBAk1OPCcBQW+PaA4tA9PD2lCSw==", "id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 54ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/9/toggle_complete" for 127.0.0.1 at 2017-09-22 15:37:04 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"vVFjkmj/Q24KC8M9fM3iPl5ALSKD+3q8+RO5zl9tbB1EgspixUmNYVtEKv7bBAk1OPCcBQW+PaA4tA9PD2lCSw==", "id"=>"9"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 59ms (ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 15:37:24 -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 (12.7ms) +Completed 200 OK in 45ms (Views: 31.4ms | ActiveRecord: 3.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 15:37:28 -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 (3.6ms) +Completed 200 OK in 24ms (Views: 20.3ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 15:37:30 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"RgBZVsn62fKF3xU201E7Nm0iP7HnQ6LTeHPXfO5MlGm/0/CmZEwX/dSQ/PV0mNA9C5KOlmEG5c+51GH9vki6Pw==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 51ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 15:37:32 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"RgBZVsn62fKF3xU201E7Nm0iP7HnQ6LTeHPXfO5MlGm/0/CmZEwX/dSQ/PV0mNA9C5KOlmEG5c+51GH9vki6Pw==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 56ms (ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 15:37:32 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"RgBZVsn62fKF3xU201E7Nm0iP7HnQ6LTeHPXfO5MlGm/0/CmZEwX/dSQ/PV0mNA9C5KOlmEG5c+51GH9vki6Pw==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +No template found for TasksController#toggle_complete, rendering head :no_content +Completed 204 No Content in 54ms (ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 15:38:19 -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 (11.3ms) +Completed 200 OK in 37ms (Views: 24.0ms | ActiveRecord: 2.8ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 15:38:22 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"l++SG5hwP3JNoKKnqbm9FP9uquaC9UV/Em/b/+hWB2xuPDvrNcbxfRzvS2QOcFYfmd4bwQSwAmPTyG1+uFIpOg==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (16.9ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "t"], ["updated_at", "2017-09-22 22:38:22.788820"], ["id", 8]] +  (6.3ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 31ms (ActiveRecord: 23.6ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 15:38:22 -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 (4.5ms) +Completed 200 OK in 28ms (Views: 26.0ms | ActiveRecord: 0.4ms) + + +Started PATCH "/tasks/11/toggle_complete" for 127.0.0.1 at 2017-09-22 15:38:26 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"aaX3ZQAeD08ruGxfBl1NEfn8XLlvrum1pYtbY6GPQKWQdl6VrajBQHr3hZyhlKYan0ztnunrrqlkLO3i8Ytu8w==", "id"=>"11"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] +  (0.2ms) BEGIN + SQL (2.2ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "t"], ["updated_at", "2017-09-22 22:38:26.089976"], ["id", 11]] +  (1.7ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 9ms (ActiveRecord: 4.3ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 15:38:26 -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 (3.6ms) +Completed 200 OK in 18ms (Views: 16.0ms | ActiveRecord: 0.2ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 15:39:28 -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 (3.7ms) +Completed 200 OK in 19ms (Views: 17.5ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 15:39:33 -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 (3.4ms) +Completed 200 OK in 18ms (Views: 16.7ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/2/toggle_complete" for 127.0.0.1 at 2017-09-22 15:39:36 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"VP12G0OEK/tGZIAyKpWDRGDyEDIyaIAGZRLLPty37y6tLt/r7jLl9BcrafGNXGhPBkKhFbQtxxqktX2/jLPBeA==", "id"=>"2"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (0.4ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "t"], ["updated_at", "2017-09-22 22:39:36.331703"], ["id", 2]] +  (1.3ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 6ms (ActiveRecord: 2.0ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 15:39:36 -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 (3.1ms) +Completed 200 OK in 19ms (Views: 17.2ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/9/toggle_complete" for 127.0.0.1 at 2017-09-22 15:39:42 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"Hsp7zG0qpCpmJcY0XXhFr1ipfOulgrFtUZ57fWd8y+TnGdI8wJxqJTdqL/f6sa6kPhnNzCPH9nGQOc38N3jlsg==", "id"=>"9"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (0.3ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "t"], ["updated_at", "2017-09-22 22:39:42.797610"], ["id", 9]] +  (1.4ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 6ms (ActiveRecord: 2.1ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 15:39:42 -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 (3.9ms) +Completed 200 OK in 30ms (Views: 27.6ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 15:42:05 -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 (2.8ms) +Completed 200 OK in 22ms (Views: 19.7ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 15:47:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 37ms (Views: 34.3ms | ActiveRecord: 0.5ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 15:47:35 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"Cxoa45XyfIQtCXVvr/5Kokxjehe4PWcZPBRADwKsZhnyybMTOESyi3xGnKwIN6GpKtPLMD54IAX9s/aOUqhITw==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (0.4ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "f"], ["updated_at", "2017-09-22 22:47:35.964570"], ["id", 8]] +  (5.8ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 10ms (ActiveRecord: 6.5ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 15:47:35 -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 (2.7ms) +Completed 200 OK in 19ms (Views: 16.8ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/11/toggle_complete" for 127.0.0.1 at 2017-09-22 15:47:39 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"STlcwKGX2hIo6Y1g2GudCzVUqD6N97WkN6BDoiOeWruw6vUwDCEUHXmmZKN/onYAU+QZGQuy8rj2B/Ujc5p07Q==", "id"=>"11"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] +  (0.2ms) BEGIN + SQL (0.4ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "f"], ["updated_at", "2017-09-22 22:47:39.100340"], ["id", 11]] +  (1.8ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 6ms (ActiveRecord: 2.5ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 15:47:39 -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 (2.8ms) +Completed 200 OK in 19ms (Views: 17.0ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/2/toggle_complete" for 127.0.0.1 at 2017-09-22 15:47:41 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"9akULHAGvMEMoVAWL/1wJ0Pab7CDR295kl7k8vM4nb4Mer3c3bByzl3uudWINJssJWrelwUCKGVT+VJzozyz6A==", "id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (0.3ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "f"], ["updated_at", "2017-09-22 22:47:41.585023"], ["id", 2]] +  (1.4ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 5ms (ActiveRecord: 2.0ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 15:47:41 -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 (3.3ms) +Completed 200 OK in 27ms (Views: 24.6ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/9/toggle_complete" for 127.0.0.1 at 2017-09-22 15:47:47 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"hN7JKZziYcnGAMJVyCIPntg0j0pP81b66X/r2IGyOSd9DWDZMVSvxpdPK5Zv6+SVvoQ+bcm2EeYo2F1Z0bYXcQ==", "id"=>"9"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (0.4ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "f"], ["updated_at", "2017-09-22 22:47:47.314540"], ["id", 9]] +  (1.4ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 6ms (ActiveRecord: 2.1ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 15:47:47 -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 (2.7ms) +Completed 200 OK in 18ms (Views: 16.6ms | ActiveRecord: 0.2ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 15:48:31 -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 (3.1ms) +Completed 200 OK in 19ms (Views: 16.9ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 15:48:36 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"Q8pmHYnG1X5N91KdUh/SxjoUBU6vQvG9Ddiea6BWoAC6Gc/tJHAbcRy4u1711jnNXKS0aSkHtqHMfyjq8FKOVg==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (0.4ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "t"], ["updated_at", "2017-09-22 22:48:36.161515"], ["id", 8]] +  (5.6ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 10ms (ActiveRecord: 6.3ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 15:48:36 -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 (3.6ms) +Completed 200 OK in 20ms (Views: 18.2ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 15:49:22 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"kCn8gLrn/wTNZuZltjRX0TszY8tlv/ehSIWu35poLgpp+lVwF1ExC5wpD6YR/bzaXYPS7OP6sL2JIhheymwAXA==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (0.4ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "f"], ["updated_at", "2017-09-22 22:49:22.046267"], ["id", 8]] +  (5.9ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 10ms (ActiveRecord: 6.6ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 15:49:22 -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 (2.9ms) +Completed 200 OK in 36ms (Views: 34.0ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 15:49:54 -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 (3.2ms) +Completed 200 OK in 22ms (Views: 20.3ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/11/toggle_complete" for 127.0.0.1 at 2017-09-22 15:49:59 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"YX/9RfiXW7YOx6q/uAJnRBXrqNMW9w+AsnfWhQoOyCyYrFS1VSGVuV+IQ3wfy4xPc1sZ9JCySJxz0GAEWgrmeg==", "id"=>"11"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (0.4ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "t"], ["updated_at", "2017-09-22 22:49:59.247017"], ["id", 11]] +  (1.3ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 6ms (ActiveRecord: 2.1ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 15:49:59 -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 (3.1ms) +Completed 200 OK in 20ms (Views: 18.2ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 15:52:13 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"+2DC0akGC353C1cE8pn/Yc1aPXG8dWY5+QmoBXy9POkCs2shBLDFcSZEvsdVUBRqq+qMVjowISU4rh6ELLkSvw==", "id"=>"8"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +  (0.2ms) BEGIN + SQL (2.0ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "t"], ["updated_at", "2017-09-22 22:52:13.591834"], ["id", 8]] +  (3.6ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 11ms (ActiveRecord: 6.1ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 15:52:13 -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 (3.5ms) +Completed 200 OK in 27ms (Views: 25.2ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/11/toggle_complete" for 127.0.0.1 at 2017-09-22 15:52:17 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"9uYFRzwgxpHqjLRXdxZ7fHN+alBebuwRdg1nhUsziNcPNay3kZYInrvDXZTQ35B3Fc7bd9grqw23qtEEGzemgQ==", "id"=>"11"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (0.4ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "f"], ["updated_at", "2017-09-22 22:52:17.172755"], ["id", 11]] +  (1.4ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 5ms (ActiveRecord: 2.1ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 15:52:17 -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.5ms) +Completed 200 OK in 28ms (Views: 25.5ms | ActiveRecord: 0.4ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 15:54:50 -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 (3.4ms) +Completed 200 OK in 19ms (Views: 17.5ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/2/toggle_complete" for 127.0.0.1 at 2017-09-22 15:54:55 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"emnrFxGJ3R7jMrTaMxQ2iVnJY6j0A50YPpxIZdYeytyDukLnvD8TEbJ9XRmU3d2CP3nSj3JG2gT/O/7khhrkig==", "id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (0.4ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "t"], ["updated_at", "2017-09-22 22:54:55.197764"], ["id", 2]] +  (5.8ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 10ms (ActiveRecord: 6.5ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 15:54:55 -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 (2.9ms) +Completed 200 OK in 19ms (Views: 17.6ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 15:55:00 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"1PjTqq+wfaERN4s9ois8qzDkefQdfnK/swQ3PW4YKqctK3paAgazrkB4Yv4F4tegVlTI05s7NaNyo4G8PhwE8Q==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (0.3ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "f"], ["updated_at", "2017-09-22 22:55:00.925802"], ["id", 8]] +  (1.2ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 5ms (ActiveRecord: 1.8ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 15:55:00 -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 (3.0ms) +Completed 200 OK in 18ms (Views: 16.3ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/2/toggle_complete" for 127.0.0.1 at 2017-09-22 15:55:04 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"5QLtssvp32aPsZW+23aJnZMcLUYeFYmbvy5+ukbS3n0c0URCZl8Rad7+fH18v2KW9aycYZhQzod+icg7FtbwKw==", "id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (0.4ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "f"], ["updated_at", "2017-09-22 22:55:04.633808"], ["id", 2]] +  (6.0ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 10ms (ActiveRecord: 6.6ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 15:55:04 -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 (3.2ms) +Completed 200 OK in 18ms (Views: 16.5ms | ActiveRecord: 0.3ms) + + From 663bb6076b71c148fe7338a5f97502529fb07d61 Mon Sep 17 00:00:00 2001 From: Jocelyn Gonzalez Date: Sat, 23 Sep 2017 09:53:54 -0700 Subject: [PATCH 7/9] save changes --- app/views/tasks/index.html.erb | 1 + log/development.log | 331 +++++++++++++++++++++++++++++++++ 2 files changed, 332 insertions(+) diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb index 57c425681..f2dc3c43b 100644 --- a/app/views/tasks/index.html.erb +++ b/app/views/tasks/index.html.erb @@ -20,6 +20,7 @@ <%= link_to(task.name, task_path(task.id), alt: "link to task.name", class: "none") %> <% end %> +
            <% if task.status %> diff --git a/log/development.log b/log/development.log index 5ce1e71c8..de6bfa358 100644 --- a/log/development.log +++ b/log/development.log @@ -6290,3 +6290,334 @@ Processing by TasksController#index as HTML Completed 200 OK in 18ms (Views: 16.5ms | ActiveRecord: 0.3ms) +Started GET "/tasks/11/toggle_complete" for 127.0.0.1 at 2017-09-22 22:44:05 -0700 +  (7.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + +ActionController::RoutingError (No route matches [GET] "/tasks/11/toggle_complete"): + +actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.3) lib/rack/method_override.rb:22:in `call' +rack (2.0.3) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.3) lib/rack/sendfile.rb:111:in `call' +railties (5.1.4) lib/rails/engine.rb:522:in `call' +puma (3.10.0) lib/puma/configuration.rb:225:in `call' +puma (3.10.0) lib/puma/server.rb:605:in `handle_request' +puma (3.10.0) lib/puma/server.rb:437:in `process_client' +puma (3.10.0) lib/puma/server.rb:301:in `block in run' +puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/tasks/" for 127.0.0.1 at 2017-09-22 22:44:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (38.2ms) +Completed 200 OK in 458ms (Views: 426.0ms | ActiveRecord: 21.4ms) + + +Started GET "/tasks/" for 127.0.0.1 at 2017-09-22 22:45:12 -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 (3.2ms) +Completed 200 OK in 20ms (Views: 17.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/9" for 127.0.0.1 at 2017-09-22 22:45:21 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 61ms (Views: 51.0ms | ActiveRecord: 0.7ms) + + +Started PATCH "/tasks/9/toggle_complete" for 127.0.0.1 at 2017-09-22 22:45:25 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"+BAf0cd+Jqmn+gjfqsqovG/3Gpm9HWyYKSK8Z/guR2IBw7Yhasjopva14RwNA0O3CUervjtYK4TohQrmqCppNA==", "id"=>"9"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] +  (0.2ms) BEGIN + SQL (0.4ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "t"], ["updated_at", "2017-09-23 05:45:25.028269"], ["id", 9]] +  (11.8ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 18ms (ActiveRecord: 13.1ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 22:45:25 -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 (4.6ms) +Completed 200 OK in 20ms (Views: 18.4ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/11" for 127.0.0.1 at 2017-09-22 22:45:30 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (4.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 48ms (Views: 40.1ms | ActiveRecord: 4.5ms) + + +Started PATCH "/tasks/11/toggle_complete" for 127.0.0.1 at 2017-09-22 22:45:34 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"PwXokoGqyecP6Owxy2fObIb/xrbqi4Kx1+giQrY5guLG1kFiLBwH6F6nBfJsriVn4E93kWzOxa0WT5TD5j2stA==", "id"=>"11"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (0.4ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "t"], ["updated_at", "2017-09-23 05:45:34.507803"], ["id", 11]] +  (1.6ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 6ms (ActiveRecord: 2.4ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 22:45:34 -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 (2.8ms) +Completed 200 OK in 21ms (Views: 18.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/11" for 127.0.0.1 at 2017-09-22 22:45:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 37ms (Views: 30.0ms | ActiveRecord: 0.7ms) + + +Started PATCH "/tasks/11/toggle_complete" for 127.0.0.1 at 2017-09-22 22:45:46 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"7Y/hf/pPsUMacXMUlAjNsJxMvLdjnzCWQ4QaKcKQyHQUXEiPV/l/TEs+mtczwSa7+vwNkOXad4qCI6yokpTmIg==", "id"=>"11"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] +  (0.2ms) BEGIN + SQL (0.3ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "f"], ["updated_at", "2017-09-23 05:45:46.913009"], ["id", 11]] +  (1.3ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 6ms (ActiveRecord: 2.1ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 22:45:46 -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 (2.8ms) +Completed 200 OK in 18ms (Views: 16.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/11/edit" for 127.0.0.1 at 2017-09-22 22:45:49 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"11"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (54.5ms) +Completed 200 OK in 79ms (Views: 71.5ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/11" for 127.0.0.1 at 2017-09-22 22:45:57 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"gk5djlLnYnHNlxxIwzRyoZi/f2mjw5LvX1+M6TQlYGrxedDYEssGZBDrmRtxxVwb14NYZcuuAtd/yKGGDZRN1Q==", "task"=>{"name"=>"Give Mice Cookies", "description"=>"Maybe not all of them", "completion_date"=>"10-9-17"}, "commit"=>"Update Task", "id"=>"11"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] +  (0.3ms) BEGIN + SQL (12.0ms) UPDATE "tasks" SET "description" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["description", "Maybe not all of them"], ["updated_at", "2017-09-23 05:45:57.994590"], ["id", 11]] +  (5.8ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 24ms (ActiveRecord: 18.5ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 22:45:58 -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 (2.8ms) +Completed 200 OK in 19ms (Views: 16.9ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/9/toggle_complete" for 127.0.0.1 at 2017-09-22 22:50:42 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"7l3IJKtkJ5as5jzxsxs56fMeYHymQXLHl6RIK3kfKy4XjmHUBtLpmf2p1TIU0tLila7RWyAENdtWA/6qKRsFeA==", "id"=>"9"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (6.4ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "f"], ["updated_at", "2017-09-23 05:50:42.412831"], ["id", 9]] +  (6.1ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 17ms (ActiveRecord: 12.9ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 22:50:42 -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 (3.8ms) +Completed 200 OK in 47ms (Views: 45.0ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 22:50:47 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"Wa58dPlYFlBKxVC9j9a79ETyL/AzPUO43Ld8eoMNJFCgfdWEVO7YXxuKuX4oH1D/IkKe17V4BKQdEMr70wkKBg==", "id"=>"8"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +  (0.2ms) BEGIN + SQL (0.4ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "t"], ["updated_at", "2017-09-23 05:50:47.644336"], ["id", 8]] +  (1.3ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 6ms (ActiveRecord: 2.1ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 22:50:47 -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 (3.4ms) +Completed 200 OK in 20ms (Views: 18.3ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/2/toggle_complete" for 127.0.0.1 at 2017-09-22 22:50:49 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"4tJ5NywQL+GKca6AtCYDoJUMd51ok08UYsvEfzVd1CQbAdDHgabh7ts+R0MT7+ir87zGuu7WCAijbHL+ZVn6cg==", "id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (0.4ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "t"], ["updated_at", "2017-09-23 05:50:49.765297"], ["id", 2]] +  (1.3ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 5ms (ActiveRecord: 2.0ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 22:50:49 -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 (3.9ms) +Completed 200 OK in 19ms (Views: 17.0ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/11/toggle_complete" for 127.0.0.1 at 2017-09-22 22:50:52 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"YbXqEmRu7vnf80Q2qnjOkp5GgEjGjo8tUBraa+7NK0KYZkPiydgg9o68rfUNsSWZ+PYxb0DLyDGRvWzqvskFFA==", "id"=>"11"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] +  (0.2ms) BEGIN + SQL (1.9ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "t"], ["updated_at", "2017-09-23 05:50:52.983700"], ["id", 11]] +  (1.3ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 8ms (ActiveRecord: 3.6ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 22:50:52 -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 (4.5ms) +Completed 200 OK in 26ms (Views: 23.2ms | ActiveRecord: 0.4ms) + + +Started PATCH "/tasks/9/toggle_complete" for 127.0.0.1 at 2017-09-22 22:50:55 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"GOeJCVL8IrEIGIqJBZnTeW0NxlEPRsNlJllJ8y60wzfhNCD5/0rsvllXY0qiUDhyC713dokDhHnn/v9yfrDtYQ==", "id"=>"9"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] +  (0.2ms) BEGIN + SQL (0.4ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "t"], ["updated_at", "2017-09-23 05:50:55.134878"], ["id", 9]] +  (1.4ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 15ms (ActiveRecord: 2.3ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 22:50:55 -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 (2.8ms) +Completed 200 OK in 18ms (Views: 15.9ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/8/toggle_complete" for 127.0.0.1 at 2017-09-22 22:50:57 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"8tOkC2nAUg9I5XfIUt8CorCJmc+BckAkvNF9JHUuKKcLAA37xHacABmqngv1Fump1jko6Ac3Bzh9dsulJSoG8Q==", "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (0.4ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "f"], ["updated_at", "2017-09-23 05:50:57.936767"], ["id", 8]] +  (1.3ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 5ms (ActiveRecord: 1.9ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 22:50:57 -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 (2.8ms) +Completed 200 OK in 18ms (Views: 15.9ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/9/toggle_complete" for 127.0.0.1 at 2017-09-22 22:51:01 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"k2GUKOVyWo7OD1pz992laCO6tW8xRe0IjrQXHY90Gl9qsj3YSMSUgZ9As7BQFE5jRQoESLcAqhRPE6Gc33A0CQ==", "id"=>"9"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (0.3ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "f"], ["updated_at", "2017-09-23 05:51:01.395385"], ["id", 9]] +  (1.2ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 5ms (ActiveRecord: 1.8ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 22:51: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 (3.0ms) +Completed 200 OK in 17ms (Views: 15.6ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/2/toggle_complete" for 127.0.0.1 at 2017-09-22 22:51:04 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"bhqYo/ZuVC+yix5l8jFtCa5VbevydxYWhqWtBdyLYUaXyTFTW9iaIOPE96ZV+IYCyOXczHQyUQpHAhuEjI9PEA==", "id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (0.3ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "f"], ["updated_at", "2017-09-23 05:51:04.306419"], ["id", 2]] +  (1.3ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 5ms (ActiveRecord: 1.9ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 22:51:04 -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 (3.4ms) +Completed 200 OK in 19ms (Views: 17.3ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/11/toggle_complete" for 127.0.0.1 at 2017-09-22 22:51:06 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"HdChSKqo33PnxNbEC71C7yMAdwuhDXhACcV/aWJVmI3kAwi4Bx4RfLaLPwesdKnkRbDGLCdIP1zIYsnoMlG22w==", "id"=>"11"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] +  (0.2ms) BEGIN + SQL (0.3ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "f"], ["updated_at", "2017-09-23 05:51:06.316508"], ["id", 11]] +  (1.2ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 6ms (ActiveRecord: 1.9ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-22 22:51:06 -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 (3.3ms) +Completed 200 OK in 21ms (Views: 19.6ms | ActiveRecord: 0.3ms) + + From 10755994f3f68a7a13dac9caed2f462141f579f7 Mon Sep 17 00:00:00 2001 From: Jocelyn Gonzalez Date: Sat, 23 Sep 2017 20:40:30 -0700 Subject: [PATCH 8/9] updated completion date data type to date --- app/views/tasks/new.html.erb | 3 - app/views/tasks/show.html.erb | 2 +- ...020536_change_completion_date_data_type.rb | 5 + db/schema.rb | 4 +- log/development.log | 335 ++++++++++++++++++ 5 files changed, 343 insertions(+), 6 deletions(-) create mode 100644 db/migrate/20170924020536_change_completion_date_data_type.rb diff --git a/app/views/tasks/new.html.erb b/app/views/tasks/new.html.erb index 9f63835ce..a02d84e94 100644 --- a/app/views/tasks/new.html.erb +++ b/app/views/tasks/new.html.erb @@ -8,9 +8,6 @@ <%= f.label :description %> <%= f.text_field :description %> - <%= f.label :completion_date %> - <%= f.text_field :completion_date %> - <%= f.submit "add task" %> <% end %>
            diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb index 3ad7b8163..abaf91403 100644 --- a/app/views/tasks/show.html.erb +++ b/app/views/tasks/show.html.erb @@ -1,4 +1,4 @@ -

            Tasks#show

            +
            diff --git a/db/migrate/20170924020536_change_completion_date_data_type.rb b/db/migrate/20170924020536_change_completion_date_data_type.rb new file mode 100644 index 000000000..a8ebbd3d9 --- /dev/null +++ b/db/migrate/20170924020536_change_completion_date_data_type.rb @@ -0,0 +1,5 @@ +class ChangeCompletionDateDataType < ActiveRecord::Migration[5.1] + def change + change_column :tasks, :completion_date, 'date USING completion_date::date' + end +end diff --git a/db/schema.rb b/db/schema.rb index b0951f150..1eabfc2f2 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20170919214014) do +ActiveRecord::Schema.define(version: 20170924020536) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -18,7 +18,7 @@ create_table "tasks", force: :cascade do |t| t.string "name" t.string "description" - t.string "completion_date" + t.date "completion_date" t.boolean "status" t.datetime "created_at", null: false t.datetime "updated_at", null: false diff --git a/log/development.log b/log/development.log index de6bfa358..58e51c998 100644 --- a/log/development.log +++ b/log/development.log @@ -6621,3 +6621,338 @@ Processing by TasksController#index as HTML Completed 200 OK in 21ms (Views: 19.6ms | ActiveRecord: 0.3ms) + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + Task Load (5.7ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + Task Load (1.9ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] +  (8.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (16.4ms) SELECT pg_try_advisory_lock(4169262226251541860) +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to ChangeCompletionDateDataType (20170924020536) +  (6.2ms) BEGIN +  (23.0ms) ALTER TABLE "tasks" ALTER COLUMN "completion_date" TYPE date +  (0.2ms) ROLLBACK +  (0.3ms) SELECT pg_advisory_unlock(4169262226251541860) +  (0.2ms) SELECT pg_try_advisory_lock(4169262226251541860) +  (8.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to ChangeCompletionDateDataType (20170924020536) +  (0.3ms) BEGIN +  (0.3ms) ROLLBACK +  (0.3ms) SELECT pg_advisory_unlock(4169262226251541860) +  (0.3ms) SELECT pg_try_advisory_lock(4169262226251541860) +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to ChangeCompletionDateDataType (20170924020536) +  (0.2ms) BEGIN +  (7.1ms) ALTER TABLE "tasks" ALTER COLUMN "completion_date" TYPE date +  (0.3ms) ROLLBACK +  (0.4ms) SELECT pg_advisory_unlock(4169262226251541860) +Started GET "/" for 127.0.0.1 at 2017-09-23 19:22:50 -0700 +  (8.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + +ActiveRecord::PendingMigrationError ( + +Migrations are pending. To resolve this issue, run: + + bin/rails db:migrate RAILS_ENV=development + +): + +activerecord (5.1.4) lib/active_record/migration.rb:576:in `check_pending!' +activerecord (5.1.4) lib/active_record/migration.rb:553:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' +activesupport (5.1.4) lib/active_support/callbacks.rb:97:in `run_callbacks' +actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:24:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.3) lib/rack/method_override.rb:22:in `call' +rack (2.0.3) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.3) lib/rack/sendfile.rb:111:in `call' +railties (5.1.4) lib/rails/engine.rb:522:in `call' +puma (3.10.0) lib/puma/configuration.rb:225:in `call' +puma (3.10.0) lib/puma/server.rb:605:in `handle_request' +puma (3.10.0) lib/puma/server.rb:437:in `process_client' +puma (3.10.0) lib/puma/server.rb:301:in `block in run' +puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread' + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + SQL (27.9ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 11]] + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + SQL (1.8ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 2]] + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + SQL (1.9ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 8]] + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] + SQL (1.8ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 9]] + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] +  (0.2ms) SELECT pg_try_advisory_lock(4169262226251541860) +  (7.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to ChangeCompletionDateDataType (20170924020536) +  (0.3ms) BEGIN +  (7.4ms) ALTER TABLE "tasks" ALTER COLUMN "completion_date" TYPE date +  (0.3ms) ROLLBACK +  (0.4ms) SELECT pg_advisory_unlock(4169262226251541860) +  (0.2ms) SELECT pg_try_advisory_lock(4169262226251541860) +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to ChangeCompletionDateDataType (20170924020536) +  (0.2ms) BEGIN +  (7.0ms) ALTER TABLE "tasks" ALTER COLUMN "completion_date" TYPE date +  (0.2ms) ROLLBACK +  (0.2ms) SELECT pg_advisory_unlock(4169262226251541860) +  (0.2ms) SELECT pg_try_advisory_lock(4169262226251541860) +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to ChangeCompletionDateDataType (20170924020536) +  (0.2ms) BEGIN +  (7.0ms) ALTER TABLE "tasks" ALTER COLUMN "completion_date" TYPE date +  (0.2ms) ROLLBACK +  (0.4ms) SELECT pg_advisory_unlock(4169262226251541860) +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) SELECT pg_try_advisory_lock(4169262226251541860) +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to ChangeCompletionDateDataType (20170924020536) +  (0.2ms) BEGIN +  (67.3ms) ALTER TABLE "tasks" ALTER COLUMN "completion_date" TYPE date USING completion_date::date + SQL (2.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170924020536"]] +  (5.4ms) COMMIT + ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) SELECT pg_advisory_unlock(4169262226251541860) +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (7.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Started GET "/" for 127.0.0.1 at 2017-09-23 20:09:26 -0700 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (14.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (24.4ms) +Completed 200 OK in 326ms (Views: 284.9ms | ActiveRecord: 17.6ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-23 20:09:32 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (29.4ms) +Completed 200 OK in 163ms (Views: 57.1ms | ActiveRecord: 82.4ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-23 20:09:54 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"jLMfpFIq/2NPXUZwoMADKvK3hJNG62RdGQlMK3sMPZczxie3WF6Pdks2uNcyVRs2aKpLJeI17HmdPF5rZWrjkg==", "task"=>{"name"=>"Wash dishes", "description"=>"C", "completion_date"=>""}, "commit"=>"add task"} +  (0.2ms) BEGIN + SQL (23.9ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Wash dishes"], ["description", "C"], ["created_at", "2017-09-24 03:09:54.207792"], ["updated_at", "2017-09-24 03:09:54.207792"]] +  (3.5ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 33ms (ActiveRecord: 27.6ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 20:09:54 -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 (6.0ms) +Completed 200 OK in 23ms (Views: 21.4ms | ActiveRecord: 0.4ms) + + +Started DELETE "/tasks/12" for 127.0.0.1 at 2017-09-23 20:10:03 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"ZwaEZkbHiGWAVk5GYQX3YceHVFnZx9lp4R1zghxH4NJ2mj6MXnlUVtH4IrlhyY7OHJ2kcSPVu6QgPRwbtUJ/UA==", "id"=>"12"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 12], ["LIMIT", 1]] + SQL (6.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 12]] +Redirected to http://localhost:3000/ +Completed 302 Found in 16ms (ActiveRecord: 7.1ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 20:10:03 -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 (1.9ms) +Completed 200 OK in 19ms (Views: 17.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-23 20:10:05 -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 137ms (Views: 133.9ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-23 20:10:27 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Kd4k1unL9KBhlWekCIJ8cLpVWpYvyL+V/iRr5dKKjjCWqxzF47+EtWX+mQOaF2RsIEiVIIsWN7F6EXmlzOxQNQ==", "task"=>{"name"=>"Wash dishes", "description"=>"Clear sink and dishwasher", "completion_date"=>""}, "commit"=>"add task"} +  (0.2ms) BEGIN + SQL (0.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Wash dishes"], ["description", "Clear sink and dishwasher"], ["created_at", "2017-09-24 03:10:27.918764"], ["updated_at", "2017-09-24 03:10:27.918764"]] +  (6.0ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 11ms (ActiveRecord: 6.8ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 20:10:27 -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 (4.1ms) +Completed 200 OK in 34ms (Views: 31.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-23 20:11:45 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.4ms) +Completed 200 OK in 52ms (Views: 49.8ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-23 20:12:19 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"rABmFmIAQYfQ92Su4HuRWmsMVA3mRTK6Bfy/hZGGaWITdV4FaHQxktScmgly7olG8RGbu0Kbup6Bya3Fj+C3Zw==", "task"=>{"name"=>"Vacuum carpet", "description"=>"Under bikes and MTG cards too!"}, "commit"=>"add task"} +  (0.2ms) BEGIN + SQL (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Vacuum carpet"], ["description", "Under bikes and MTG cards too!"], ["created_at", "2017-09-24 03:12:19.471268"], ["updated_at", "2017-09-24 03:12:19.471268"]] +  (1.5ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 6ms (ActiveRecord: 2.2ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 20:12:19 -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 (2.7ms) +Completed 200 OK in 19ms (Views: 16.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-23 20:12:40 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.5ms) +Completed 200 OK in 40ms (Views: 37.1ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-23 20:13:05 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"gl9L727hmSKTvrZJ+nijXaE7B+SY4nPIA2AHEl/5Up89KnP8ZJXpN5fVSO5o7btBOybIUjw8++yHVRVSQZ+Mmg==", "task"=>{"name"=>"Pick up contacts", "description"=>"Costco will contact when ready."}, "commit"=>"add task"} +  (0.2ms) BEGIN + SQL (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Pick up contacts"], ["description", "Costco will contact when ready."], ["created_at", "2017-09-24 03:13:05.411795"], ["updated_at", "2017-09-24 03:13:05.411795"]] +  (5.9ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 10ms (ActiveRecord: 6.5ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 20:13:05 -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 (2.8ms) +Completed 200 OK in 19ms (Views: 17.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-23 20:13:24 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (4.0ms) +Completed 200 OK in 35ms (Views: 32.7ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-23 20:14:05 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"gl0MEQwBOz+uvC0tV2HE1KolxfYxQ8/tiNMVFG5V8Bc9KDQCBnVLKqrX04rF9NzIMDgKQJWdR8kM5gdUcDMuEg==", "task"=>{"name"=>"Eated all d'pasgetti", "description"=>"Allbuddit!"}, "commit"=>"add task"} +  (0.1ms) BEGIN + SQL (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Eated all d'pasgetti"], ["description", "Allbuddit!"], ["created_at", "2017-09-24 03:14:05.309888"], ["updated_at", "2017-09-24 03:14:05.309888"]] +  (5.7ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 10ms (ActiveRecord: 6.2ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 20:14:05 -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 (3.9ms) +Completed 200 OK in 24ms (Views: 21.9ms | ActiveRecord: 0.4ms) + + +Started PATCH "/tasks/13/toggle_complete" for 127.0.0.1 at 2017-09-23 20:14:18 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"Di3jD++D20HRAdLQVhDjbyPTUBY9vuCKUMxZQ2Xwf2QfsVnl9z0HcoCvvi9W3JrA+MmgPsesgkeR7DbazPXg5g==", "id"=>"13"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (11.9ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "t"], ["updated_at", "2017-09-24 03:14:18.779549"], ["id", 13]] +  (6.2ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 25ms (ActiveRecord: 18.7ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 20:14:18 -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 (3.5ms) +Completed 200 OK in 30ms (Views: 28.0ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/13/toggle_complete" for 127.0.0.1 at 2017-09-23 20:14:26 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"xrl3fNVcx4HMkj1J1QOUAC6Fo5Qf31XGyGycTU25Fy3XJc2WzeIbsp08UbbVz+2v9Z9TvOXNNwsJTPPU5LyIrw==", "id"=>"13"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] +  (0.2ms) BEGIN + SQL (0.3ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "f"], ["updated_at", "2017-09-24 03:14:26.466477"], ["id", 13]] +  (1.3ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 5ms (ActiveRecord: 2.0ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 20:14:26 -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 (3.3ms) +Completed 200 OK in 18ms (Views: 16.0ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/15/toggle_complete" for 127.0.0.1 at 2017-09-23 20:14:31 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"+bKyL9tI9qPE6pwBoNU1zLV0SjpJUfANc+Gv6iJwBBfoLgjFw/YqkJVE8P6gGUxjbm66ErNDksCywcBzi3WblQ==", "id"=>"15"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (0.4ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "t"], ["updated_at", "2017-09-24 03:14:31.331464"], ["id", 15]] +  (1.4ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 6ms (ActiveRecord: 2.1ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 20:14:31 -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 (2.9ms) +Completed 200 OK in 18ms (Views: 16.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/16" for 127.0.0.1 at 2017-09-23 20:14:47 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"16"} + Task Load (3.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 16], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 49ms (Views: 39.6ms | ActiveRecord: 3.9ms) + + From 24eaa46e446eada5c35256bf9b0ab04afd7e2655 Mon Sep 17 00:00:00 2001 From: Jocelyn Gonzalez Date: Sat, 23 Sep 2017 21:27:17 -0700 Subject: [PATCH 9/9] adds completion date when clicked, reqs complete --- app/controllers/tasks_controller.rb | 2 + app/views/tasks/edit.html.erb | 2 - app/views/tasks/index.html.erb | 1 + config/routes.rb | 1 - log/development.log | 954 ++++++++++++++++++++++++++++ 5 files changed, 957 insertions(+), 3 deletions(-) diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index 0282c5ca0..eb2790e21 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -49,8 +49,10 @@ def toggle_complete if task.status task.status = false + task.completion_date = nil elsif task.status = true + task.completion_date = Date.today end task.save redirect_to root_path diff --git a/app/views/tasks/edit.html.erb b/app/views/tasks/edit.html.erb index 50db15c4a..e566207bf 100644 --- a/app/views/tasks/edit.html.erb +++ b/app/views/tasks/edit.html.erb @@ -6,7 +6,5 @@ <%= f.text_field :name %> <%= f.label :description %> <%= f.text_field :description %> - <%= f.label :completion_date %> - <%= f.text_field :completion_date %> <%= f.submit %> <% end %> diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb index f2dc3c43b..3547a1e31 100644 --- a/app/views/tasks/index.html.erb +++ b/app/views/tasks/index.html.erb @@ -25,6 +25,7 @@ <% if task.status %> <%= link_to "Completed", toggle_complete_path(task.id), method: :patch, class: "button" %> + <% else %> <%= link_to "Mark Complete", toggle_complete_path(task.id), method: :patch, class: "button" %> <% end %> diff --git a/config/routes.rb b/config/routes.rb index d4ed632ff..1eace66fe 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -16,7 +16,6 @@ post '/tasks', to: 'tasks#create', as: 'create_task' # create_task_path - delete '/tasks/:id', to: 'tasks#destroy', as: 'delete_task' # delete_task_path # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html diff --git a/log/development.log b/log/development.log index 58e51c998..1b86fe9ff 100644 --- a/log/development.log +++ b/log/development.log @@ -6956,3 +6956,957 @@ Processing by TasksController#show as HTML Completed 200 OK in 49ms (Views: 39.6ms | ActiveRecord: 3.9ms) +Started GET "/" for 127.0.0.1 at 2017-09-23 20:44:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (21.5ms) +Completed 200 OK in 96ms (Views: 83.5ms | ActiveRecord: 1.3ms) + + +Started PATCH "/tasks/15/toggle_complete" for 127.0.0.1 at 2017-09-23 20:45:06 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"JQSwXcqgk83VpFhTNEG/Oigy7QL/3GChJCam7sENiUY0mAq30h5P/oQKNKw0jcaV8ygdKgXOAmzlBsl3aAgWxA==", "id"=>"15"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] +  (0.2ms) BEGIN + SQL (0.8ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "f"], ["updated_at", "2017-09-24 03:45:06.389868"], ["id", 15]] +  (1.5ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 16ms (ActiveRecord: 3.2ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 20:45:06 -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 (4.9ms) +Completed 200 OK in 84ms (Views: 81.7ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 20:45:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.8ms) +Completed 200 OK in 27ms (Views: 24.4ms | ActiveRecord: 0.5ms) + + +Started PATCH "/tasks/15/toggle_complete" for 127.0.0.1 at 2017-09-23 20:45:42 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"v+zL4RGHlvEnCQA6KFCiRI/ltmjfns+yab4JWQDmnnqucHELCTlKwnanbMUonNvrVP9GQCWMrX+onmbAqeMB+A==", "id"=>"15"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (0.5ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "t"], ["updated_at", "2017-09-24 03:45:42.845224"], ["id", 15]] +  (1.3ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 6ms (ActiveRecord: 2.3ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 20:45:42 -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 (3.7ms) +Completed 200 OK in 22ms (Views: 19.4ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 20:46:07 -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.6ms) +Completed 200 OK in 27ms (Views: 25.0ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 20:51:40 -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 (4.8ms) +Completed 200 OK in 52ms (Views: 48.8ms | ActiveRecord: 0.4ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 20:51:53 -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 (4.8ms) +Completed 200 OK in 22ms (Views: 20.4ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 20:51:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 24ms (Views: 22.0ms | ActiveRecord: 0.7ms) + + +Started PATCH "/tasks/15/toggle_complete" for 127.0.0.1 at 2017-09-23 20:52:02 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"LU6gWQZNueD1aS2VMvWnisYWt6cQEOiD5mHrlR5Tlkg80hqzHvNl06THQWoyOd4lHQxHj+oCik4nQYQMt1YJyg==", "id"=>"15"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] +  (0.3ms) BEGIN + SQL (0.5ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "f"], ["updated_at", "2017-09-24 03:52:02.953134"], ["id", 15]] +  (1.3ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 6ms (ActiveRecord: 2.4ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 20:52:02 -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 (3.6ms) +Completed 200 OK in 25ms (Views: 22.4ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 20:52:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.9ms) +Completed 200 OK in 24ms (Views: 21.3ms | ActiveRecord: 0.7ms) + + +Started PATCH "/tasks/15/toggle_complete" for 127.0.0.1 at 2017-09-23 20:52:39 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"WJ1+R+vrfm4G1GgfbXagDvm9wO2M4iionPM9ADSEFs5JAcSt81WiXVd6BOBtutmhIqcwxXbwSmVd01KZnYGJTA==", "id"=>"15"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (0.4ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "t"], ["updated_at", "2017-09-24 03:52:39.614714"], ["id", 15]] +  (1.4ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 7ms (ActiveRecord: 2.3ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 20:52:39 -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 (4.2ms) +Completed 200 OK in 21ms (Views: 19.4ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/13/toggle_complete" for 127.0.0.1 at 2017-09-23 20:53:17 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"7yHSPSJJw5H8X44SsAGVYMxFBAI8M9E3cMpYnMjjAZT+vWjXOvcfoq3x4u2wzezPF1/0KsYhs/qx6jcFYeaeFg==", "id"=>"13"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (0.4ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "t"], ["updated_at", "2017-09-24 03:53:17.051314"], ["id", 13]] +  (1.4ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 6ms (ActiveRecord: 2.2ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 20:53:17 -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 (3.7ms) +Completed 200 OK in 21ms (Views: 18.4ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/13/toggle_complete" for 127.0.0.1 at 2017-09-23 20:53:24 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"ikVhL1PQW+5bzlQY9pnduvzD925mctYJGsXM+rN+TNGb2dvFS26H3QpgOOf2VaQVJ9kHRpxgtMTb5aNjGnvTUw==", "id"=>"13"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] +  (0.2ms) BEGIN + SQL (0.5ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "f"], ["updated_at", "2017-09-24 03:53:24.655912"], ["id", 13]] +  (1.2ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 6ms (ActiveRecord: 2.0ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 20:53:24 -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 (3.2ms) +Completed 200 OK in 20ms (Views: 17.4ms | ActiveRecord: 0.3ms) + + + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] +Started GET "/tasks/14/toggle_complete" for 127.0.0.1 at 2017-09-23 21:06:47 -0700 +  (8.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + +ActionController::RoutingError (No route matches [GET] "/tasks/14/toggle_complete"): + +actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.3) lib/rack/method_override.rb:22:in `call' +rack (2.0.3) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.3) lib/rack/sendfile.rb:111:in `call' +railties (5.1.4) lib/rails/engine.rb:522:in `call' +puma (3.10.0) lib/puma/configuration.rb:225:in `call' +puma (3.10.0) lib/puma/server.rb:605:in `handle_request' +puma (3.10.0) lib/puma/server.rb:437:in `process_client' +puma (3.10.0) lib/puma/server.rb:301:in `block in run' +puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/tasks/14/toggle_complete" for 127.0.0.1 at 2017-09-23 21:07:18 -0700 + +ActionController::RoutingError (No route matches [GET] "/tasks/14/toggle_complete"): + +actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.3) lib/rack/method_override.rb:22:in `call' +rack (2.0.3) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.3) lib/rack/sendfile.rb:111:in `call' +railties (5.1.4) lib/rails/engine.rb:522:in `call' +puma (3.10.0) lib/puma/configuration.rb:225:in `call' +puma (3.10.0) lib/puma/server.rb:605:in `handle_request' +puma (3.10.0) lib/puma/server.rb:437:in `process_client' +puma (3.10.0) lib/puma/server.rb:301:in `block in run' +puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/tasks/14/toggle_complete" for 127.0.0.1 at 2017-09-23 21:08:01 -0700 + +ActionController::RoutingError (No route matches [GET] "/tasks/14/toggle_complete"): + +actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.3) lib/rack/method_override.rb:22:in `call' +rack (2.0.3) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.3) lib/rack/sendfile.rb:111:in `call' +railties (5.1.4) lib/rails/engine.rb:522:in `call' +puma (3.10.0) lib/puma/configuration.rb:225:in `call' +puma (3.10.0) lib/puma/server.rb:605:in `handle_request' +puma (3.10.0) lib/puma/server.rb:437:in `process_client' +puma (3.10.0) lib/puma/server.rb:301:in `block in run' +puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/tasks/14/toggle_complete" for 127.0.0.1 at 2017-09-23 21:09:24 -0700 + +ActionController::RoutingError (No route matches [GET] "/tasks/14/toggle_complete"): + +actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.3) lib/rack/method_override.rb:22:in `call' +rack (2.0.3) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.3) lib/rack/sendfile.rb:111:in `call' +railties (5.1.4) lib/rails/engine.rb:522:in `call' +puma (3.10.0) lib/puma/configuration.rb:225:in `call' +puma (3.10.0) lib/puma/server.rb:605:in `handle_request' +puma (3.10.0) lib/puma/server.rb:437:in `process_client' +puma (3.10.0) lib/puma/server.rb:301:in `block in run' +puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/tasks/14/toggle_complete" for 127.0.0.1 at 2017-09-23 21:10:45 -0700 + +ActionController::RoutingError (No route matches [GET] "/tasks/14/toggle_complete"): + +actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.3) lib/rack/method_override.rb:22:in `call' +rack (2.0.3) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.3) lib/rack/sendfile.rb:111:in `call' +railties (5.1.4) lib/rails/engine.rb:522:in `call' +puma (3.10.0) lib/puma/configuration.rb:225:in `call' +puma (3.10.0) lib/puma/server.rb:605:in `handle_request' +puma (3.10.0) lib/puma/server.rb:437:in `process_client' +puma (3.10.0) lib/puma/server.rb:301:in `block in run' +puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/tasks/14/toggle_complete" for 127.0.0.1 at 2017-09-23 21:15:05 -0700 + +ActionController::RoutingError (No route matches [GET] "/tasks/14/toggle_complete"): + +actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.3) lib/rack/method_override.rb:22:in `call' +rack (2.0.3) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.3) lib/rack/sendfile.rb:111:in `call' +railties (5.1.4) lib/rails/engine.rb:522:in `call' +puma (3.10.0) lib/puma/configuration.rb:225:in `call' +puma (3.10.0) lib/puma/server.rb:605:in `handle_request' +puma (3.10.0) lib/puma/server.rb:437:in `process_client' +puma (3.10.0) lib/puma/server.rb:301:in `block in run' +puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/tasks/" for 127.0.0.1 at 2017-09-23 21:15:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.7ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (21.4ms) +Completed 200 OK in 298ms (Views: 275.9ms | ActiveRecord: 9.2ms) + + +Started PATCH "/tasks/15/toggle_complete" for 127.0.0.1 at 2017-09-23 21:15:31 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"TzqLrnlRKTN8wuarek9uD54LhJ2iVG2Y63XC7CX8UplepjFEYe/1AC1silR6gxegRRF0tVhGD1UqVa11jPnNGw==", "id"=>"15"} + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] +  (0.2ms) BEGIN + SQL (0.5ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "f"], ["updated_at", "2017-09-24 04:15:31.457633"], ["id", 15]] +  (12.1ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 24ms (ActiveRecord: 14.2ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 21:15:31 -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 (3.3ms) +Completed 200 OK in 29ms (Views: 27.3ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/16/toggle_complete" for 127.0.0.1 at 2017-09-23 21:15:34 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"DkUiVaCXTl1ZPPYPdpQ9o0uTWFW3xxObGw09mQp9kicf2Zi/uCmSbgiSmvB2WEQMkImofU3VcVbaLVIAo3gNpQ==", "id"=>"16"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 16], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (0.7ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "t"], ["updated_at", "2017-09-24 04:15:34.751587"], ["id", 16]] +  (1.3ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 8ms (ActiveRecord: 2.4ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 21:15:34 -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 (4.6ms) +Completed 200 OK in 39ms (Views: 37.2ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/16/toggle_complete" for 127.0.0.1 at 2017-09-23 21:15:37 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"rCR6ls5mAQ3QEevpcMVtoRnjfv0yqI6OX/sRvaexD8S9uMB81tjdPoG/hxZwCRQOwvmO1ci67EOe234kDrSQRg==", "id"=>"16"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 16], ["LIMIT", 1]] +  (0.2ms) BEGIN + SQL (2.9ms) UPDATE "tasks" SET "status" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["status", "f"], ["updated_at", "2017-09-24 04:15:37.120585"], ["id", 16]] +  (5.9ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 15ms (ActiveRecord: 9.3ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 21:15:37 -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 (6.0ms) +Completed 200 OK in 44ms (Views: 42.3ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 21:16:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (8.8ms) +Completed 200 OK in 58ms (Views: 46.9ms | ActiveRecord: 0.7ms) + + +Started PATCH "/tasks/15/toggle_complete" for 127.0.0.1 at 2017-09-23 21:16:18 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"NLq4TbrTpbo1LtPpbrYElbM1bV18YWBnZ6zTzEP++rAlJgKnom15iWSAvxZuen06aC+ddYZzAqqmjLxV6vtlMg==", "id"=>"15"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (0.5ms) UPDATE "tasks" SET "status" = $1, "completion_date" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["status", "t"], ["completion_date", "2017-09-23"], ["updated_at", "2017-09-24 04:16:18.702951"], ["id", 15]] +  (6.2ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 16ms (ActiveRecord: 7.1ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 21:16:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.8ms) +Completed 200 OK in 21ms (Views: 18.2ms | ActiveRecord: 1.4ms) + + +Started PATCH "/tasks/16/toggle_complete" for 127.0.0.1 at 2017-09-23 21:16:21 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"ZZcyJqus+VP9bDpgNy47AGBK8XjO4VPDiRNv101RZpl0C4jMsxIlYKzCVp834kKvu1ABUDTzMQ5IMwBO5FT5Gw==", "id"=>"16"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 16], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (0.6ms) UPDATE "tasks" SET "status" = $1, "completion_date" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["status", "t"], ["completion_date", "2017-09-23"], ["updated_at", "2017-09-24 04:16:21.521962"], ["id", 16]] +  (6.0ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 11ms (ActiveRecord: 6.9ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 21:16:21 -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 (3.0ms) +Completed 200 OK in 20ms (Views: 18.1ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/14/toggle_complete" for 127.0.0.1 at 2017-09-23 21:16:22 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"Zqmh6cJyhRWJkzBYciNOj/FfHbksEA3T5ktXEE7jEtB3NRsD2sxZJtg9XKdy7zcgKkXtkdYCbx4naziJ5+aNUg==", "id"=>"14"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] +  (0.2ms) BEGIN + SQL (0.3ms) UPDATE "tasks" SET "status" = $1, "completion_date" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["status", "t"], ["completion_date", "2017-09-23"], ["updated_at", "2017-09-24 04:16:22.837438"], ["id", 14]] +  (5.7ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 10ms (ActiveRecord: 6.4ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 21:16:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.9ms) +Completed 200 OK in 30ms (Views: 27.0ms | ActiveRecord: 0.5ms) + + +Started PATCH "/tasks/13/toggle_complete" for 127.0.0.1 at 2017-09-23 21:16:26 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"lpPJyq1pdRtaY34ojuJH/msXElrHiESoFggf5sCN6+OHD3MgtdepKAvNEteOLj5RsA3icj2aJmXXKHB/aYh0YQ==", "id"=>"13"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] +  (0.2ms) BEGIN + SQL (0.4ms) UPDATE "tasks" SET "status" = $1, "completion_date" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["status", "t"], ["completion_date", "2017-09-23"], ["updated_at", "2017-09-24 04:16:26.269659"], ["id", 13]] +  (1.2ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 6ms (ActiveRecord: 2.0ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 21:16:26 -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 (2.9ms) +Completed 200 OK in 18ms (Views: 15.8ms | ActiveRecord: 0.3ms) + + + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" +Started GET "/tasks" for 127.0.0.1 at 2017-09-23 21:18:43 -0700 +  (7.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (18.6ms) +Completed 200 OK in 307ms (Views: 273.9ms | ActiveRecord: 3.7ms) + + +Started PATCH "/tasks/14/toggle_complete" for 127.0.0.1 at 2017-09-23 21:18:48 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"YobKlvdm3NvSgnbR92n/Ueh6jEtgZIq8nYmsC79skzVzGnB879gA6IMsGi73pYb+M2B8Y5p26HFcqcOSFmkMtw==", "id"=>"14"} + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] +  (0.4ms) BEGIN + SQL (7.1ms) UPDATE "tasks" SET "status" = $1, "completion_date" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["status", "f"], ["completion_date", nil], ["updated_at", "2017-09-24 04:18:48.426899"], ["id", 14]] +  (11.5ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 51ms (ActiveRecord: 30.5ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 21:18:48 -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 (3.5ms) +Completed 200 OK in 43ms (Views: 41.3ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/13/toggle_complete" for 127.0.0.1 at 2017-09-23 21:18:52 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"R4Wjb/z3Yi7Q4ZFFLawouvH4+n/4P+HrIzygoiKQ1t9WGRmF5Em+HYFP/botYFEVKuIKVwItgybiHM87i5VJXQ==", "id"=>"13"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] +  (0.2ms) BEGIN + SQL (0.6ms) UPDATE "tasks" SET "status" = $1, "completion_date" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["status", "f"], ["completion_date", nil], ["updated_at", "2017-09-24 04:18:52.941730"], ["id", 13]] +  (6.2ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 12ms (ActiveRecord: 7.3ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 21:18:52 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.7ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.1ms) +Completed 200 OK in 22ms (Views: 18.9ms | ActiveRecord: 1.7ms) + + + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] +Started GET "/tasks/14/toggle_complete" for 127.0.0.1 at 2017-09-23 21:21:30 -0700 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + +ActionController::RoutingError (No route matches [GET] "/tasks/14/toggle_complete"): + +actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.3) lib/rack/method_override.rb:22:in `call' +rack (2.0.3) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.3) lib/rack/sendfile.rb:111:in `call' +railties (5.1.4) lib/rails/engine.rb:522:in `call' +puma (3.10.0) lib/puma/configuration.rb:225:in `call' +puma (3.10.0) lib/puma/server.rb:605:in `handle_request' +puma (3.10.0) lib/puma/server.rb:437:in `process_client' +puma (3.10.0) lib/puma/server.rb:301:in `block in run' +puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/tasks/" for 127.0.0.1 at 2017-09-23 21:21:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (2.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (41.8ms) +Completed 200 OK in 338ms (Views: 312.1ms | ActiveRecord: 16.0ms) + + +Started GET "/tasks/15" for 127.0.0.1 at 2017-09-23 21:21:42 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"15"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 81ms (Views: 61.1ms | ActiveRecord: 2.6ms) + + +Started PATCH "/tasks/14/toggle_complete" for 127.0.0.1 at 2017-09-23 21:21:57 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"SD3R3bTltbbhgZ6lCw1lGS5L9cHDXzW4mXoFOog487JZoWs3rFtphbAv8loLwRy29VEF6TlNV3VYWmqjIT1sMA==", "id"=>"14"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] +  (0.2ms) BEGIN + SQL (6.3ms) UPDATE "tasks" SET "status" = $1, "completion_date" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["status", "t"], ["completion_date", "2017-09-23"], ["updated_at", "2017-09-24 04:21:57.103109"], ["id", 14]] +  (11.0ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 23ms (ActiveRecord: 17.8ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 21:21:57 -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 (2.8ms) +Completed 200 OK in 17ms (Views: 15.6ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/13/toggle_complete" for 127.0.0.1 at 2017-09-23 21:22:00 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"3wGt1mgXHAow5TDVl9N9P2lyuIaLeAYHFuZ6eVgErYPOnRc8cKnAOWFLXCqXHwSQsmhIrnFqZMrXxhXg8QEyAQ==", "id"=>"13"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] +  (0.2ms) BEGIN + SQL (0.3ms) UPDATE "tasks" SET "status" = $1, "completion_date" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["status", "t"], ["completion_date", "2017-09-23"], ["updated_at", "2017-09-24 04:22:00.840158"], ["id", 13]] +  (1.2ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 6ms (ActiveRecord: 2.1ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 21:22:00 -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 (2.9ms) +Completed 200 OK in 22ms (Views: 19.7ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/15/toggle_complete" for 127.0.0.1 at 2017-09-23 21:22:07 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"/wJZIJxO+sQrX9wR4byf1BW4TXVeW5Q42DgbTci8oAvunuPKhPAm93rxsO7hcOZ7zqK9XaRJ9vUZGHTUYbk/iQ==", "id"=>"15"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (0.4ms) UPDATE "tasks" SET "status" = $1, "completion_date" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["status", "f"], ["completion_date", nil], ["updated_at", "2017-09-24 04:22:07.032785"], ["id", 15]] +  (5.5ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 11ms (ActiveRecord: 6.7ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 21:22:07 -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 (3.4ms) +Completed 200 OK in 20ms (Views: 18.0ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/16/toggle_complete" for 127.0.0.1 at 2017-09-23 21:22:14 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"G4g/i6Y49iZOxFfLinc5x8dq8FM0hrYlr4lsKwjS3+MKFIVhvoYqFR9qOzSKu0BoHHAAe86U1OhuqQOyoddAYQ==", "id"=>"16"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 16], ["LIMIT", 1]] +  (0.5ms) BEGIN + SQL (0.7ms) UPDATE "tasks" SET "status" = $1, "completion_date" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["status", "f"], ["completion_date", nil], ["updated_at", "2017-09-24 04:22:14.213888"], ["id", 16]] +  (1.4ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 9ms (ActiveRecord: 3.1ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 21:22:14 -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 (2.9ms) +Completed 200 OK in 18ms (Views: 16.3ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/14/toggle_complete" for 127.0.0.1 at 2017-09-23 21:22:17 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"U2KjMufAxVd8bwSLi3lnt8MjUw2X0LxQ2t9dgrS6jC9C/hnY/34ZZC3BaHSLtR4YGDmjJW3C3p0b/zIbHb8TrQ==", "id"=>"14"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] +  (0.2ms) BEGIN + SQL (0.4ms) UPDATE "tasks" SET "status" = $1, "completion_date" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["status", "f"], ["completion_date", nil], ["updated_at", "2017-09-24 04:22:17.286664"], ["id", 14]] +  (6.2ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 12ms (ActiveRecord: 7.1ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 21:22:17 -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 (3.7ms) +Completed 200 OK in 22ms (Views: 19.8ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/13/toggle_complete" for 127.0.0.1 at 2017-09-23 21:22:19 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"/GiY50SU+imwu9RgxTvraG+lDzJ7MKLUXWs3P3fXP/Tt9CINXComGuEVuJ/F95LHtL//GoEiwBmcS1im3tKgdg==", "id"=>"13"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] +  (0.2ms) BEGIN + SQL (0.4ms) UPDATE "tasks" SET "status" = $1, "completion_date" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["status", "f"], ["completion_date", nil], ["updated_at", "2017-09-24 04:22:19.025756"], ["id", 13]] +  (5.9ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 15ms (ActiveRecord: 6.9ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 21:22:19 -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 (3.4ms) +Completed 200 OK in 19ms (Views: 16.9ms | ActiveRecord: 0.4ms) + + +Started PATCH "/tasks/15/toggle_complete" for 127.0.0.1 at 2017-09-23 21:22:27 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"BuSb4GLr0sm0krWrmLRd3xXbm8L0hI8Nr3iChKgwkE4XeCEKelUO+uU82VSYeCRwzsFr6g6W7cBuWO0dATUPzA==", "id"=>"15"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] +  (0.2ms) BEGIN + SQL (0.3ms) UPDATE "tasks" SET "status" = $1, "completion_date" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["status", "t"], ["completion_date", "2017-09-23"], ["updated_at", "2017-09-24 04:22:27.462249"], ["id", 15]] +  (1.2ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 6ms (ActiveRecord: 2.2ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 21:22:27 -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 (3.3ms) +Completed 200 OK in 20ms (Views: 18.2ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/15/toggle_complete" for 127.0.0.1 at 2017-09-23 21:22:43 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"voWqGT2WJzxgp8NgOrIbsDKyLjySc/UKxT69TXIZ9FqvGRDzJSj7DzEJr586fmIf6ajeFGhhl8cEHtLU2xxr2A==", "id"=>"15"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (0.4ms) UPDATE "tasks" SET "status" = $1, "completion_date" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["status", "f"], ["completion_date", nil], ["updated_at", "2017-09-24 04:22:43.113661"], ["id", 15]] +  (1.5ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 6ms (ActiveRecord: 2.2ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 21:22:43 -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 (3.0ms) +Completed 200 OK in 22ms (Views: 19.6ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/15/toggle_complete" for 127.0.0.1 at 2017-09-23 21:22:46 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"nlhAbBN2IwHJWNkCNfjvWtdl8eyAx16DBrV7l0sXIyGPxPqGC8j/Mpj2tf01NJb1DH8BxHrVPE7HlRQO4hK8ow==", "id"=>"15"} + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] +  (0.2ms) BEGIN + SQL (6.9ms) UPDATE "tasks" SET "status" = $1, "completion_date" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["status", "t"], ["completion_date", "2017-09-23"], ["updated_at", "2017-09-24 04:22:46.187067"], ["id", 15]] +  (5.7ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 20ms (ActiveRecord: 13.9ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 21:22:46 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 19ms (Views: 17.2ms | ActiveRecord: 0.5ms) + + +Started PATCH "/tasks/13/toggle_complete" for 127.0.0.1 at 2017-09-23 21:22:49 -0700 +Processing by TasksController#toggle_complete as HTML + Parameters: {"authenticity_token"=>"DcFYF0H0iwxn1G0ippdNkVR7PgXgTqDjFTu+V0iurBccXeL9WUpXPzZ6Ad2mWzQ+j2HOLRpcwi7UG9HO4aszlQ==", "id"=>"13"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] +  (0.2ms) BEGIN + SQL (0.5ms) UPDATE "tasks" SET "status" = $1, "completion_date" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["status", "t"], ["completion_date", "2017-09-23"], ["updated_at", "2017-09-24 04:22:49.335015"], ["id", 13]] +  (1.2ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 6ms (ActiveRecord: 2.2ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 21:22:49 -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 (3.7ms) +Completed 200 OK in 19ms (Views: 17.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-23 21:23:20 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (30.9ms) +Completed 200 OK in 89ms (Views: 86.4ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-23 21:23:37 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"j6aPYEH8oQKI2fowoVIz9Nog0eobEsP2tv9CmV4xrqEw07dzS4jRF4yyBJczxyvoQD0eXL/MS9IyylDZQFdwpA==", "task"=>{"name"=>"Throw away Magic cards", "description"=>"When S sleeps"}, "commit"=>"add task"} +  (0.1ms) BEGIN + SQL (0.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Throw away Magic cards"], ["description", "When S sleeps"], ["created_at", "2017-09-24 04:23:37.783117"], ["updated_at", "2017-09-24 04:23:37.783117"]] +  (5.8ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 11ms (ActiveRecord: 6.5ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 21:23:37 -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 (3.9ms) +Completed 200 OK in 26ms (Views: 23.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/17" for 127.0.0.1 at 2017-09-23 21:23:42 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"17"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 17], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 88ms (Views: 78.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/17/edit" for 127.0.0.1 at 2017-09-23 21:23:48 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"17"} + Task Load (6.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 17], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (4.5ms) +Completed 200 OK in 146ms (Views: 132.7ms | ActiveRecord: 6.8ms) + + +Started PATCH "/tasks/17" for 127.0.0.1 at 2017-09-23 21:23:57 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"terE8FeAW4R5KmzBHzddAk6iLnIC7bzNCCsRaj0miOXJq7Sc6eRL3lpFb/d2+lJxfMlDZFS0J/Sar3jxnwwUJQ==", "task"=>{"name"=>"Throw away Magic cards", "description"=>"When S is awake", "completion_date"=>""}, "commit"=>"Update Task", "id"=>"17"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 17], ["LIMIT", 1]] +  (0.5ms) BEGIN + SQL (0.5ms) UPDATE "tasks" SET "description" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["description", "When S is awake"], ["updated_at", "2017-09-24 04:23:57.881795"], ["id", 17]] +  (5.8ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 13ms (ActiveRecord: 7.2ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 21:23:57 -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 (3.6ms) +Completed 200 OK in 22ms (Views: 20.2ms | ActiveRecord: 0.4ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 21:24:18 -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.0ms) +Completed 200 OK in 39ms (Views: 36.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/17/edit" for 127.0.0.1 at 2017-09-23 21:24:23 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"17"} + Task Load (7.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 17], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.8ms) +Completed 200 OK in 78ms (Views: 68.1ms | ActiveRecord: 7.2ms) + + +Started PATCH "/tasks/17" for 127.0.0.1 at 2017-09-23 21:24:31 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"e9jCj770Hzb+qNYEaO+RvtjhsC1FVZxbmaZF7hIYMx8HmbLjAJAPbN3H1TIBIp7N6ordOxMMB2ILIix1sDKv3w==", "task"=>{"name"=>"Throw away Magic cards", "description"=>"When S is asleepsss"}, "commit"=>"Update Task", "id"=>"17"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 17], ["LIMIT", 1]] +  (0.1ms) BEGIN + SQL (0.3ms) UPDATE "tasks" SET "description" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["description", "When S is asleepsss"], ["updated_at", "2017-09-24 04:24:31.381931"], ["id", 17]] +  (5.8ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 12ms (ActiveRecord: 7.0ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 21:24:31 -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 (3.5ms) +Completed 200 OK in 23ms (Views: 20.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/17" for 127.0.0.1 at 2017-09-23 21:24:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"17"} + Task Load (5.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 17], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 51ms (Views: 42.4ms | ActiveRecord: 5.0ms) + + +Started DELETE "/tasks/17" for 127.0.0.1 at 2017-09-23 21:24:51 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"MDVEw1dcmxpBxIXuut3nAN37sSemA2Fsg/yz6JHNYRshqf4pT+JHKRBq6RG6EZ6vBuFBD1wRA6FC3NxxOMj+mQ==", "id"=>"17"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 17], ["LIMIT", 1]] + SQL (1.5ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 17]] +Redirected to http://localhost:3000/ +Completed 302 Found in 5ms (ActiveRecord: 1.9ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 21:24:51 -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 (3.4ms) +Completed 200 OK in 21ms (Views: 19.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-23 21:25:16 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (4.0ms) +Completed 200 OK in 42ms (Views: 39.1ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-23 21:25:42 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"+7KgeDGonVHIKk8ryCdAdoSh16nIwypC5oTgIv+Lq/tEx5hrO9ztRMxBsYxaslhqHrwYH2wdomZisfJi4e11/g==", "task"=>{"name"=>" hiii guys", "description"=>"akljfkjdn"}, "commit"=>"add task"} +  (0.3ms) BEGIN + SQL (0.7ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", " hiii guys"], ["description", "akljfkjdn"], ["created_at", "2017-09-24 04:25:42.759095"], ["updated_at", "2017-09-24 04:25:42.759095"]] +  (6.3ms) COMMIT +Redirected to http://localhost:3000/ +Completed 302 Found in 11ms (ActiveRecord: 7.3ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-23 21:25:42 -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 (4.6ms) +Completed 200 OK in 26ms (Views: 22.6ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/18" for 127.0.0.1 at 2017-09-23 21:25:49 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"18"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 18], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 32ms (Views: 28.6ms | ActiveRecord: 0.2ms) + +