From 9f6c5fb6e2c6e6315cea4735d55dc4d00661bb3e Mon Sep 17 00:00:00 2001 From: Kimberley Zell Date: Wed, 20 Sep 2017 18:51:13 -0700 Subject: [PATCH 01/11] forgot to push till now --- 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 | 15 + app/assets/stylesheets/tasks.scss | 65 + 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 | 11 + 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/models/task.rb | 2 + app/views/layouts/application.html.erb | 14 + app/views/layouts/mailer.html.erb | 13 + app/views/layouts/mailer.text.erb | 1 + app/views/tasks/index.html.erb | 29 + app/views/tasks/show.html.erb | 6 + 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 | 25 + 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 | 11 + config/secrets.yml | 32 + config/spring.rb | 6 + db/development.sqlite3 | Bin 0 -> 28672 bytes db/migrate/20170919222928_create_tasks.rb | 12 + db/schema.rb | 24 + db/seeds.rb | 7 + lib/assets/.keep | 0 lib/tasks/.keep | 0 log/.keep | 0 log/development.log | 1571 +++++++++++++++++ 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 | 9 + test/fixtures/.keep | 0 test/fixtures/files/.keep | 0 test/fixtures/tasks.yml | 13 + test/helpers/.keep | 0 test/integration/.keep | 0 test/mailers/.keep | 0 test/models/.keep | 0 test/models/task_test.rb | 7 + test/system/.keep | 0 test/test_helper.rb | 9 + vendor/.keep | 0 87 files changed, 2912 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/models/task.rb 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/index.html.erb create mode 100644 app/views/tasks/show.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/development.sqlite3 create mode 100644 db/migrate/20170919222928_create_tasks.rb create mode 100644 db/schema.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/fixtures/tasks.yml 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/models/task_test.rb 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..13ab51252 --- /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 sqlite3 as the database for Active Record +gem 'sqlite3' +# 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..98977da37 --- /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) + 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) + sqlite3 (1.3.13) + 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) + puma (~> 3.7) + rails (~> 5.1.4) + sass-rails (~> 5.0) + selenium-webdriver + spring + spring-watcher-listen (~> 2.0.0) + sqlite3 + 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..d05ea0f51 --- /dev/null +++ b/app/assets/stylesheets/application.css @@ -0,0 +1,15 @@ +/* + * 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 + */ diff --git a/app/assets/stylesheets/tasks.scss b/app/assets/stylesheets/tasks.scss new file mode 100644 index 000000000..70785c75a --- /dev/null +++ b/app/assets/stylesheets/tasks.scss @@ -0,0 +1,65 @@ +// 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/ + + + +main { +font-family: Arial; +margin-right: 50%; +font-size: 12px; +// border: solid; + +// padding: 2%; +} + +header { + text-align: center; + margin-right: 30%; + clear: both; +} + +h1 { + font-size: 3em; + display: inline-block; + float: left; + clear: both; +} + +h2 { + font-size: 2em; + text-align: center; +} + + +ol { + font-size: 1.5em; +} + +p { + font-size: 1em; +} + +section.yourtasks { + clear: both; + float: right; + border: solid; + border-radius: 5%; + padding: 2% 5%; +} + +section.tasklist { + clear: left; + float: left; + border: none; + clear: both; +} + +main { + border: solid; + border-bottom: solid; +} + +footer { + clear: both; +} 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..00731e073 --- /dev/null +++ b/app/controllers/tasks_controller.rb @@ -0,0 +1,11 @@ +class TasksController < ApplicationController + def index + @tasks = Task.all + return @tasks + end + + def show + @task = Task.find(params[:id]) + 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/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/layouts/application.html.erb b/app/views/layouts/application.html.erb new file mode 100644 index 000000000..be7a9f069 --- /dev/null +++ b/app/views/layouts/application.html.erb @@ -0,0 +1,14 @@ + + + + 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/index.html.erb b/app/views/tasks/index.html.erb new file mode 100644 index 000000000..6516a4bbf --- /dev/null +++ b/app/views/tasks/index.html.erb @@ -0,0 +1,29 @@ + +
+ [ Homepage ] +
+ +
+
+

Task List

+
+ +
+

Your Tasks

+
    + <%@tasks.each do |task|%> +
  1. +

    <%=link_to task.title, show_task_path(task.id)%>

    +

    + Mark Complete | Edit | Delete +

    +
  2. + <%end%> +
+
+
+ + + diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb new file mode 100644 index 000000000..c4b50a2e0 --- /dev/null +++ b/app/views/tasks/show.html.erb @@ -0,0 +1,6 @@ +

<%= @task.title%>

+

<%= @task.description%>

+ 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..0d02f2498 --- /dev/null +++ b/config/database.yml @@ -0,0 +1,25 @@ +# SQLite version 3.x +# gem install sqlite3 +# +# Ensure the SQLite 3 gem is defined in your Gemfile +# gem 'sqlite3' +# +default: &default + adapter: sqlite3 + pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> + timeout: 5000 + +development: + <<: *default + database: db/development.sqlite3 + +# 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: db/test.sqlite3 + +production: + <<: *default + database: db/production.sqlite3 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..a386df1bf --- /dev/null +++ b/config/routes.rb @@ -0,0 +1,11 @@ +Rails.application.routes.draw do + get 'tasks/index' + + get('/tasks', to: 'tasks#index', as: 'tasks') + get('/tasks/new', to: 'tasks#new', as: 'new_task') + post('/tasks', to: 'tasks#create') + get('/tasks/:id', to: 'tasks#show', as: 'show_task') + # 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..00d6dd4ef --- /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: a1776959757a3d404c816fb7186ce3821ec9ba752e2aeb750fa3d80584aa187733905f43f2c91f4d9ad60823030b28c0d511dfeeee88ae0038862d5feb7ef98a + +test: + secret_key_base: 067000fdb2f121cec0b7728b485ed8e351d70d17d516afb1f842d1407fac2d9f57847809be8eedbfe95d55c50d6681615121edf652c8faa54b11e2699f5810d0 + +# 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/development.sqlite3 b/db/development.sqlite3 new file mode 100644 index 0000000000000000000000000000000000000000..6a3797e4c513a03df9b593f15ae02c4064013a93 GIT binary patch literal 28672 zcmeI*(NEey90%|#DCjb+dszDD4PPWGwgoo8huIl)W{S>X7PE)ugi{-7i)}%D*aO=i zdQjK&p3k-jgr?-?-v*l!_q>Sk(kwFO`dH#T~l6v%YEU?9mU!J!&I3)7MkJ=} zE)MI$og16lolrQJ9}C}V6JnR-Uqn2xK>z{}fB*y_009U<00Izz00bcLCwX>$;xTbI(M-F#mrPgNsf;00Izz00bZa0SG_<0uX=z1g-^MM3dva^Z(BJ{{@jR zfCK>uKmY;|fB*y_009U<00IzzzylH3l167{41+sO%X1x@J3*BzUy>o%R1qB40j`9-jL&EgQzlC%U>@qVGSi zT8`x((VMhu^HbM5ZZD~8>Vm3MRV}n12ffSe*<2y5r!uZ&qacYU*xw%<#xlSX&U~*qfhJHqoTaskList + 5: <%= csrf_meta_tags %> + 6: + 7: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + 8: <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + 9: + 10: + +app/assets/stylesheets/tasks.scss:6 +app/views/layouts/application.html.erb:7:in `_app_views_layouts_application_html_erb___3679720666624546246_70245635228060' +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:48: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.6ms) +Completed 500 Internal Server Error in 21ms + + + +ActionView::Template::Error (Invalid CSS after "color: blue": expected "{", was ";"): + 4: TaskList + 5: <%= csrf_meta_tags %> + 6: + 7: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + 8: <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + 9: + 10: + +app/assets/stylesheets/tasks.scss:6 +app/views/layouts/application.html.erb:7:in `_app_views_layouts_application_html_erb___3679720666624546246_70245635966140' +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:48: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.7ms) +Completed 500 Internal Server Error in 24ms + + + +ActionView::Template::Error (Invalid CSS after "...mily: helvetica": expected "{", was ";"): + 4: TaskList + 5: <%= csrf_meta_tags %> + 6: + 7: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + 8: <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + 9: + 10: + +app/assets/stylesheets/tasks.scss:6 +app/views/layouts/application.html.erb:7:in `_app_views_layouts_application_html_erb___3679720666624546246_70245634916420' +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:49:19 -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 500 Internal Server Error in 20ms + + + +ActionView::Template::Error (Invalid CSS after "...mily: helvetica": expected "{", was ";"): + 4: TaskList + 5: <%= csrf_meta_tags %> + 6: + 7: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + 8: <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + 9: + 10: + +app/assets/stylesheets/tasks.scss:6 +app/views/layouts/application.html.erb:7:in `_app_views_layouts_application_html_erb___3679720666624546246_70245633876380' +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:49: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.8ms) +Completed 500 Internal Server Error in 15ms + + + +ActionView::Template::Error (Invalid CSS after "...mily: helvetica": expected "{", was ";"): + 4: TaskList + 5: <%= csrf_meta_tags %> + 6: + 7: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + 8: <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + 9: + 10: + +app/assets/stylesheets/tasks.scss:6 +app/views/layouts/application.html.erb:7:in `_app_views_layouts_application_html_erb___3679720666624546246_70245604308020' +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:50: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.9ms) +Completed 200 OK in 54ms (Views: 52.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:55:44 -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 16ms + + + +SyntaxError (/Users/kzell/Documents/Ada/Week7/TaskList/app/views/tasks/index.html.erb:16: syntax error, unexpected keyword_ensure, expecting end-of-input + ensure + ^): + +app/views/tasks/index.html.erb:16: syntax error, unexpected keyword_ensure, expecting end-of-input +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15: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.7ms) +Completed 200 OK in 39ms (Views: 36.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:57: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.5ms) +Completed 200 OK in 41ms (Views: 39.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:58: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.6ms) +Completed 200 OK in 20ms (Views: 17.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:59: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.4ms) +Completed 200 OK in 21ms (Views: 18.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:59:59 -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 40ms (Views: 37.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:00: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.6ms) +Completed 200 OK in 50ms (Views: 47.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:00: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.7ms) +Completed 200 OK in 50ms (Views: 47.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:00: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.7ms) +Completed 200 OK in 43ms (Views: 40.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:01: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 38ms (Views: 36.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:01: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.7ms) +Completed 200 OK in 38ms (Views: 35.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:01:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (241.7ms) +Completed 500 Internal Server Error in 252ms + + + +ActionView::Template::Error (undefined local variable or method `strong' for #<#:0x007fc6a8986c20> +Did you mean? String): + 4:
    + 5: <%@tasks.each do |task|%> + 6:
  • + 7: <%strong%><%=task["Title"]%> + 8:

    + 9: Mark Complete | Edit | Delete + 10:

    + +app/views/tasks/index.html.erb:7:in `block in _app_views_tasks_index_html_erb__4176940885698496683_70245604408080' +app/views/tasks/index.html.erb:5:in `each' +app/views/tasks/index.html.erb:5:in `_app_views_tasks_index_html_erb__4176940885698496683_70245604408080' +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:01:51 -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 44ms (Views: 41.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:03: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.7ms) +Completed 200 OK in 65ms (Views: 62.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:03:22 -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 21ms (Views: 18.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:03:42 -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.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:04: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 40ms (Views: 38.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:05:47 -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 24ms (Views: 21.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:07: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.5ms) +Completed 200 OK in 42ms (Views: 40.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:08:17 -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 57ms (Views: 54.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:08: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.7ms) +Completed 200 OK in 54ms (Views: 52.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:09:42 -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 56ms (Views: 54.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:09:53 -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: 37.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:10: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.9ms) +Completed 200 OK in 57ms (Views: 53.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:10: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.5ms) +Completed 200 OK in 40ms (Views: 37.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:11: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.7ms) +Completed 200 OK in 45ms (Views: 42.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:11:21 -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: 38.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:11: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.9ms) +Completed 200 OK in 44ms (Views: 41.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:11: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.8ms) +Completed 200 OK in 41ms (Views: 38.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:11:53 -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: 37.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:12: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 44ms (Views: 41.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:12:32 -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 40ms (Views: 35.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:12: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 45ms (Views: 42.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16: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 (0.5ms) +Completed 200 OK in 41ms (Views: 38.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:13: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.6ms) +Completed 200 OK in 51ms (Views: 48.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:13: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 48ms (Views: 45.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:14: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 58ms (Views: 54.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:14: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.7ms) +Completed 200 OK in 41ms (Views: 38.4ms) + + +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.6ms) +Completed 200 OK in 44ms (Views: 41.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:15: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.5ms) +Completed 200 OK in 47ms (Views: 44.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:15: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.8ms) +Completed 200 OK in 45ms (Views: 43.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:16: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.5ms) +Completed 200 OK in 23ms (Views: 20.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:17: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.7ms) +Completed 200 OK in 46ms (Views: 42.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:17:31 -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 25ms (Views: 22.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:18: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.8ms) +Completed 200 OK in 24ms (Views: 21.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:18: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.5ms) +Completed 200 OK in 23ms (Views: 20.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:19: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.5ms) +Completed 200 OK in 75ms (Views: 72.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:19: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.5ms) +Completed 200 OK in 47ms (Views: 44.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:19: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.9ms) +Completed 200 OK in 46ms (Views: 43.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:19: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.7ms) +Completed 200 OK in 43ms (Views: 40.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:20: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.6ms) +Completed 200 OK in 52ms (Views: 49.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:20: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 44ms (Views: 41.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:20: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.5ms) +Completed 200 OK in 44ms (Views: 42.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:20: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.5ms) +Completed 200 OK in 26ms (Views: 23.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:20: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 45ms (Views: 42.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:20:51 -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 54ms (Views: 51.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:21: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.5ms) +Completed 200 OK in 48ms (Views: 43.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:21: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.5ms) +Completed 200 OK in 61ms (Views: 56.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:21: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.7ms) +Completed 200 OK in 43ms (Views: 40.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:22:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 63ms (Views: 60.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:22: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 51ms (Views: 48.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:23: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.6ms) +Completed 200 OK in 49ms (Views: 46.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:23: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.7ms) +Completed 200 OK in 50ms (Views: 47.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:23: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 46ms (Views: 43.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:24: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.6ms) +Completed 200 OK in 25ms (Views: 22.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:24: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.6ms) +Completed 200 OK in 57ms (Views: 51.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:24: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 45ms (Views: 42.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:25: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.8ms) +Completed 200 OK in 65ms (Views: 62.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:26: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.6ms) +Completed 200 OK in 23ms (Views: 20.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:26: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.6ms) +Completed 200 OK in 48ms (Views: 45.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:26: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 53ms (Views: 50.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:27: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.5ms) +Completed 200 OK in 51ms (Views: 48.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:28: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.6ms) +Completed 200 OK in 46ms (Views: 43.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:28:17 -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 58ms (Views: 56.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:28: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 48ms (Views: 45.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:28:51 -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 41ms (Views: 38.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:29: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 42ms (Views: 39.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:31: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 74ms (Views: 71.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:31:17 -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 51ms (Views: 48.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:31: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.4ms) +Completed 200 OK in 49ms (Views: 46.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-18 16:32: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 200 OK in 56ms (Views: 52.6ms) + + +  (1.3ms) SELECT sqlite_version(*) +  (2.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) +  (1.8ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-09-19 22:12:38.880924"], ["updated_at", "2017-09-19 22:12:38.880924"]] +  (1.6ms) commit transaction +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to CreateTasks (20170919222928) +  (0.1ms) begin transaction +  (0.1ms) SELECT sqlite_version(*) +  (0.7ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "description" varchar, "due_date" datetime, "complete" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170919222928"]] +  (5.1ms) commit transaction + ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.2ms) begin transaction +  (0.1ms) commit transaction +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.1ms) begin transaction +  (0.1ms) commit transaction +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) begin transaction + SQL (1.9ms) INSERT INTO "tasks" ("title", "description", "due_date", "complete", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["title", "Yoga"], ["description", "Practice yoga at minimum 3 times per week"], ["due_date", "2017-09-30 00:00:00"], ["complete", "f"], ["created_at", "2017-09-19 22:49:04.211018"], ["updated_at", "2017-09-19 22:49:04.211018"]] +  (1.6ms) commit transaction + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" LIMIT ? [["LIMIT", 11]] +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) begin transaction + SQL (2.5ms) INSERT INTO "tasks" ("title", "description", "due_date", "complete", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["title", "CS FUN HW"], ["description", "Finish CS FUN Homework"], ["due_date", "2017-10-02 00:00:00"], ["complete", "f"], ["created_at", "2017-09-19 22:58:32.422654"], ["updated_at", "2017-09-19 22:58:32.422654"]] +  (1.6ms) commit transaction + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" LIMIT ? [["LIMIT", 11]] +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 16:00:09 -0700 +  (1.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.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (12.6ms) +Completed 200 OK in 378ms (Views: 354.5ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-19 16:06:52 -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 42ms (Views: 38.5ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 15:33:54 -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 (1.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (137.0ms) +Completed 500 Internal Server Error in 174ms (ActiveRecord: 2.2ms) + + + +ActionView::Template::Error (undefined method `task_path' for #<#:0x007ff64ad88d38> +Did you mean? tasks_path): + 13:
      + 14: <%@tasks.each do |task|%> + 15:
    1. + 16:

      <%=link_to task.title, task_path(task.id)%>

      + 17:

      + 18: Mark Complete | Edit | Delete + 19:

      + +app/views/tasks/index.html.erb:16:in `block in _app_views_tasks_index_html_erb__67294304359063174_70347897177820' +app/views/tasks/index.html.erb:14:in `_app_views_tasks_index_html_erb__67294304359063174_70347897177820' +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 15:35:05 -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 309ms (Views: 303.4ms | ActiveRecord: 2.0ms) + + +Started GET "/tasks.1" for 127.0.0.1 at 2017-09-20 15:35:08 -0700 +Processing by TasksController#index as + 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 64ms (Views: 41.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks.1" for 127.0.0.1 at 2017-09-20 15:35:10 -0700 +Processing by TasksController#index as + 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.8ms) +Completed 200 OK in 68ms (Views: 41.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks.1" for 127.0.0.1 at 2017-09-20 15:35:11 -0700 +Processing by TasksController#index as + 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.7ms) +Completed 200 OK in 67ms (Views: 42.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks.1" for 127.0.0.1 at 2017-09-20 15:35:12 -0700 +Processing by TasksController#index as + 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.8ms) +Completed 200 OK in 61ms (Views: 38.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks.1" for 127.0.0.1 at 2017-09-20 15:35:14 -0700 +Processing by TasksController#index as + 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.8ms) +Completed 200 OK in 62ms (Views: 39.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks.1" for 127.0.0.1 at 2017-09-20 15:35:21 -0700 +Processing by TasksController#index as + 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.6ms) +Completed 200 OK in 75ms (Views: 51.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks.1" for 127.0.0.1 at 2017-09-20 15:35:22 -0700 +Processing by TasksController#index as + 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.7ms) +Completed 200 OK in 60ms (Views: 39.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks.1" for 127.0.0.1 at 2017-09-20 15:35:48 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (12.3ms) +Completed 200 OK in 78ms (Views: 50.3ms | ActiveRecord: 1.7ms) + + +Started GET "/tasks.1" for 127.0.0.1 at 2017-09-20 15:35:50 -0700 +Processing by TasksController#index as + 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.6ms) +Completed 200 OK in 63ms (Views: 41.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks.1" for 127.0.0.1 at 2017-09-20 15:37:39 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (9.8ms) +Completed 200 OK in 74ms (Views: 45.8ms | ActiveRecord: 1.1ms) + + +Started GET "/task/1" for 127.0.0.1 at 2017-09-20 15:37:41 -0700 + +ActionController::RoutingError (uninitialized constant TaskController): + +activesupport (5.1.4) lib/active_support/inflector/methods.rb:269:in `const_get' +activesupport (5.1.4) lib/active_support/inflector/methods.rb:269:in `block in constantize' +activesupport (5.1.4) lib/active_support/inflector/methods.rb:267:in `each' +activesupport (5.1.4) lib/active_support/inflector/methods.rb:267:in `inject' +activesupport (5.1.4) lib/active_support/inflector/methods.rb:267:in `constantize' +actionpack (5.1.4) lib/action_dispatch/http/request.rb:85:in `controller_class_for' +actionpack (5.1.4) lib/action_dispatch/http/request.rb:78:in `controller_class' +actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:43:in `controller' +actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:29: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:25: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 "/task/1" for 127.0.0.1 at 2017-09-20 15:38:05 -0700 + +ActionController::RoutingError (uninitialized constant TaskController): + +activesupport (5.1.4) lib/active_support/inflector/methods.rb:269:in `const_get' +activesupport (5.1.4) lib/active_support/inflector/methods.rb:269:in `block in constantize' +activesupport (5.1.4) lib/active_support/inflector/methods.rb:267:in `each' +activesupport (5.1.4) lib/active_support/inflector/methods.rb:267:in `inject' +activesupport (5.1.4) lib/active_support/inflector/methods.rb:267:in `constantize' +actionpack (5.1.4) lib/action_dispatch/http/request.rb:85:in `controller_class_for' +actionpack (5.1.4) lib/action_dispatch/http/request.rb:78:in `controller_class' +actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:43:in `controller' +actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:29: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:25: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.1" for 127.0.0.1 at 2017-09-20 15:38:12 -0700 +Processing by TasksController#index as + 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.7ms) +Completed 200 OK in 81ms (Views: 54.5ms | ActiveRecord: 0.2ms) + + +Started GET "/task/1" for 127.0.0.1 at 2017-09-20 15:38:14 -0700 + +ActionController::RoutingError (uninitialized constant TaskController): + +activesupport (5.1.4) lib/active_support/inflector/methods.rb:269:in `const_get' +activesupport (5.1.4) lib/active_support/inflector/methods.rb:269:in `block in constantize' +activesupport (5.1.4) lib/active_support/inflector/methods.rb:267:in `each' +activesupport (5.1.4) lib/active_support/inflector/methods.rb:267:in `inject' +activesupport (5.1.4) lib/active_support/inflector/methods.rb:267:in `constantize' +actionpack (5.1.4) lib/action_dispatch/http/request.rb:85:in `controller_class_for' +actionpack (5.1.4) lib/action_dispatch/http/request.rb:78:in `controller_class' +actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:43:in `controller' +actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:29: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:25: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 "/task/1" for 127.0.0.1 at 2017-09-20 15:38:53 -0700 + +ActionController::RoutingError (No route matches [GET] "/task/1"): + +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 "/task/1" for 127.0.0.1 at 2017-09-20 15:40:39 -0700 + +ActionController::RoutingError (No route matches [GET] "/task/1"): + +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 "/task/1" for 127.0.0.1 at 2017-09-20 15:41:19 -0700 + +ActionController::RoutingError (uninitialized constant TaskController): + +activesupport (5.1.4) lib/active_support/inflector/methods.rb:269:in `const_get' +activesupport (5.1.4) lib/active_support/inflector/methods.rb:269:in `block in constantize' +activesupport (5.1.4) lib/active_support/inflector/methods.rb:267:in `each' +activesupport (5.1.4) lib/active_support/inflector/methods.rb:267:in `inject' +activesupport (5.1.4) lib/active_support/inflector/methods.rb:267:in `constantize' +actionpack (5.1.4) lib/action_dispatch/http/request.rb:85:in `controller_class_for' +actionpack (5.1.4) lib/action_dispatch/http/request.rb:78:in `controller_class' +actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:43:in `controller' +actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:29: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:25: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 "/task/1" for 127.0.0.1 at 2017-09-20 15:43:25 -0700 + +ActionController::RoutingError (No route matches [GET] "/task/1"): + +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 "/task/1" for 127.0.0.1 at 2017-09-20 15:45:13 -0700 + +ActionController::RoutingError (No route matches [GET] "/task/1"): + +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 "/task/1" for 127.0.0.1 at 2017-09-20 15:45:15 -0700 + +ActionController::RoutingError (No route matches [GET] "/task/1"): + +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 "/task/1" for 127.0.0.1 at 2017-09-20 15:45:58 -0700 + +ActionController::RoutingError (No route matches [GET] "/task/1"): + +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 "/" for 127.0.0.1 at 2017-09-20 15:46:12 -0700 +Processing by Rails::WelcomeController#index as HTML + Rendering /Users/kzell/.rvm/gems/ruby-2.4.0/gems/railties-5.1.4/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/kzell/.rvm/gems/ruby-2.4.0/gems/railties-5.1.4/lib/rails/templates/rails/welcome/index.html.erb (3.4ms) +Completed 200 OK in 13ms (Views: 6.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 15:46:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (12.3ms) +Completed 200 OK in 58ms (Views: 49.8ms | ActiveRecord: 2.6ms) + + +Started GET "/tasks/2" for 127.0.0.1 at 2017-09-20 15:46:26 -0700 +Processing by TasksController#show as HTML + Parameters: {"ids"=>"2"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", nil], ["LIMIT", 1]] +Completed 404 Not Found in 17ms (ActiveRecord: 0.4ms) + + + +ActiveRecord::RecordNotFound (Couldn't find Task with 'id'=): + +app/controllers/tasks_controller.rb:8:in `show' +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 15:46:33 -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 (2.4ms) +Completed 200 OK in 32ms (Views: 28.5ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-20 15:46:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"ids"=>"1"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", nil], ["LIMIT", 1]] +Completed 404 Not Found in 3ms (ActiveRecord: 0.9ms) + + + +ActiveRecord::RecordNotFound (Couldn't find Task with 'id'=): + +app/controllers/tasks_controller.rb:8:in `show' +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-20 15:48:12 -0700 +Processing by TasksController#show as HTML + Parameters: {"ids"=>"1"} + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["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 60ms (Views: 37.7ms | ActiveRecord: 2.2ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-20 15:48:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"ids"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 31ms (Views: 23.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 15:48: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 (20.0ms) +Completed 200 OK in 60ms (Views: 46.8ms | ActiveRecord: 2.2ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-20 15:48:43 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 41ms (Views: 34.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 15:52: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 (1.6ms) +Completed 200 OK in 42ms (Views: 37.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-20 15:52:28 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 34ms (Views: 28.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-20 15:53:03 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["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 29ms (Views: 25.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 15:53: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 (3.7ms) +Completed 200 OK in 56ms (Views: 49.7ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/2" for 127.0.0.1 at 2017-09-20 15:53:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 43ms (Views: 36.2ms | ActiveRecord: 0.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..67683c951 --- /dev/null +++ b/test/controllers/tasks_controller_test.rb @@ -0,0 +1,9 @@ +require 'test_helper' + +class TasksControllerTest < ActionDispatch::IntegrationTest + test "should get index" do + get tasks_index_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/fixtures/tasks.yml b/test/fixtures/tasks.yml new file mode 100644 index 000000000..85bc8fe14 --- /dev/null +++ b/test/fixtures/tasks.yml @@ -0,0 +1,13 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + title: MyString + description: MyString + due_date: 2017-09-19 15:29:28 + complete: false + +two: + title: MyString + description: MyString + due_date: 2017-09-19 15:29:28 + complete: false 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/models/task_test.rb b/test/models/task_test.rb new file mode 100644 index 000000000..3ca215970 --- /dev/null +++ b/test/models/task_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class TaskTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end 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 07860236d7be4f1d5a038aa7a6675a777e0a2d06 Mon Sep 17 00:00:00 2001 From: Kimberley Zell Date: Wed, 20 Sep 2017 19:09:09 -0700 Subject: [PATCH 02/11] added html.erb for new task and also added def new to controller --- app/controllers/tasks_controller.rb | 3 +++ app/views/tasks/index.html.erb | 2 ++ app/views/tasks/new.html.erb | 11 +++++++++++ log/development.log | 19 +++++++++++++++++++ 4 files changed, 35 insertions(+) create mode 100644 app/views/tasks/new.html.erb diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index 00731e073..ee38dc794 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -8,4 +8,7 @@ def show @task = Task.find(params[:id]) end + def new + @task = Task.new(title: params[:task][:title], description: params[:task][:description], due_date: params[:task][:due_date], complete: false) + end end diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb index 6516a4bbf..ece5eb37a 100644 --- a/app/views/tasks/index.html.erb +++ b/app/views/tasks/index.html.erb @@ -21,6 +21,8 @@ <%end%>
    + + diff --git a/app/views/tasks/new.html.erb b/app/views/tasks/new.html.erb new file mode 100644 index 000000000..3ad2619b0 --- /dev/null +++ b/app/views/tasks/new.html.erb @@ -0,0 +1,11 @@ +
    + <%=form_for @task do |f|%> + <%f.label :title%> + <%f.text_field :title%> + <%f.label :description%> + <%f.text_field :description%> + <%f.label :due_date%> + <%f.text_field :due_date%> + <%f.submit "Add Task"%> + <%end%> +
    diff --git a/log/development.log b/log/development.log index 6c91bd9c5..9795d604a 100644 --- a/log/development.log +++ b/log/development.log @@ -1569,3 +1569,22 @@ Processing by TasksController#show as HTML Completed 200 OK in 43ms (Views: 36.2ms | ActiveRecord: 0.3ms) +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 18:59: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 (5.2ms) +Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.3ms) + + + +ActionView::Template::Error (First argument in form cannot contain nil or be empty): + 23: + 24: + 25:
    + 26: <%=form_for @task do |f|%> + 27: <%f.label :title%> + 28: <%f.text_field :title%> + 29: <%f.label :description%> + +app/views/tasks/index.html.erb:26:in `_app_views_tasks_index_html_erb__67294304359063174_70347933000140' From 08589136c5996ee05eb7082d51a955b0dda26aeb Mon Sep 17 00:00:00 2001 From: Kimberley Zell Date: Wed, 20 Sep 2017 19:38:25 -0700 Subject: [PATCH 03/11] trying to get add new task to work. added def for create and separated from def new. --- app/controllers/tasks_controller.rb | 20 +++- app/models/task.rb | 5 + app/views/tasks/index.html.erb | 4 +- app/views/tasks/new.html.erb | 2 +- config/routes.rb | 1 + log/development.log | 139 ++++++++++++++++++++++++++++ 6 files changed, 168 insertions(+), 3 deletions(-) diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index ee38dc794..17e0e7d01 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -1,7 +1,7 @@ class TasksController < ApplicationController def index @tasks = Task.all - return @tasks + return @tasks end def show @@ -9,6 +9,24 @@ def show end def new + @task = Task.new + end + + def create @task = Task.new(title: params[:task][:title], description: params[:task][:description], due_date: params[:task][:due_date], complete: false) + + if @task.save + task.save + redirect_to tasks_path + else + render :new + end end + + def complete + task = Task.find(params[:id]) + task.complete! + redirect_to tasks_path + end + end diff --git a/app/models/task.rb b/app/models/task.rb index 3c2342421..ad1848594 100644 --- a/app/models/task.rb +++ b/app/models/task.rb @@ -1,2 +1,7 @@ class Task < ApplicationRecord + def complete! + self.complete = true + self.save + end + end diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb index ece5eb37a..09677b4a6 100644 --- a/app/views/tasks/index.html.erb +++ b/app/views/tasks/index.html.erb @@ -22,7 +22,9 @@
    - +
    + <%=button_to "Add New", new_task_path, method: :get%> +
    diff --git a/app/views/tasks/new.html.erb b/app/views/tasks/new.html.erb index 3ad2619b0..75ad71888 100644 --- a/app/views/tasks/new.html.erb +++ b/app/views/tasks/new.html.erb @@ -1,4 +1,4 @@ -
    +
    <%=form_for @task do |f|%> <%f.label :title%> <%f.text_field :title%> diff --git a/config/routes.rb b/config/routes.rb index a386df1bf..6efa02da0 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -5,6 +5,7 @@ get('/tasks/new', to: 'tasks#new', as: 'new_task') post('/tasks', to: 'tasks#create') get('/tasks/:id', to: 'tasks#show', as: 'show_task') + patch('tasks/:id/complete', to: 'tasks#complete', as:'complete_task') # 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 9795d604a..333384f68 100644 --- a/log/development.log +++ b/log/development.log @@ -1588,3 +1588,142 @@ ActionView::Template::Error (First argument in form cannot contain nil or be emp 29: <%f.label :description%> app/views/tasks/index.html.erb:26:in `_app_views_tasks_index_html_erb__67294304359063174_70347933000140' +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 19:23: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 (11.6ms) +Completed 200 OK in 66ms (Views: 56.7ms | ActiveRecord: 1.7ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-20 19:23:59 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["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 36ms (Views: 29.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 19:30: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 (11.2ms) +Completed 200 OK in 56ms (Views: 47.7ms | ActiveRecord: 1.3ms) + + +Started POST "/tasks/new" for 127.0.0.1 at 2017-09-20 19:30:16 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks/new"): + +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-20 19:32:20 -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 42ms (Views: 38.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 19:32:22 -0700 +Processing by TasksController#new as HTML +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) + + + +NoMethodError (undefined method `[]' for nil:NilClass): + +app/controllers/tasks_controller.rb:12:in `new' +Started GET "/" for 127.0.0.1 at 2017-09-20 19:32:31 -0700 +Processing by Rails::WelcomeController#index as HTML + Rendering /Users/kzell/.rvm/gems/ruby-2.4.0/gems/railties-5.1.4/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/kzell/.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 10ms (Views: 5.9ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 19:32: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 (1.5ms) +Completed 200 OK in 24ms (Views: 21.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 19:32:38 -0700 +Processing by TasksController#new as HTML +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + + + +NoMethodError (undefined method `[]' for nil:NilClass): + +app/controllers/tasks_controller.rb:12:in `new' +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 19:36:50 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (9.7ms) +Completed 200 OK in 37ms (Views: 29.1ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 19:36:52 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (19.7ms) +Completed 200 OK in 44ms (Views: 40.2ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-20 19:36:53 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"S3u2bjR+ynd+/VYL99do6mQc+2pBwysgDzJlM8JrOhGO4QeUPLfdpI53AvBek2uLfPbzOb1zM5svL0F6uXAlnQ==", "commit"=>"Add Task"} +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + + + +NoMethodError (undefined method `[]' for nil:NilClass): + +app/controllers/tasks_controller.rb:16:in `create' +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 19:37:04 -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 28ms (Views: 23.9ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-20 19:37:08 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Pns5ND7i1VzMrDD6Ivrku56BPKlu5s44mLgEJqw84Ov74YjONivCjzwmZAGLvufahms0+pJW1oO4pSBv1yf/Zw==", "commit"=>"Add Task"} +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) + + + +NoMethodError (undefined method `[]' for nil:NilClass): + +app/controllers/tasks_controller.rb:16:in `create' From 9015c03ea6dd08bcce7cde1a00edd2b050f56aa2 Mon Sep 17 00:00:00 2001 From: Kimberley Zell Date: Wed, 20 Sep 2017 19:43:58 -0700 Subject: [PATCH 04/11] Got the add new button and form working --- app/controllers/tasks_controller.rb | 2 +- app/views/tasks/new.html.erb | 14 ++--- db/development.sqlite3 | Bin 28672 -> 28672 bytes log/development.log | 92 ++++++++++++++++++++++++++++ 4 files changed, 100 insertions(+), 8 deletions(-) diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index 17e0e7d01..3af43419a 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -16,7 +16,7 @@ def create @task = Task.new(title: params[:task][:title], description: params[:task][:description], due_date: params[:task][:due_date], complete: false) if @task.save - task.save + @task.save redirect_to tasks_path else render :new diff --git a/app/views/tasks/new.html.erb b/app/views/tasks/new.html.erb index 75ad71888..497ea4b85 100644 --- a/app/views/tasks/new.html.erb +++ b/app/views/tasks/new.html.erb @@ -1,11 +1,11 @@
    <%=form_for @task do |f|%> - <%f.label :title%> - <%f.text_field :title%> - <%f.label :description%> - <%f.text_field :description%> - <%f.label :due_date%> - <%f.text_field :due_date%> - <%f.submit "Add Task"%> + <%=f.label :title%> + <%=f.text_field :title%> + <%=f.label :description%> + <%=f.text_field :description%> + <%=f.label :due_date%> + <%=f.text_field :due_date%> + <%=f.submit "Add Task"%> <%end%>
    diff --git a/db/development.sqlite3 b/db/development.sqlite3 index 6a3797e4c513a03df9b593f15ae02c4064013a93..a3aa186904c3d6bed9cc36bcc5df7794c0b46ac2 100644 GIT binary patch delta 304 zcmZp8z}WDBae_1>=R_H2M$U~1OZ@p*`2-pG8~FwJ4)K-n32qh?_|IFP$jZSWt!T{e z=;)JJnwL^knUb%N17R5%7@F%ESn3*CDi|18fl(S<%uvC=$jZdX%D`C9#KgqH)DpLh z4+{r_qBsN43YUBZge{pRK-21>RzQq1v@$l+e8^>Mz)O!OZ+*Q_yrjF8~Ft`3ktCCZx)DuFTltI0Pdp-Qvd(} diff --git a/log/development.log b/log/development.log index 333384f68..c26047b5e 100644 --- a/log/development.log +++ b/log/development.log @@ -1727,3 +1727,95 @@ Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) NoMethodError (undefined method `[]' for nil:NilClass): app/controllers/tasks_controller.rb:16:in `create' +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 19:39:13 -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 29ms (Views: 25.1ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-20 19:39:20 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"AsJXEpvjLEoPPEyj888Ohg1zNeSWqJoQlz6gGv1hfzPHWObokyo7mf+2GFhaiw3nFZk9t2oYgqu3I4RThnpgvw==", "commit"=>"Add Task"} +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) + + + +NoMethodError (undefined method `[]' for nil:NilClass): + +app/controllers/tasks_controller.rb:16:in `create' +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 19:40:02 -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 53ms (Views: 50.6ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 19:40:48 -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 29ms (Views: 26.6ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-20 19:41:04 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"vSiQ04IO63hCJKAAObzOAuvL1pWWx7Oipz52+1Owm7R4siEpisf8q7Ku9PuQ+M1j8yHexmp3qxmHI1KyKKuEOA==", "task"=>{"title"=>"Do Laundry", "description"=>"do it", "due_date"=>"9/29/2017"}, "commit"=>"Add Task"} +  (0.1ms) begin transaction + SQL (2.0ms) INSERT INTO "tasks" ("title", "description", "complete", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Do Laundry"], ["description", "do it"], ["complete", "f"], ["created_at", "2017-09-21 02:41:04.188910"], ["updated_at", "2017-09-21 02:41:04.188910"]] +  (11.5ms) commit transaction +Completed 500 Internal Server Error in 200ms (ActiveRecord: 13.7ms) + + + +NameError (undefined local variable or method `task' for # +Did you mean? @task): + +app/controllers/tasks_controller.rb:19:in `create' +Started POST "/tasks" for 127.0.0.1 at 2017-09-20 19:41:33 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"vSiQ04IO63hCJKAAObzOAuvL1pWWx7Oipz52+1Owm7R4siEpisf8q7Ku9PuQ+M1j8yHexmp3qxmHI1KyKKuEOA==", "task"=>{"title"=>"Do Laundry", "description"=>"do it", "due_date"=>"9/29/2017"}, "commit"=>"Add Task"} +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "tasks" ("title", "description", "complete", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Do Laundry"], ["description", "do it"], ["complete", "f"], ["created_at", "2017-09-21 02:41:33.664681"], ["updated_at", "2017-09-21 02:41:33.664681"]] +  (1.6ms) commit transaction +  (0.1ms) begin transaction +  (0.1ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 21ms (ActiveRecord: 3.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 19:41:33 -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.2ms) +Completed 200 OK in 43ms (Views: 39.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 19:41:35 -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 28ms (Views: 25.6ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-20 19:42:03 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"1dnf4ozGeZac8Jlc8OuynfJd63wYBeHIZSDqSjkK/YgQQ24YhA9uRWx6zadZr7H86rfjL+S1+XNFPc4DQhHiBA==", "task"=>{"title"=>"Laundry", "description"=>"do laundry", "due_date"=>"2017-09-29"}, "commit"=>"Add Task"} +  (0.2ms) begin transaction + SQL (0.7ms) INSERT INTO "tasks" ("title", "description", "due_date", "complete", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["title", "Laundry"], ["description", "do laundry"], ["due_date", "2017-09-29 00:00:00"], ["complete", "f"], ["created_at", "2017-09-21 02:42:03.444859"], ["updated_at", "2017-09-21 02:42:03.444859"]] +  (3.7ms) commit transaction +  (0.1ms) begin transaction +  (0.1ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 11ms (ActiveRecord: 4.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 19:42: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 (2.2ms) +Completed 200 OK in 26ms (Views: 22.6ms | ActiveRecord: 0.2ms) + + From 62e07fb9b4649f8403872a908eb15fbf63cb4984 Mon Sep 17 00:00:00 2001 From: Kimberley Zell Date: Wed, 20 Sep 2017 22:50:23 -0700 Subject: [PATCH 05/11] working on edit task function --- app/controllers/tasks_controller.rb | 15 + app/models/task.rb | 1 + app/views/tasks/_form.html.erb | 23 + app/views/tasks/edit.html.erb | 5 + app/views/tasks/index.html.erb | 3 +- app/views/tasks/new.html.erb | 16 +- app/views/tasks/show.html.erb | 2 + config/routes.rb | 2 + db/development.sqlite3 | Bin 28672 -> 28672 bytes log/development.log | 1236 +++++++++++++++++++++++++++ 10 files changed, 1298 insertions(+), 5 deletions(-) create mode 100644 app/views/tasks/_form.html.erb create mode 100644 app/views/tasks/edit.html.erb diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index 3af43419a..2dfb7d9e0 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -23,6 +23,21 @@ def create end end + def Edit + @task = Task.find(params[:id]) + + @task.update + if @task.update + redirect_to show_task_path + else + render 'edit' + end + # @task.title = params[:task][:title] + # @task.description = params[:task][:description] + # @task.due_date = params[:task][:due_date] + + end + def complete task = Task.find(params[:id]) task.complete! diff --git a/app/models/task.rb b/app/models/task.rb index ad1848594..ff3586487 100644 --- a/app/models/task.rb +++ b/app/models/task.rb @@ -4,4 +4,5 @@ def complete! self.save end + end diff --git a/app/views/tasks/_form.html.erb b/app/views/tasks/_form.html.erb new file mode 100644 index 000000000..caab46d63 --- /dev/null +++ b/app/views/tasks/_form.html.erb @@ -0,0 +1,23 @@ + +<%= form_with model: @task do |form| %> + +

    + <%= form.label :title %>
    + <%= form.text_field :title %> +

    + +

    + <%= form.label :description %>
    + <%= form.text_field :description %> +

    + +

    + <%= form.label :due_date %>
    + <%= form.text_field :due_date %> +

    + +

    + <%= form.submit %> +

    + +<% end %> diff --git a/app/views/tasks/edit.html.erb b/app/views/tasks/edit.html.erb new file mode 100644 index 000000000..c447d8991 --- /dev/null +++ b/app/views/tasks/edit.html.erb @@ -0,0 +1,5 @@ +

    Edit Task

    + +<%= render 'form' %> + +<%= link_to 'Back', tasks_path %> diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb index 09677b4a6..cfce09b64 100644 --- a/app/views/tasks/index.html.erb +++ b/app/views/tasks/index.html.erb @@ -15,7 +15,7 @@
  • <%=link_to task.title, show_task_path(task.id)%>

    - Mark Complete | Edit | Delete + Mark Complete <%=button_to "Edit", new_task_path, method: :get%> Delete

  • <%end%> @@ -24,6 +24,7 @@
    <%=button_to "Add New", new_task_path, method: :get%> +
    diff --git a/app/views/tasks/new.html.erb b/app/views/tasks/new.html.erb index 497ea4b85..9b3d03269 100644 --- a/app/views/tasks/new.html.erb +++ b/app/views/tasks/new.html.erb @@ -1,5 +1,13 @@ -
    - <%=form_for @task do |f|%> + + +

    New Task

    + +<%= render 'form' %> + +<%= link_to 'Back', tasks_path %> + + + + diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb index c4b50a2e0..3ff109cb5 100644 --- a/app/views/tasks/show.html.erb +++ b/app/views/tasks/show.html.erb @@ -4,3 +4,5 @@
  • Due Date: <%= @task.due_date%>
  • Completed: <%= @task.complete%>
+ + <%=button_to "Edit", edit_task_path, method: :get%> diff --git a/config/routes.rb b/config/routes.rb index 6efa02da0..c718075a7 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -4,6 +4,8 @@ get('/tasks', to: 'tasks#index', as: 'tasks') get('/tasks/new', to: 'tasks#new', as: 'new_task') post('/tasks', to: 'tasks#create') + get('/tasks/:id/edit', to: 'tasks#edit', as: 'edit_task') + patch('/tasks/:id/edit', to: 'tasks#update', as: 'update_task') get('/tasks/:id', to: 'tasks#show', as: 'show_task') patch('tasks/:id/complete', to: 'tasks#complete', as:'complete_task') # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html diff --git a/db/development.sqlite3 b/db/development.sqlite3 index a3aa186904c3d6bed9cc36bcc5df7794c0b46ac2..512814891c30f617a07701ff4b24065d1a1316a4 100644 GIT binary patch delta 114 zcmZp8z}WDBae_1>*F+g-My`zsOZ)}cc(*d}H}VVc9pWqD6Xe~xSx{ghuSgUd2ZN}j zF~6guUt&sPUS?`uN$O;sI0X$;D+5a_19Lq?GfNXABO?Ptb6o>VT_ZyU15}yKf^qKz G8QB2Pv>c=W delta 46 zcmZp8z}WDBae_1>=R_H2M$U~1OZ@p*`2-pG8~FwJ4)K-n32qh?_|LmpFz%foBP#$r C5e&}& diff --git a/log/development.log b/log/development.log index c26047b5e..12cf7c20d 100644 --- a/log/development.log +++ b/log/development.log @@ -1819,3 +1819,1239 @@ Processing by TasksController#index as HTML Completed 200 OK in 26ms (Views: 22.6ms | ActiveRecord: 0.2ms) +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:03:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (10.5ms) +Completed 200 OK in 69ms (Views: 61.5ms | ActiveRecord: 1.1ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 21:03:19 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (3.0ms) +Completed 200 OK in 30ms (Views: 27.2ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:24: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 (11.5ms) +Completed 200 OK in 61ms (Views: 53.4ms | ActiveRecord: 1.4ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-20 21:24:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["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 37ms (Views: 30.5ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 21:24:59 -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 36ms (Views: 33.8ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:34:42 -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 75ms (Views: 70.4ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-20 21:34:45 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 39ms (Views: 34.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1/edit" for 127.0.0.1 at 2017-09-20 21:34:46 -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 (1.3ms) +Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.0ms) + + + +SyntaxError (/Users/kzell/Documents/Ada/Week7/TaskList/app/views/tasks/edit.html.erb:3: syntax error, unexpected tIDENTIFIER, expecting ')' +end=(f.text_field :title value=:title);@output_buffer.safe_a + ^ +/Users/kzell/Documents/Ada/Week7/TaskList/app/views/tasks/edit.html.erb:5: syntax error, unexpected tIDENTIFIER, expecting ')' +.text_field :description value=:description);@output_buffer. + ^ +/Users/kzell/Documents/Ada/Week7/TaskList/app/views/tasks/edit.html.erb:7: syntax error, unexpected tIDENTIFIER, expecting ')' +=(f.text_field :due_date value=:due_date);@output_buffer.saf + ^): + +app/views/tasks/edit.html.erb:3: syntax error, unexpected tIDENTIFIER, expecting ')' +app/views/tasks/edit.html.erb:5: syntax error, unexpected tIDENTIFIER, expecting ')' +app/views/tasks/edit.html.erb:7: syntax error, unexpected tIDENTIFIER, expecting ')' +Started GET "/tasks/1/edit" for 127.0.0.1 at 2017-09-20 21:36:08 -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 (1.6ms) +Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.0ms) + + + +SyntaxError (/Users/kzell/Documents/Ada/Week7/TaskList/app/views/tasks/edit.html.erb:3: syntax error, unexpected tIDENTIFIER, expecting ')' +end=(f.text_field :title value=:title);@output_buffer.safe_a + ^ +/Users/kzell/Documents/Ada/Week7/TaskList/app/views/tasks/edit.html.erb:5: syntax error, unexpected tIDENTIFIER, expecting ')' +.text_field :description value=:description);@output_buffer. + ^ +/Users/kzell/Documents/Ada/Week7/TaskList/app/views/tasks/edit.html.erb:7: syntax error, unexpected tIDENTIFIER, expecting ')' +=(f.text_field :due_date value=:due_date);@output_buffer.saf + ^): + +app/views/tasks/edit.html.erb:3: syntax error, unexpected tIDENTIFIER, expecting ')' +app/views/tasks/edit.html.erb:5: syntax error, unexpected tIDENTIFIER, expecting ')' +app/views/tasks/edit.html.erb:7: syntax error, unexpected tIDENTIFIER, expecting ')' +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:36: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.1ms) +Completed 200 OK in 45ms (Views: 42.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-20 21:36:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 38ms (Views: 32.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1/edit" for 127.0.0.1 at 2017-09-20 21:36: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 (1.8ms) +Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.0ms) + + + +SyntaxError (/Users/kzell/Documents/Ada/Week7/TaskList/app/views/tasks/edit.html.erb:3: syntax error, unexpected tIDENTIFIER, expecting ')' +end=(f.text_field :title value=:title);@output_buffer.safe_a + ^ +/Users/kzell/Documents/Ada/Week7/TaskList/app/views/tasks/edit.html.erb:5: syntax error, unexpected tIDENTIFIER, expecting ')' +.text_field :description value=:description);@output_buffer. + ^ +/Users/kzell/Documents/Ada/Week7/TaskList/app/views/tasks/edit.html.erb:7: syntax error, unexpected tIDENTIFIER, expecting ')' +=(f.text_field :due_date value=:due_date);@output_buffer.saf + ^): + +app/views/tasks/edit.html.erb:3: syntax error, unexpected tIDENTIFIER, expecting ')' +app/views/tasks/edit.html.erb:5: syntax error, unexpected tIDENTIFIER, expecting ')' +app/views/tasks/edit.html.erb:7: syntax error, unexpected tIDENTIFIER, expecting ')' +Started GET "/" for 127.0.0.1 at 2017-09-20 21:36:57 -0700 +Processing by Rails::WelcomeController#index as HTML + Rendering /Users/kzell/.rvm/gems/ruby-2.4.0/gems/railties-5.1.4/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/kzell/.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 13ms (Views: 7.9ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:37:02 -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.0ms) +Completed 200 OK in 33ms (Views: 30.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-20 21:37:04 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["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 34ms (Views: 29.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1/edit" for 127.0.0.1 at 2017-09-20 21:37:05 -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.9ms) +Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms) + + + +SyntaxError (/Users/kzell/Documents/Ada/Week7/TaskList/app/views/tasks/edit.html.erb:3: syntax error, unexpected tIDENTIFIER, expecting ')' +end=(f.text_field :title value=:title);@output_buffer.safe_a + ^ +/Users/kzell/Documents/Ada/Week7/TaskList/app/views/tasks/edit.html.erb:5: syntax error, unexpected tIDENTIFIER, expecting ')' +.text_field :description value=:description);@output_buffer. + ^ +/Users/kzell/Documents/Ada/Week7/TaskList/app/views/tasks/edit.html.erb:7: syntax error, unexpected tIDENTIFIER, expecting ')' +=(f.text_field :due_date value=:due_date);@output_buffer.saf + ^): + +app/views/tasks/edit.html.erb:3: syntax error, unexpected tIDENTIFIER, expecting ')' +app/views/tasks/edit.html.erb:5: syntax error, unexpected tIDENTIFIER, expecting ')' +app/views/tasks/edit.html.erb:7: syntax error, unexpected tIDENTIFIER, expecting ')' +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:37:38 -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.0ms) +Completed 200 OK in 26ms (Views: 22.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-20 21:37:40 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 38ms (Views: 32.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1/edit" for 127.0.0.1 at 2017-09-20 21:37:41 -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 (2.6ms) +Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.0ms) + + + +ActionView::Template::Error (First argument in form cannot contain nil or be empty): + 1: + 2: + 3: <%=form_for @task do |f|%> + 4: <%=f.label :title%> + 5: <%=f.text_field :title%> + 6: <%=f.label :description%> + +app/views/tasks/edit.html.erb:3:in `_app_views_tasks_edit_html_erb___1252018184157116630_70347891511340' +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:39:00 -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 47ms (Views: 44.0ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-20 21:39:02 -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 38ms (Views: 33.2ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/2" for 127.0.0.1 at 2017-09-20 21:39:08 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.6ms) +Completed 200 OK in 45ms (Views: 36.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2/edit" for 127.0.0.1 at 2017-09-20 21:39:09 -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 (3.0ms) +Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.0ms) + + + +ActionView::Template::Error (First argument in form cannot contain nil or be empty): + 1: + 2: + 3: <%=form_for @task do |f|%> + 4: <%=f.label :title%> + 5: <%=f.text_field :title%> + 6: <%=f.label :description%> + +app/views/tasks/edit.html.erb:3:in `_app_views_tasks_edit_html_erb___1252018184157116630_70347903532840' +Started GET "/tasks/2/edit" for 127.0.0.1 at 2017-09-20 21:51:36 -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 (3.9ms) +Completed 500 Internal Server Error in 14ms + + + +ActionView::Template::Error (First argument in form cannot contain nil or be empty): + 1: + 2: + 3: <%=form_for @task do |f|%> + 4: <%=f.label :title%> + 5: <%=f.text_field :title%> + 6: <%=f.label :description%> + +app/views/tasks/edit.html.erb:3:in `_app_views_tasks_edit_html_erb___1252018184157116630_70347934846200' +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:51:44 -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 (17.5ms) +Completed 200 OK in 78ms (Views: 63.2ms | ActiveRecord: 2.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:51:47 -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.2ms) +Completed 200 OK in 28ms (Views: 25.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-20 21:51:49 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 36ms (Views: 27.7ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/1/edit" for 127.0.0.1 at 2017-09-20 21:51:50 -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 (3.2ms) +Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.0ms) + + + +ActionView::Template::Error (First argument in form cannot contain nil or be empty): + 1: + 2: + 3: <%=form_for @task do |f|%> + 4: <%=f.label :title%> + 5: <%=f.text_field :title%> + 6: <%=f.label :description%> + +app/views/tasks/edit.html.erb:3:in `_app_views_tasks_edit_html_erb___1252018184157116630_70347928039760' +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:59:27 -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 52ms (Views: 44.5ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:59:29 -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 (9.7ms) +Completed 200 OK in 36ms (Views: 33.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-20 21:59:30 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 43ms (Views: 33.9ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/1/edit" for 127.0.0.1 at 2017-09-20 21:59:31 -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 (3.0ms) +Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.0ms) + + + +ActionView::Template::Error (First argument in form cannot contain nil or be empty): + 1: + 2: + 3: <%=form_for @task do |f|%> + 4: <%=f.label :title%> + 5: <%=f.text_field :title%> + 6: <%=f.label :description%> + +app/views/tasks/edit.html.erb:3:in `_app_views_tasks_edit_html_erb___1252018184157116630_70347903330440' +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:59: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.6ms) +Completed 200 OK in 42ms (Views: 37.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:59: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.4ms) +Completed 200 OK in 28ms (Views: 25.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-20 21:59: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.1ms) +Completed 200 OK in 25ms (Views: 22.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-20 21:59:57 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 37ms (Views: 28.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1/edit" for 127.0.0.1 at 2017-09-20 21:59:58 -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 (5.4ms) +Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.0ms) + + + +ActionView::Template::Error (First argument in form cannot contain nil or be empty): + 1: diff --git a/app/views/tasks/edit.html.erb b/app/views/tasks/edit.html.erb index c447d8991..d78d26693 100644 --- a/app/views/tasks/edit.html.erb +++ b/app/views/tasks/edit.html.erb @@ -1,5 +1,19 @@ -

Edit Task

- -<%= render 'form' %> + + <%= link_to 'Back', tasks_path %> + + +

Edit Task

+
+ <%=form_for @task do |f|%> + <%=f.label :title%> + <%=f.text_field :title%> + <%=f.label :description%> + <%=f.text_field :description%> + <%=f.label :due_date%> + <%=f.text_field :due_date%> + <%=f.submit "Submit Edits"%> + <%end%> +
diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb index cfce09b64..bf610d01d 100644 --- a/app/views/tasks/index.html.erb +++ b/app/views/tasks/index.html.erb @@ -13,9 +13,9 @@
    <%@tasks.each do |task|%>
  1. -

    <%=link_to task.title, show_task_path(task.id)%>

    +

    <%=link_to task.title, task_path(task.id)%>

    - Mark Complete <%=button_to "Edit", new_task_path, method: :get%> Delete +

  2. <%end%> diff --git a/app/views/tasks/new.html.erb b/app/views/tasks/new.html.erb index 9b3d03269..cbc298b64 100644 --- a/app/views/tasks/new.html.erb +++ b/app/views/tasks/new.html.erb @@ -1,13 +1,14 @@ - + - - - + <%end%> + diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb index ea90b8311..1fd34c3be 100644 --- a/app/views/tasks/show.html.erb +++ b/app/views/tasks/show.html.erb @@ -6,3 +6,5 @@ <%=button_to "Edit", edit_task_path(@task.id), method: :get%> + <%=button_to "Delete", delete_task_path(@task.id), method: :patch%> + diff --git a/config/routes.rb b/config/routes.rb index c718075a7..3688ea91e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -5,9 +5,10 @@ get('/tasks/new', to: 'tasks#new', as: 'new_task') post('/tasks', to: 'tasks#create') get('/tasks/:id/edit', to: 'tasks#edit', as: 'edit_task') - patch('/tasks/:id/edit', to: 'tasks#update', as: 'update_task') - get('/tasks/:id', to: 'tasks#show', as: 'show_task') + patch('/tasks/:id', to: 'tasks#update', as: 'update_task') + get('/tasks/:id', to: 'tasks#show', as: 'task') patch('tasks/:id/complete', to: 'tasks#complete', as:'complete_task') + patch('tasks/:id/delete', to: 'tasks#delete', as: 'delete_task') # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html diff --git a/db/development.sqlite3 b/db/development.sqlite3 index 512814891c30f617a07701ff4b24065d1a1316a4..ef752a170093450ee06cf0b6625f05aa434704a1 100644 GIT binary patch delta 274 zcmZp8z}WDBae_3X@I)DBM&XSK3;jj;1R0oly%_ifc(?L;!Qf^=fu%fhjXaDT45GEh z{Em*1`RR$F1u2OosVNF28JR^XRtl5*6H`tqcsTj1BZm%?!*e%`(|J7&MhZ zdVCYJQxy^w@>0tc^7B%YauPEX^b|nUWSuy9O+!;FQwu92Q#}(CLkmk|BLhQoT?0#9 zkb$T&lefmku<$oB{GTiu7Y}00nOqU4r*F+g-My`zs3;l%|7#P@iw=(cI@(b`C;w#}3"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["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 34ms (Views: 27.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1/edit" for 127.0.0.1 at 2017-09-21 08:49:43 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (124.0ms) + Rendered tasks/edit.html.erb within layouts/application (126.3ms) +Completed 500 Internal Server Error in 137ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined method `task_path' for #<#:0x007ff64ed3b660> +Did you mean? tasks_path): + 1: + 2: <%= form_with model: @task do |form| %> + 3: + 4:

    + 5: <%= form.label :title %>
    + +app/views/tasks/_form.html.erb:2:in `_app_views_tasks__form_html_erb___2473518982194059913_70347930540220' +app/views/tasks/edit.html.erb:3:in `_app_views_tasks_edit_html_erb___1252018184157116630_70347930599740' +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 08:52: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 (13.7ms) +Completed 200 OK in 59ms (Views: 45.0ms | ActiveRecord: 1.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 08:52: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.5ms) +Completed 200 OK in 26ms (Views: 22.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 08:54: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.4ms) +Completed 200 OK in 27ms (Views: 22.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-21 08:54:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 38ms (Views: 30.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1/edit" for 127.0.0.1 at 2017-09-21 08:54:55 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (138.7ms) + Rendered tasks/edit.html.erb within layouts/application (141.8ms) +Completed 500 Internal Server Error in 151ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined method `task_path' for #<#:0x007ff64ebef180> +Did you mean? tasks_path): + 1: + 2: <%= form_with model: @task do |form| %> + 3: + 4:

    + 5: <%= form.label :title %>
    + +app/views/tasks/_form.html.erb:2:in `_app_views_tasks__form_html_erb___2473518982194059913_70347929859220' +app/views/tasks/edit.html.erb:3:in `_app_views_tasks_edit_html_erb___1252018184157116630_70347929910720' +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 08:58: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.0ms) +Completed 200 OK in 42ms (Views: 37.7ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 08:58: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 (2.2ms) +Completed 200 OK in 29ms (Views: 26.6ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-21 08:58:09 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (3.0ms) + Rendered tasks/new.html.erb within layouts/application (7.7ms) +Completed 200 OK in 32ms (Views: 29.4ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-21 08:58:25 -0700 +Processing by TasksController#create as JS + Parameters: {"utf8"=>"✓", "authenticity_token"=>"e6C84i+RV6IR4REU2az3pROUAN34e6eIvjryPA7Wycy+Og0YJ1hAceFrRe9w6PTEC34IjgTLvzOeJ9Z1dc3WQA==", "task"=>{"title"=>"Make a new one", "description"=>"blah . blah", "due_date"=>"2017-09-29"}, "commit"=>"Create Task"} +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "tasks" ("title", "description", "due_date", "complete", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["title", "Make a new one"], ["description", "blah . blah"], ["due_date", "2017-09-29 00:00:00"], ["complete", "f"], ["created_at", "2017-09-21 15:58:25.441893"], ["updated_at", "2017-09-21 15:58:25.441893"]] +  (6.3ms) commit transaction +  (0.2ms) begin transaction +  (0.1ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 200 OK in 14ms (ActiveRecord: 7.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 08:58: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 (3.6ms) +Completed 200 OK in 41ms (Views: 37.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-21 09:03:36 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 43ms (Views: 34.6ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1/edit" for 127.0.0.1 at 2017-09-21 09:03:39 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (121.1ms) + Rendered tasks/edit.html.erb within layouts/application (123.5ms) +Completed 500 Internal Server Error in 137ms (ActiveRecord: 0.3ms) + + + +ActionView::Template::Error (undefined method `task_path' for #<#:0x007ff64ea29418> +Did you mean? tasks_path): + 1: + 2: <%= form_with model: @task do |form| %> + 3: + 4:

    + 5: <%= form.label :title %>
    + +app/views/tasks/_form.html.erb:2:in `_app_views_tasks__form_html_erb___2473518982194059913_70347928946140' +app/views/tasks/edit.html.erb:3:in `_app_views_tasks_edit_html_erb___1252018184157116630_70347928981260' +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 09:13: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 (17.0ms) +Completed 200 OK in 55ms (Views: 46.5ms | ActiveRecord: 1.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 09:13:10 -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 32ms (Views: 28.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-21 09:13:11 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 45ms (Views: 37.0ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/1/edit" for 127.0.0.1 at 2017-09-21 09:13:12 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (133.4ms) + Rendered tasks/edit.html.erb within layouts/application (137.5ms) +Completed 500 Internal Server Error in 147ms (ActiveRecord: 0.1ms) + + + +ActionView::Template::Error (undefined method `task_path' for #<#:0x007ff64a318df8> +Did you mean? tasks_path): + 1: + 2: <%= form_with model: @task do |form| %> + 3: + 4:

    + 5: <%= form.label :title %>
    + +app/views/tasks/_form.html.erb:2:in `_app_views_tasks__form_html_erb___2473518982194059913_70347934500900' +app/views/tasks/edit.html.erb:3:in `_app_views_tasks_edit_html_erb___1252018184157116630_70347891723480' +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 09:16: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 (14.6ms) +Completed 200 OK in 49ms (Views: 38.4ms | ActiveRecord: 1.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 09:16: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.7ms) +Completed 200 OK in 32ms (Views: 29.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-21 09:16:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 39ms (Views: 29.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1/edit" for 127.0.0.1 at 2017-09-21 09:16:40 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (127.7ms) + Rendered tasks/edit.html.erb within layouts/application (131.3ms) +Completed 500 Internal Server Error in 141ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined method `task_path' for #<#:0x007ff64f402408> +Did you mean? tasks_path): + 1: + 2: <%= form_with model: @task do |form| %> + 3: + 4:

    + 5: <%= form.label :title %>
    + +app/views/tasks/_form.html.erb:2:in `_app_views_tasks__form_html_erb___2473518982194059913_70347898134400' +app/views/tasks/edit.html.erb:3:in `_app_views_tasks_edit_html_erb___1252018184157116630_70347934144360' +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 09:18: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 (4.7ms) +Completed 200 OK in 41ms (Views: 37.3ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 09:18: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.0ms) +Completed 200 OK in 29ms (Views: 26.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-21 09:18:03 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (3.1ms) + Rendered tasks/new.html.erb within layouts/application (9.0ms) +Completed 200 OK in 32ms (Views: 29.8ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 09:18: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.9ms) +Completed 200 OK in 40ms (Views: 31.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-21 09:18:09 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 36ms (Views: 29.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1/edit" for 127.0.0.1 at 2017-09-21 09:18:10 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (130.7ms) + Rendered tasks/edit.html.erb within layouts/application (133.9ms) +Completed 500 Internal Server Error in 145ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined method `task_path' for #<#:0x007ff64f12e790> +Did you mean? tasks_path): + 1: diff --git a/db/development.sqlite3 b/db/development.sqlite3 index ef752a170093450ee06cf0b6625f05aa434704a1..c0f60d9235d81dc1857aae813ebacef32b5003ee 100644 GIT binary patch delta 159 zcmZp8z}WDBae_3X*hCp;MzM_v3;lWd8yT4S)-v!5@Gs$8yO}S5jgN88WYM@8(uo`# z45I4B{Em*1`RR!+`3jXlN+BgNGpBNLZmfcag_WtHm4T(6iK&ITg{hH&p}DSsrLK{o zf+4ERWP$h+M&-$^@$!?m#;P-xOuied%5P|CWn^S!WT9tbY-Vm`zA529KO+YKpXDnX delta 135 zcmZp8z}WDBae_3X@I)DBM&XSK3;lWd1R0oly%_ifc(?L;ZRQJL<750kSu}2jG{2*x zPhx3aN>OD>zCsR!rI3=Co10lOIX6~*vUi*mzoEI6k&%_LrJkjQfw8&8WP$h+#`?*v j@$!@3#drxBS}Fi#O)RYpO!SNl4Gjz}HYNP$XJiKeo0lh= diff --git a/log/development.log b/log/development.log index c28830aef..f27ec592d 100644 --- a/log/development.log +++ b/log/development.log @@ -4596,3 +4596,129 @@ Processing by TasksController#index as HTML Completed 200 OK in 35ms (Views: 31.9ms | ActiveRecord: 0.2ms) +Started GET "/tasks/7" for 127.0.0.1 at 2017-09-21 11:50:25 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.4ms) +Completed 200 OK in 53ms (Views: 45.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/7" for 127.0.0.1 at 2017-09-21 11:50:32 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.2ms) +Completed 200 OK in 47ms (Views: 38.4ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/7/delete" for 127.0.0.1 at 2017-09-21 11:50:33 -0700 +Processing by TasksController#delete as HTML + Parameters: {"authenticity_token"=>"DgyspjGKU/sKSe4lwcoDC3jH2F0bhnpep+aiXHbGQBD99uSBnbzuTD2QPj5fIGN9Cj64xsHImPyJ9GjoR4Yq5g==", "id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] + SQL (1.9ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 7]] +Redirected to http://localhost:3000/tasks +Completed 302 Found in 5ms (ActiveRecord: 2.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 11:50:33 -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.3ms) +Completed 200 OK in 25ms (Views: 21.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/2" for 127.0.0.1 at 2017-09-21 11:50:44 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 40ms (Views: 33.5ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/2" for 127.0.0.1 at 2017-09-21 11:50:49 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.6ms) +Completed 200 OK in 46ms (Views: 39.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-21 11:50:55 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.0ms) + Rendered tasks/new.html.erb within layouts/application (6.5ms) +Completed 200 OK in 33ms (Views: 30.8ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-21 11:51:09 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"xW8ON30sbBKYTCe6vkq8zxjU5E8HD/v+M4uruhNyYGIA9b/NdeV7wWjGc0EXDr+uAD7sHPu/40UTlo/zaGl/7g==", "task"=>{"title"=>"Yoga", "description"=>"Do yoga daily", "due_date"=>"2017-09-29"}, "commit"=>"Add Task"} +  (0.1ms) begin transaction + SQL (0.8ms) INSERT INTO "tasks" ("title", "description", "due_date", "complete", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["title", "Yoga"], ["description", "Do yoga daily"], ["due_date", "2017-09-29 00:00:00"], ["complete", "f"], ["created_at", "2017-09-21 18:51:09.458785"], ["updated_at", "2017-09-21 18:51:09.458785"]] +  (2.0ms) commit transaction +  (0.1ms) begin transaction +  (0.1ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 12ms (ActiveRecord: 3.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 11:51: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.0ms) +Completed 200 OK in 24ms (Views: 21.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 12:22:23 -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 29ms (Views: 26.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/6" for 127.0.0.1 at 2017-09-21 12:22:25 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.6ms) +Completed 200 OK in 39ms (Views: 33.7ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/6/complete" for 127.0.0.1 at 2017-09-21 12:22:28 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"4h//LWg1+1ALbNGMWXeixJv0aNpJfUycAKRsILMPmD+9YPPnwGA6kZjrDdBAtNCDIKGQYkK2A5anXcLb8XrWsQ==", "id"=>"6"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.5ms) UPDATE "tasks" SET "complete" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["complete", "t"], ["updated_at", "2017-09-21 19:22:28.436727"], ["id", 6]] +  (1.5ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 6ms (ActiveRecord: 2.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 12:22:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 26ms (Views: 23.5ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/6" for 127.0.0.1 at 2017-09-21 12:22:30 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.9ms) +Completed 200 OK in 50ms (Views: 45.6ms | ActiveRecord: 0.3ms) + + From ab7ec63f7dffc9282f126270a2f40a03ca7cb561 Mon Sep 17 00:00:00 2001 From: Kimberley Zell Date: Thu, 21 Sep 2017 13:00:11 -0700 Subject: [PATCH 09/11] Added page to ask if user is sure want to delete something before deleting. Added Button to main page to mark task complete. Need to add a completed date field to database next. --- app/controllers/tasks_controller.rb | 13 +- app/views/tasks/confirm_delete.html.erb | 7 + app/views/tasks/index.html.erb | 2 +- app/views/tasks/show.html.erb | 6 +- config/routes.rb | 1 + db/development.sqlite3 | Bin 28672 -> 28672 bytes log/development.log | 734 ++++++++++++++++++++++++ 7 files changed, 752 insertions(+), 11 deletions(-) create mode 100644 app/views/tasks/confirm_delete.html.erb diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index 4bc4e2dd1..ee3b591ba 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -38,15 +38,6 @@ def update redirect_to task_path(@task) - #book_updates = (params[:task] - #[:task][:title], params[:task][:description], params[:task][:due_date]) - # - # @task.update_attributes(book_updates) - # if @task.update(title: params[:task][:title], description: params[:task][:description], due_date: params[:task][:due_date]) - # redirect_to show_task_path(@task.id) - # else - # render :edit - # end end @@ -56,6 +47,10 @@ def complete redirect_to tasks_path end + def confirm_delete + @task = Task.find(params[:id]) + end + def delete @task = Task.find(params[:id]) @task.delete diff --git a/app/views/tasks/confirm_delete.html.erb b/app/views/tasks/confirm_delete.html.erb new file mode 100644 index 000000000..ac1fb1cbd --- /dev/null +++ b/app/views/tasks/confirm_delete.html.erb @@ -0,0 +1,7 @@ + +

    <%=@task.title%>

    + +
    Are you sure you want to delete this task?
    + +<%=button_to "Confirm Delete", delete_task_path(@task.id), method: :patch%> +<%=button_to "Cancel", tasks_path, method: :get%> diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb index bf610d01d..7f488f710 100644 --- a/app/views/tasks/index.html.erb +++ b/app/views/tasks/index.html.erb @@ -15,7 +15,7 @@
  3. <%=link_to task.title, task_path(task.id)%>

    - + <%=button_to "Complete", complete_task_path(task.id), method: :patch%>

  4. <%end%> diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb index 6618ba858..fd635c055 100644 --- a/app/views/tasks/show.html.erb +++ b/app/views/tasks/show.html.erb @@ -1,3 +1,6 @@ +<%= link_to 'Back', tasks_path %> + +

    <%= @task.title%>

    <%= @task.description%>

      @@ -7,5 +10,6 @@ <%=button_to "Complete", complete_task_path, method: :patch %> <%=button_to "Edit", edit_task_path(@task.id), method: :get%> - <%=button_to "Delete", delete_task_path(@task.id), method: :patch%> + + <%=button_to "Delete", confirm_delete_task_path, method: :get%> diff --git a/config/routes.rb b/config/routes.rb index 3688ea91e..9506fa547 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -8,6 +8,7 @@ patch('/tasks/:id', to: 'tasks#update', as: 'update_task') get('/tasks/:id', to: 'tasks#show', as: 'task') patch('tasks/:id/complete', to: 'tasks#complete', as:'complete_task') + get('/tasks/:id/confirm_delete', to: 'tasks#confirm_delete', as: 'confirm_delete_task') patch('tasks/:id/delete', to: 'tasks#delete', as: 'delete_task') # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html diff --git a/db/development.sqlite3 b/db/development.sqlite3 index c0f60d9235d81dc1857aae813ebacef32b5003ee..83f722d4f4361692e32bfcdc866d43703d3afaa7 100644 GIT binary patch delta 134 zcmZp8z}WDBae_3X+(a2?M!Ag%tNdB`*7DEX%ok9`Zz3TYZ_HoH$-$uLY|QWI=#-yc zTAY^34dg4s`3fP4#o2E8MG7UU#U+_}>63TF%WE21TA7+!8Jp`F8XB9Kni&}wn(G=^ c>KYj;fMhJJjLh|nj7>}pjW#9x=V#;w02ZMnhyVZp delta 96 zcmZp8z}WDBae_3X*hCp;MzM_vtNdB`m+-CK%ok9`ub?a%Z_MxL7@41*7*Ld$T#}ib zs!$2!C?u9B"6"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.9ms) +Completed 200 OK in 36ms (Views: 28.6ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/6/delete" for 127.0.0.1 at 2017-09-21 12:38:57 -0700 +Processing by TasksController#delete as HTML + Parameters: {"authenticity_token"=>"PzbXCqq+/47HF2Mw2Bb10joiHeXgw9S9jNYmBYzE+PmW9kudptba0blWnMsRABPjvoSwWrEaJKksKV8XSw6xsA==", "id"=>"6"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] + SQL (2.1ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 6]] +Redirected to http://localhost:3000/tasks +Completed 302 Found in 5ms (ActiveRecord: 2.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 12:38:57 -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 27ms (Views: 21.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-21 12:39:10 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.3ms) + Rendered tasks/new.html.erb within layouts/application (6.8ms) +Completed 200 OK in 30ms (Views: 27.4ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-21 12:39:25 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"057MLDNTNPoceSRtU7MlhtjDhDYSeXOHa1tGjQna4XcWBH3WO5ojKezzcJb69ybnwCmMZe7JazxLRmLEcsH++w==", "task"=>{"title"=>"Bogus Task", "description"=>"bogus for deletion practice", "due_date"=>"2017-09-29"}, "commit"=>"Add Task"} +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "tasks" ("title", "description", "due_date", "complete", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["title", "Bogus Task"], ["description", "bogus for deletion practice"], ["due_date", "2017-09-29 00:00:00"], ["complete", "f"], ["created_at", "2017-09-21 19:39:25.039916"], ["updated_at", "2017-09-21 19:39:25.039916"]] +  (1.8ms) commit transaction +  (0.2ms) begin transaction +  (0.1ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 2.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 12:39: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.2ms) +Completed 200 OK in 22ms (Views: 19.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 12:42:20 -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 24ms (Views: 21.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/9" for 127.0.0.1 at 2017-09-21 12:42:21 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.2ms) +Completed 200 OK in 39ms (Views: 34.5ms | ActiveRecord: 0.3ms) + + +Started POST "/tasks/9" for 127.0.0.1 at 2017-09-21 12:42:23 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks/9"): + +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 POST "/tasks/9" for 127.0.0.1 at 2017-09-21 12:42:41 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks/9"): + +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 POST "/tasks/9" for 127.0.0.1 at 2017-09-21 12:42:44 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks/9"): + +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-21 12:42:49 -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 (3.3ms) +Completed 200 OK in 42ms (Views: 38.6ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/9" for 127.0.0.1 at 2017-09-21 12:42:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.8ms) +Completed 200 OK in 44ms (Views: 37.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/9" for 127.0.0.1 at 2017-09-21 12:42:52 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.0ms) +Completed 200 OK in 30ms (Views: 26.7ms | ActiveRecord: 0.1ms) + + +Started POST "/tasks/9?method=get" for 127.0.0.1 at 2017-09-21 12:42:53 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks/9"): + +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-21 12:46: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 (14.7ms) +Completed 200 OK in 72ms (Views: 60.2ms | ActiveRecord: 2.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 12:46: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 (5.1ms) +Completed 200 OK in 37ms (Views: 33.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/9" for 127.0.0.1 at 2017-09-21 12:46:59 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.9ms) +Completed 200 OK in 39ms (Views: 31.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/9" for 127.0.0.1 at 2017-09-21 12:47:00 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 35ms (Views: 31.2ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/9" for 127.0.0.1 at 2017-09-21 12:47:03 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.0ms) +Completed 200 OK in 29ms (Views: 25.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/9" for 127.0.0.1 at 2017-09-21 12:47:04 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 30ms (Views: 25.0ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 12:47:59 -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 (14.6ms) +Completed 200 OK in 68ms (Views: 57.2ms | ActiveRecord: 1.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 12:48: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.6ms) +Completed 200 OK in 29ms (Views: 26.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/9" for 127.0.0.1 at 2017-09-21 12:48:02 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.4ms) +Completed 200 OK in 38ms (Views: 31.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/9/confirm_delete" for 127.0.0.1 at 2017-09-21 12:48:03 -0700 +Processing by TasksController#confirm_delete as HTML + Parameters: {"id"=>"9"} +Completed 500 Internal Server Error in 155ms (ActiveRecord: 0.0ms) + + + +NameError (undefined local variable or method `id' for #): + +app/controllers/tasks_controller.rb:51:in `confirm_delete' +Started GET "/tasks/9/confirm_delete" for 127.0.0.1 at 2017-09-21 12:48:33 -0700 +Processing by TasksController#confirm_delete as HTML + Parameters: {"id"=>"9"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/confirm_delete.html.erb within layouts/application + Rendered tasks/confirm_delete.html.erb within layouts/application (1.3ms) +Completed 200 OK in 55ms (Views: 37.9ms | ActiveRecord: 1.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-21 12:48:35 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"6mfVcUqo70aKoNObGdrnmpW8DTQHdx1SmXDhrlM4QXUv/WSLQmH4lXoqh2CwnuT7jVYFZ/vHBem5bcXnKCNe+Q=="} +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + + + +NoMethodError (undefined method `[]' for nil:NilClass): + +app/controllers/tasks_controller.rb:16:in `create' +Started POST "/tasks" for 127.0.0.1 at 2017-09-21 12:49:22 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"6mfVcUqo70aKoNObGdrnmpW8DTQHdx1SmXDhrlM4QXUv/WSLQmH4lXoqh2CwnuT7jVYFZ/vHBem5bcXnKCNe+Q=="} +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) + + + +NoMethodError (undefined method `[]' for nil:NilClass): + +app/controllers/tasks_controller.rb:16:in `create' +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 12:49: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.8ms) +Completed 200 OK in 44ms (Views: 37.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 12:49: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.6ms) +Completed 200 OK in 35ms (Views: 30.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/9" for 127.0.0.1 at 2017-09-21 12:49:37 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.9ms) +Completed 200 OK in 39ms (Views: 33.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/9/confirm_delete" for 127.0.0.1 at 2017-09-21 12:49:39 -0700 +Processing by TasksController#confirm_delete as HTML + Parameters: {"id"=>"9"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/confirm_delete.html.erb within layouts/application + Rendered tasks/confirm_delete.html.erb within layouts/application (2.0ms) +Completed 200 OK in 28ms (Views: 25.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/9/confirm_delete" for 127.0.0.1 at 2017-09-21 12:51:29 -0700 +Processing by TasksController#confirm_delete as HTML + Parameters: {"id"=>"9"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/confirm_delete.html.erb within layouts/application + Rendered tasks/confirm_delete.html.erb within layouts/application (1.1ms) +Completed 200 OK in 24ms (Views: 20.7ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/9/confirm_delete" for 127.0.0.1 at 2017-09-21 12:51:59 -0700 +Processing by TasksController#confirm_delete as HTML + Parameters: {"id"=>"9"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/confirm_delete.html.erb within layouts/application + Rendered tasks/confirm_delete.html.erb within layouts/application (1.8ms) +Completed 200 OK in 28ms (Views: 25.0ms | ActiveRecord: 0.1ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-21 12:52:02 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"hUgtq8ce+BCL0PnVCXkHUNAuYuLxCJSjvEQg+HpEWoJA0pxRz9fvw3tarS6gPQQxyMRqsQ24jBicWQSxAV9FDg=="} +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) + + + +NoMethodError (undefined method `[]' for nil:NilClass): + +app/controllers/tasks_controller.rb:16:in `create' +Started GET "/tasks/9/confirm_delete" for 127.0.0.1 at 2017-09-21 12:52:49 -0700 +Processing by TasksController#confirm_delete as HTML + Parameters: {"id"=>"9"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/confirm_delete.html.erb within layouts/application + Rendered tasks/confirm_delete.html.erb within layouts/application (1.3ms) +Completed 200 OK in 45ms (Views: 41.1ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/9/delete" for 127.0.0.1 at 2017-09-21 12:52:50 -0700 +Processing by TasksController#delete as HTML + Parameters: {"authenticity_token"=>"3EHx0k2ZTWefoURqTo1e4HlwbQxAFtgxL9iDXQFGImQZ20AoRVBatG8rEJHnyV2BYZplX7ymwIoPxacUel096A==", "id"=>"9"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + SQL (2.2ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 9]] +Redirected to http://localhost:3000/tasks +Completed 302 Found in 6ms (ActiveRecord: 2.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 12:52:50 -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.1ms) +Completed 200 OK in 27ms (Views: 23.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-21 12:52:53 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (4.2ms) + Rendered tasks/new.html.erb within layouts/application (10.6ms) +Completed 200 OK in 35ms (Views: 32.7ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-21 12:53:01 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"6reQxwqTodftdvVmwp2PBkCgPofOfURxDs+/m6xHv2cvLSE9Alq2BB38oZ1r2YxnWEo21DLNXMou0pvS11yg6w==", "task"=>{"title"=>"Bogus Task", "description"=>"For Deletion", "due_date"=>"2017"}, "commit"=>"Add Task"} +  (0.1ms) begin transaction + SQL (0.9ms) INSERT INTO "tasks" ("title", "description", "complete", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Bogus Task"], ["description", "For Deletion"], ["complete", "f"], ["created_at", "2017-09-21 19:53:01.626901"], ["updated_at", "2017-09-21 19:53:01.626901"]] +  (2.8ms) commit transaction +  (0.2ms) begin transaction +  (0.1ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 12ms (ActiveRecord: 4.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 12:53:01 -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.3ms) +Completed 200 OK in 25ms (Views: 20.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/10" for 127.0.0.1 at 2017-09-21 12:53:04 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"10"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.1ms) +Completed 200 OK in 40ms (Views: 32.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/10/confirm_delete" for 127.0.0.1 at 2017-09-21 12:53:10 -0700 +Processing by TasksController#confirm_delete as HTML + Parameters: {"id"=>"10"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] + Rendering tasks/confirm_delete.html.erb within layouts/application + Rendered tasks/confirm_delete.html.erb within layouts/application (1.1ms) +Completed 200 OK in 28ms (Views: 24.0ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-21 12:53:11 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"1EQH30iKhO9Y+/V93a4FR3cDVnipWAaeLwU4mvjwPzAR3rYlQEOTPKhxoYZ06gYmb+leK1XoHiUPGBzTg+sgvA=="} +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) + + + +NoMethodError (undefined method `[]' for nil:NilClass): + +app/controllers/tasks_controller.rb:16:in `create' +Started POST "/tasks" for 127.0.0.1 at 2017-09-21 12:54:48 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"1EQH30iKhO9Y+/V93a4FR3cDVnipWAaeLwU4mvjwPzAR3rYlQEOTPKhxoYZ06gYmb+leK1XoHiUPGBzTg+sgvA=="} +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + + + +NoMethodError (undefined method `[]' for nil:NilClass): + +app/controllers/tasks_controller.rb:16:in `create' +Started GET "/tasks/10/confirm_delete" for 127.0.0.1 at 2017-09-21 12:54:53 -0700 +Processing by TasksController#confirm_delete as HTML + Parameters: {"id"=>"10"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] + Rendering tasks/confirm_delete.html.erb within layouts/application + Rendered tasks/confirm_delete.html.erb within layouts/application (2.1ms) +Completed 200 OK in 28ms (Views: 25.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 12: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.4ms) +Completed 200 OK in 28ms (Views: 25.6ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/10" for 127.0.0.1 at 2017-09-21 12:54:57 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"10"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.4ms) +Completed 200 OK in 48ms (Views: 42.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/10/edit" for 127.0.0.1 at 2017-09-21 12:55:01 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"10"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (3.5ms) + Rendered tasks/edit.html.erb within layouts/application (9.7ms) +Completed 200 OK in 34ms (Views: 30.8ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/10" for 127.0.0.1 at 2017-09-21 12:55:08 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ZeoV/V9Upy97limGE/yGpaCHdin+LOfJ2OBLr9eikDygcKQHV52w/IscfX26uIXEuG1+egKc/3L4/W/mrLmPsA==", "task"=>{"title"=>"Bogus Task", "description"=>"For Deletion", "due_date"=>"2017-09-29"}, "commit"=>"Submit Edits", "id"=>"10"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.7ms) UPDATE "tasks" SET "due_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["due_date", "2017-09-29 00:00:00"], ["updated_at", "2017-09-21 19:55:08.235887"], ["id", 10]] +  (1.9ms) commit transaction +Redirected to http://localhost:3000/tasks/10 +Completed 302 Found in 9ms (ActiveRecord: 2.8ms) + + +Started GET "/tasks/10" for 127.0.0.1 at 2017-09-21 12:55:08 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"10"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (10.6ms) +Completed 200 OK in 32ms (Views: 28.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 12:55:11 -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.3ms) +Completed 200 OK in 36ms (Views: 30.1ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/10" for 127.0.0.1 at 2017-09-21 12:55:13 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"10"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.8ms) +Completed 200 OK in 49ms (Views: 42.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/10/confirm_delete" for 127.0.0.1 at 2017-09-21 12:55:15 -0700 +Processing by TasksController#confirm_delete as HTML + Parameters: {"id"=>"10"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] + Rendering tasks/confirm_delete.html.erb within layouts/application + Rendered tasks/confirm_delete.html.erb within layouts/application (0.9ms) +Completed 200 OK in 26ms (Views: 22.7ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/10/delete" for 127.0.0.1 at 2017-09-21 12:55:16 -0700 +Processing by TasksController#delete as HTML + Parameters: {"authenticity_token"=>"D8PPqAeTJ49h6VxDYiJhwsW/Yi2MRL9c2GFg2llsatfKWX5SD1owXJFjCLjLZmKj3VVqfnD0p+f4fESTInd1Ww==", "id"=>"10"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] + SQL (1.9ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 10]] +Redirected to http://localhost:3000/tasks +Completed 302 Found in 5ms (ActiveRecord: 2.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 12:55:16 -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.0ms) +Completed 200 OK in 28ms (Views: 22.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/8" for 127.0.0.1 at 2017-09-21 12:55:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"8"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.1ms) +Completed 200 OK in 46ms (Views: 37.2ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/8/confirm_delete" for 127.0.0.1 at 2017-09-21 12:55:19 -0700 +Processing by TasksController#confirm_delete as HTML + Parameters: {"id"=>"8"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] + Rendering tasks/confirm_delete.html.erb within layouts/application + Rendered tasks/confirm_delete.html.erb within layouts/application (1.8ms) +Completed 200 OK in 33ms (Views: 29.7ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 12:55:20 -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.2ms) +Completed 200 OK in 27ms (Views: 24.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-21 12:55:27 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.7ms) + Rendered tasks/new.html.erb within layouts/application (7.9ms) +Completed 200 OK in 33ms (Views: 29.0ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-21 12:55:37 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"pxFU1ZiaN8KJl/dB5I5vt29q8wt0BORmo51k2dk/jZ9ii+UvkFMgEXkdo7pNymzWd4D7WIi0/N2DgECQoiSSEw==", "task"=>{"title"=>"Bogus Task", "description"=>"For testing", "due_date"=>"2017-09-29"}, "commit"=>"Add Task"} +  (0.1ms) begin transaction + SQL (0.5ms) INSERT INTO "tasks" ("title", "description", "due_date", "complete", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["title", "Bogus Task"], ["description", "For testing"], ["due_date", "2017-09-29 00:00:00"], ["complete", "f"], ["created_at", "2017-09-21 19:55:37.113656"], ["updated_at", "2017-09-21 19:55:37.113656"]] +  (5.1ms) commit transaction +  (0.1ms) begin transaction +  (0.1ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 11ms (ActiveRecord: 5.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 12:55: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 (2.1ms) +Completed 200 OK in 24ms (Views: 21.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 12:57: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 (4.9ms) +Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (No route matches {:action=>"complete", :controller=>"tasks"}, missing required keys: [:id]): + 15:
    • + 16:

      <%=link_to task.title, task_path(task.id)%>

      + 17:

      + 18: <%=button_to "Complete", complete_task_path, method: :patch%> + 19:

      + 20:
    • + 21: <%end%> + +app/views/tasks/index.html.erb:18:in `block in _app_views_tasks_index_html_erb__67294304359063174_70347932611860' +app/views/tasks/index.html.erb:14:in `_app_views_tasks_index_html_erb__67294304359063174_70347932611860' +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 12:58: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 (4.2ms) +Completed 200 OK in 53ms (Views: 47.9ms | ActiveRecord: 0.4ms) + + +Started PATCH "/tasks/11/complete" for 127.0.0.1 at 2017-09-21 12:58:27 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"TdRU4x87KHowgrFaTjt88Rm/n0JG0WxGsGQAWyRHU96ITuUZF/I/qcAI5aHnf3+QAVWXEbphdP2QeSQSX1xMUg==", "id"=>"11"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (1.7ms) UPDATE "tasks" SET "complete" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["complete", "t"], ["updated_at", "2017-09-21 19:58:27.234512"], ["id", 11]] +  (1.7ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 3.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 12:58: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.3ms) +Completed 200 OK in 23ms (Views: 20.3ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/11/complete" for 127.0.0.1 at 2017-09-21 12:58:29 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"7ytMPFF0U9tUwpAvgB9MDOtWoeNArNVlEZ4bX+nBwU0qsf3GWb1ECKRIxNQpW09t87ypsLwczd4xgz8WktrewQ==", "id"=>"11"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]] +  (0.1ms) begin transaction +  (0.1ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 12:58:29 -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.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/11" for 127.0.0.1 at 2017-09-21 12:58:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (6.1ms) +Completed 200 OK in 52ms (Views: 45.9ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 12:58: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.8ms) +Completed 200 OK in 65ms (Views: 54.6ms | ActiveRecord: 0.2ms) + + From 556c549e579341919397cef6029db9bebb8a3d94 Mon Sep 17 00:00:00 2001 From: Kimberley Zell Date: Thu, 21 Sep 2017 13:56:32 -0700 Subject: [PATCH 10/11] completed basic requirements, working on asthetics --- app/controllers/tasks_controller.rb | 8 + app/views/tasks/index.html.erb | 7 +- app/views/tasks/show.html.erb | 1 + db/development.sqlite3 | Bin 28672 -> 28672 bytes ...0921202123_add_completion_date_to_tasks.rb | 5 + db/schema.rb | 3 +- log/development.log | 837 ++++++++++++++++++ 7 files changed, 859 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20170921202123_add_completion_date_to_tasks.rb diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index ee3b591ba..1ad619f64 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -40,9 +40,17 @@ def update end + # def date_completed + # @date_completed = DateTime.now + # end def complete task = Task.find(params[:id]) + # date_completed + unless task.complete == true + task.completion_date = DateTime.now + end + task.complete! redirect_to tasks_path end diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb index 7f488f710..350e6af33 100644 --- a/app/views/tasks/index.html.erb +++ b/app/views/tasks/index.html.erb @@ -15,7 +15,12 @@
    • <%=link_to task.title, task_path(task.id)%>

      - <%=button_to "Complete", complete_task_path(task.id), method: :patch%> + Completed On: <%= task.completion_date %> +

      +

      + <%=button_to "Mark Complete", complete_task_path(task.id), method: :patch%> + <%=button_to "Edit", edit_task_path(task.id), method: :get%> + <%=button_to "Delete", confirm_delete_task_path(task.id), method: :get%>

    • <%end%> diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb index fd635c055..ce2a8a89f 100644 --- a/app/views/tasks/show.html.erb +++ b/app/views/tasks/show.html.erb @@ -6,6 +6,7 @@
      • Due Date: <%= @task.due_date%>
      • Completed: <%= @task.complete%>
      • +
      • Completion Date: <%= @task.completion_date %>
      <%=button_to "Complete", complete_task_path, method: :patch %> diff --git a/db/development.sqlite3 b/db/development.sqlite3 index 83f722d4f4361692e32bfcdc866d43703d3afaa7..2b5be9ac1c82927d93c92831e8850f394d2e05ad 100644 GIT binary patch delta 538 zcmZ{gyGq1B6ox19x|hj#K^GC(tX2zaoXljB%-FcvS&EIYxXK!J@v=%{?d=7Wyn$e8 zAwdv)2(_|s5i83Dtt>2@D2j_Za0Y(<|D3~j_8yhJN9Aa+y8r;_koEOij|+650F1T? z2r+0+-2ya@F0`EXlDbVlobS)2k_XAQj!Y(_9QvVvPeTQLxKi8LTK9r#ZL_?z7CZC z!g3576K>IFhnj*ggEMN`{BMVFPPfwuVCJcu4yHbdJv~^h`g*YFuT@sPN^(tV?}I+P zEN3O0AhsaHVBDrIX`UQAj$yf+xhy=JzuV3Al_}aubb{PeykoMqvg0p%DXB-KE@|Ir n!EZE11#=CX5zCgR{0Yr0fw94f?NI!WgIyZ}5Vb74Aw_!!)Hs4w delta 422 zcmZp8z}WDBae}m<90LObI}pPF^F$qENjU~RRtH}G9}H|f_ZaxC`M2^Z@_php;JLS1 zP#}$G@;#m)uEso8c5!iW#%Alux4EBfR^WTW$i~S3j)DK(X2FCf{FC3wiy`wjztfjj z;GD_p1%W_wmhx=g9izxNxgnOv#lY0cz|zXVT+h(V(!|Kf$iUEC*T7QO$WQ@IhQE44TB)dQ|7FI^)dPc@3 OriMnF68`fuasvSM%52d9 diff --git a/db/migrate/20170921202123_add_completion_date_to_tasks.rb b/db/migrate/20170921202123_add_completion_date_to_tasks.rb new file mode 100644 index 000000000..81fe13209 --- /dev/null +++ b/db/migrate/20170921202123_add_completion_date_to_tasks.rb @@ -0,0 +1,5 @@ +class AddCompletionDateToTasks < ActiveRecord::Migration[5.1] + def change + add_column :tasks, :completion_date, :datetime + end +end diff --git a/db/schema.rb b/db/schema.rb index 200972c3d..71f0e48b4 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: 20170919222928) do +ActiveRecord::Schema.define(version: 20170921202123) do create_table "tasks", force: :cascade do |t| t.string "title" @@ -19,6 +19,7 @@ t.boolean "complete" t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.datetime "completion_date" end end diff --git a/log/development.log b/log/development.log index 56cb7a2ce..71a40f24f 100644 --- a/log/development.log +++ b/log/development.log @@ -5456,3 +5456,840 @@ Processing by TasksController#index as HTML Completed 200 OK in 65ms (Views: 54.6ms | ActiveRecord: 0.2ms) +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.1ms) begin transaction +  (0.1ms) commit transaction +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to AddCompletionDateToTasks (20170921201014) +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to AddCompletionDateToTasks (20170921202123) +  (0.1ms) begin transaction +  (2.1ms) ALTER TABLE "tasks" ADD "completion_date" datetime + SQL (1.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170921202123"]] +  (5.7ms) commit transaction + ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.1ms) begin transaction +  (0.1ms) commit transaction +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:23:04 -0700 +  (0.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.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (14.8ms) +Completed 200 OK in 61ms (Views: 51.8ms | ActiveRecord: 1.4ms) + + +Started GET "/tasks/11" for 127.0.0.1 at 2017-09-21 13:23:12 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.3ms) +Completed 200 OK in 41ms (Views: 31.2ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/11" for 127.0.0.1 at 2017-09-21 13:24:20 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.2ms) +Completed 200 OK in 25ms (Views: 21.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/11" for 127.0.0.1 at 2017-09-21 13:25:59 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.5ms) +Completed 200 OK in 42ms (Views: 25.4ms | ActiveRecord: 1.2ms) + + +Started PATCH "/tasks/11/complete" for 127.0.0.1 at 2017-09-21 13:26:02 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"sZbL9eFpffiWX8wsUMP9qGGu/aTW7efSgxE4fdNUnTx0DHoP6aBqK2bVmNf5h/7JeUT19ypd/2mjDBw0qE+CsA==", "id"=>"11"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]] +  (0.1ms) begin transaction +  (0.1ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:26:02 -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 27ms (Views: 24.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/11" for 127.0.0.1 at 2017-09-21 13:26:04 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.4ms) +Completed 200 OK in 41ms (Views: 32.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-21 13:26:08 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (4.9ms) + Rendered tasks/new.html.erb within layouts/application (9.4ms) +Completed 200 OK in 45ms (Views: 40.2ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-21 13:26:22 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"XdjuQ+npR6xyeRvjM3S2exbshFH+F1F522rWd0T64QGYQl+54SBQf4LzTxiaMLUaDgaMAgKnScL7d/I+P+H+jQ==", "task"=>{"title"=>"Complete this task", "description"=>"check the date", "due_date"=>"2017-09-29"}, "commit"=>"Add Task"} +  (0.1ms) begin transaction + SQL (1.6ms) INSERT INTO "tasks" ("title", "description", "due_date", "complete", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["title", "Complete this task"], ["description", "check the date"], ["due_date", "2017-09-29 00:00:00"], ["complete", "f"], ["created_at", "2017-09-21 20:26:22.596382"], ["updated_at", "2017-09-21 20:26:22.596382"]] +  (1.6ms) commit transaction +  (0.2ms) begin transaction +  (0.1ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 11ms (ActiveRecord: 3.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:26:22 -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 25ms (Views: 21.7ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/12/complete" for 127.0.0.1 at 2017-09-21 13:26:27 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"nO4BYjWYiNdYG3Y8uUffrRv7cO/PohFEmQthJyDKJ7dZdLCYPVGfBKiRIscQA9zMAxF4vDMSCf+5FkVuW9E4Ow==", "id"=>"12"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 12], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "complete" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["complete", "t"], ["updated_at", "2017-09-21 20:26:27.489585"], ["id", 12]] +  (1.7ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 2.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:26: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.5ms) +Completed 200 OK in 28ms (Views: 21.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/12" for 127.0.0.1 at 2017-09-21 13:26:28 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"12"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 12], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.7ms) +Completed 200 OK in 44ms (Views: 38.1ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:27: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 (17.4ms) +Completed 200 OK in 48ms (Views: 41.2ms | ActiveRecord: 1.8ms) + + +Started PATCH "/tasks/12/complete" for 127.0.0.1 at 2017-09-21 13:27:32 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"cCb1kTA/AUHk3N44aJoVWfu39VbYW8VcCy+T141NXwi1vERrOPYWkhRWisPB3hY44139BSTr3ecrMree9lZAhA==", "id"=>"12"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 12], ["LIMIT", 1]] +  (0.1ms) begin transaction +  (0.0ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:27: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 (2.5ms) +Completed 200 OK in 26ms (Views: 23.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/12" for 127.0.0.1 at 2017-09-21 13:27:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"12"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 12], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.1ms) +Completed 200 OK in 36ms (Views: 29.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-21 13:27:40 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (4.2ms) + Rendered tasks/new.html.erb within layouts/application (9.3ms) +Completed 200 OK in 34ms (Views: 29.6ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-21 13:27:47 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"kBQQFHuXUIPvXEF5xuhRYzBX2uI4UVYm+dgx2NV6GvxVjqHuc15HUB/WFYJvrFICKL3SscThTp3ZxRWRrmEFcA==", "task"=>{"title"=>"Test", "description"=>"", "due_date"=>""}, "commit"=>"Add Task"} +  (0.1ms) begin transaction + SQL (0.9ms) INSERT INTO "tasks" ("title", "description", "complete", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Test"], ["description", ""], ["complete", "f"], ["created_at", "2017-09-21 20:27:47.602943"], ["updated_at", "2017-09-21 20:27:47.602943"]] +  (2.1ms) commit transaction +  (0.1ms) begin transaction +  (0.2ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 3.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:27:47 -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: 32.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/13" for 127.0.0.1 at 2017-09-21 13:27:49 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"13"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 13], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.8ms) +Completed 200 OK in 39ms (Views: 31.8ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/13/complete" for 127.0.0.1 at 2017-09-21 13:27:51 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"bLnHeW5rmEBrK8IriGLxmGHrAeBigcKZ4rmR8ZUtxd8cIIZsx1Zgq4FuwoA6G1JZi6s/kmQwGy/t2PT3M68P+w==", "id"=>"13"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 13], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "complete" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["complete", "t"], ["updated_at", "2017-09-21 20:27:51.543694"], ["id", 13]] +  (1.4ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 5ms (ActiveRecord: 2.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:27: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.9ms) +Completed 200 OK in 27ms (Views: 23.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/13" for 127.0.0.1 at 2017-09-21 13:27:54 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"13"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 13], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.1ms) +Completed 200 OK in 37ms (Views: 30.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:31:02 -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 (12.8ms) +Completed 200 OK in 38ms (Views: 30.7ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks/13" for 127.0.0.1 at 2017-09-21 13:31:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"13"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 13], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.8ms) +Completed 200 OK in 37ms (Views: 30.0ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/13/complete" for 127.0.0.1 at 2017-09-21 13:31:07 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"6Gy616XkwjW20XghD2ImkuwczCIfd7yeB/9bxYRZYsaY9fvCDNk63lyUeIq9G4VTBlzyUBnGZSgInj7DItuo4g==", "id"=>"13"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 13], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.6ms) UPDATE "tasks" SET "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completion_date", "2017-09-21 20:31:07.639951"], ["updated_at", "2017-09-21 20:31:07.642344"], ["id", 13]] +  (1.6ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 2.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:31: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 (2.8ms) +Completed 200 OK in 27ms (Views: 22.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/13" for 127.0.0.1 at 2017-09-21 13:31:09 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"13"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 13], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.8ms) +Completed 200 OK in 43ms (Views: 37.4ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/13/complete" for 127.0.0.1 at 2017-09-21 13:31:16 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"ZsESu1L14+3gTchRQyCBg5DBp5HSWjtSlyicVXyJj6gWWFOu+8gbBgoIyPrxWSJCeoGZ49Tr4uSYSflT2gtFjA==", "id"=>"13"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 13], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.5ms) UPDATE "tasks" SET "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completion_date", "2017-09-21 20:31:16.060887"], ["updated_at", "2017-09-21 20:31:16.061675"], ["id", 13]] +  (1.7ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 8ms (ActiveRecord: 2.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:31:16 -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 38ms (Views: 33.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/13" for 127.0.0.1 at 2017-09-21 13:31:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"13"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 13], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.5ms) +Completed 200 OK in 39ms (Views: 31.8ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/13/complete" for 127.0.0.1 at 2017-09-21 13:31:22 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"I7XshNwIxIkNmh27Xxi3f42WdOMivEs8zVXVFPQmwCZTLK2RdTU8YuffHRDtYRS+Z9ZKkSQNkorCNLASUqQKAg==", "id"=>"13"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 13], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.5ms) UPDATE "tasks" SET "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completion_date", "2017-09-21 20:31:22.627132"], ["updated_at", "2017-09-21 20:31:22.627868"], ["id", 13]] +  (1.7ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 2.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:31:22 -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 27ms (Views: 23.3ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/13/complete" for 127.0.0.1 at 2017-09-21 13:31:25 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"ig30mtjzNu9h7kNLvYPgdw44XLlpQquVmFuGNNx7OddPl0Vg0DohPJFkF7AUx+MWFtJU6pXysy64RqJ9p2AmWw==", "id"=>"13"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 13], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completion_date", "2017-09-21 20:31:25.952993"], ["updated_at", "2017-09-21 20:31:25.953469"], ["id", 13]] +  (2.1ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 6ms (ActiveRecord: 2.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:31: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 (3.3ms) +Completed 200 OK in 27ms (Views: 24.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/13" for 127.0.0.1 at 2017-09-21 13:31:26 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"13"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 13], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.9ms) +Completed 200 OK in 41ms (Views: 36.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/13" for 127.0.0.1 at 2017-09-21 13:32:11 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"13"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 13], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.4ms) +Completed 200 OK in 55ms (Views: 38.2ms | ActiveRecord: 1.2ms) + + +Started PATCH "/tasks/13/complete" for 127.0.0.1 at 2017-09-21 13:32:13 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"+QsZNBWJ9zQ0m6A0IN9zI8SYAzo5AmAUbJX+kAqaNI88kajOHUDg58QR9M+Jm3BC3HILacWyeK9MiNrZcYErAw==", "id"=>"13"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 13], ["LIMIT", 1]] +  (0.1ms) begin transaction +  (0.2ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:32: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.1ms) +Completed 200 OK in 28ms (Views: 24.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/13" for 127.0.0.1 at 2017-09-21 13:32:14 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"13"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 13], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.4ms) +Completed 200 OK in 42ms (Views: 36.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/13" for 127.0.0.1 at 2017-09-21 13:32:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"13"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 13], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.5ms) +Completed 200 OK in 42ms (Views: 37.1ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/13/complete" for 127.0.0.1 at 2017-09-21 13:32:20 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"MS/r6MTsK+MvzV5HhimJISpUka4QS937ZOupMhiWxzT0tVoSzCU8MN9HCrwvbYpAMr6Z/ez7xUBE9o17Y43YuA==", "id"=>"13"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 13], ["LIMIT", 1]] +  (0.1ms) begin transaction +  (0.1ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:32:20 -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 27ms (Views: 24.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/13" for 127.0.0.1 at 2017-09-21 13:32:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"13"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 13], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (6.3ms) +Completed 200 OK in 43ms (Views: 37.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:33:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (2.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (13.8ms) +Completed 500 Internal Server Error in 34ms (ActiveRecord: 2.1ms) + + + +ActionView::Template::Error (undefined method `completion_date' for nil:NilClass): + 15:
    • + 16:

      <%=link_to task.title, task_path(task.id)%>

      + 17:

      + 18: Completion Date: <%= @task.completion_date %> + 19: <%=button_to "Complete", complete_task_path(task.id), method: :patch%> + 20:

      + 21:
    • + +app/views/tasks/index.html.erb:18:in `block in _app_views_tasks_index_html_erb__67294304359063174_70347892534960' +app/views/tasks/index.html.erb:14:in `_app_views_tasks_index_html_erb__67294304359063174_70347892534960' +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:38:38 -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 (14.6ms) +Completed 200 OK in 42ms (Views: 34.5ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks/2" for 127.0.0.1 at 2017-09-21 13:38:55 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.3ms) +Completed 200 OK in 42ms (Views: 35.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/2/edit" for 127.0.0.1 at 2017-09-21 13:38:59 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.9ms) + Rendered tasks/edit.html.erb within layouts/application (8.2ms) +Completed 200 OK in 33ms (Views: 28.1ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:39: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 (6.7ms) +Completed 200 OK in 43ms (Views: 36.7ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/12/complete" for 127.0.0.1 at 2017-09-21 13:39:30 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"r7ECZ+A2MHEL5kXBkxJkt0ZOUf4zKy2ZW4lfcQmTrOqOrgk0UArpxfnpykTYZD5131V+aBEU0PMvzjbTwFwVbg==", "id"=>"12"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 12], ["LIMIT", 1]] +  (0.1ms) begin transaction +  (0.1ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:39:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 27ms (Views: 24.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:49:50 -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 46ms (Views: 42.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:51:57 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (6.6ms) +Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined method `id' for nil:NilClass): + 17:

      + 18: Completion Date: <%= task.completion_date %> + 19: <%=button_to "Mark Complete", complete_task_path(task.id), method: :patch%> + 20: <%=button_to "Edit", edit_task_path(@task.id), method: :get%> + 21: <%=button_to "Delete", confirm_delete_task_path, method: :get%> + 22:

      + 23: + +app/views/tasks/index.html.erb:20:in `block in _app_views_tasks_index_html_erb__67294304359063174_70347934732460' +app/views/tasks/index.html.erb:14:in `_app_views_tasks_index_html_erb__67294304359063174_70347934732460' +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:52: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 (7.8ms) +Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.4ms) + + + +ActionView::Template::Error (No route matches {:action=>"confirm_delete", :controller=>"tasks"}, missing required keys: [:id]): + 18: Completion Date: <%= task.completion_date %> + 19: <%=button_to "Mark Complete", complete_task_path(task.id), method: :patch%> + 20: <%=button_to "Edit", edit_task_path(task.id), method: :get%> + 21: <%=button_to "Delete", confirm_delete_task_path, method: :get%> + 22:

      + 23: + 24: <%end%> + +app/views/tasks/index.html.erb:21:in `block in _app_views_tasks_index_html_erb__67294304359063174_70347892402000' +app/views/tasks/index.html.erb:14:in `_app_views_tasks_index_html_erb__67294304359063174_70347892402000' +Started GET "/tasks/2/edit" for 127.0.0.1 at 2017-09-21 13:52:32 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (4.2ms) + Rendered tasks/edit.html.erb within layouts/application (10.1ms) +Completed 200 OK in 36ms (Views: 32.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:52: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 (7.3ms) +Completed 500 Internal Server Error in 23ms (ActiveRecord: 0.3ms) + + + +ActionView::Template::Error (No route matches {:action=>"confirm_delete", :controller=>"tasks"}, missing required keys: [:id]): + 18: Completion Date: <%= task.completion_date %> + 19: <%=button_to "Mark Complete", complete_task_path(task.id), method: :patch%> + 20: <%=button_to "Edit", edit_task_path(task.id), method: :get%> + 21: <%=button_to "Delete", confirm_delete_task_path, method: :get%> + 22:

      + 23: + 24: <%end%> + +app/views/tasks/index.html.erb:21:in `block in _app_views_tasks_index_html_erb__67294304359063174_70347903822960' +app/views/tasks/index.html.erb:14:in `_app_views_tasks_index_html_erb__67294304359063174_70347903822960' +Started GET "/tasks/13" for 127.0.0.1 at 2017-09-21 13:52:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"13"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 13], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.3ms) +Completed 200 OK in 64ms (Views: 57.7ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks/13" for 127.0.0.1 at 2017-09-21 13:52:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"13"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 13], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.6ms) +Completed 200 OK in 50ms (Views: 44.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:52: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 (6.4ms) +Completed 500 Internal Server Error in 22ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (No route matches {:action=>"confirm_delete", :controller=>"tasks"}, missing required keys: [:id]): + 18: Completion Date: <%= task.completion_date %> + 19: <%=button_to "Mark Complete", complete_task_path(task.id), method: :patch%> + 20: <%=button_to "Edit", edit_task_path(task.id), method: :get%> + 21: <%=button_to "Delete", confirm_delete_task_path, method: :get%> + 22:

      + 23: + 24: <%end%> + +app/views/tasks/index.html.erb:21:in `block in _app_views_tasks_index_html_erb__67294304359063174_70347946465440' +app/views/tasks/index.html.erb:14:in `_app_views_tasks_index_html_erb__67294304359063174_70347946465440' +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:53:00 -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.5ms) +Completed 200 OK in 33ms (Views: 28.2ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/13/confirm_delete" for 127.0.0.1 at 2017-09-21 13:53:04 -0700 +Processing by TasksController#confirm_delete as HTML + Parameters: {"id"=>"13"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 13], ["LIMIT", 1]] + Rendering tasks/confirm_delete.html.erb within layouts/application + Rendered tasks/confirm_delete.html.erb within layouts/application (1.4ms) +Completed 200 OK in 29ms (Views: 24.4ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/13/delete" for 127.0.0.1 at 2017-09-21 13:53:06 -0700 +Processing by TasksController#delete as HTML + Parameters: {"authenticity_token"=>"BxHb9k48VGdWkCf39u1H36itSNyEWoztR1yMTzSFhxXCi2oMRvVDtKYacwxfqUS+sEdAj3jqlFZnQagGT56YmQ==", "id"=>"13"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 13], ["LIMIT", 1]] + SQL (2.2ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 13]] +Redirected to http://localhost:3000/tasks +Completed 302 Found in 6ms (ActiveRecord: 2.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:53: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.2ms) +Completed 200 OK in 33ms (Views: 28.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/12/edit" for 127.0.0.1 at 2017-09-21 13:53:13 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"12"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 12], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.7ms) + Rendered tasks/edit.html.erb within layouts/application (7.5ms) +Completed 200 OK in 32ms (Views: 28.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:53:15 -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.4ms) +Completed 200 OK in 40ms (Views: 32.7ms | ActiveRecord: 0.4ms) + + +Started PATCH "/tasks/12/complete" for 127.0.0.1 at 2017-09-21 13:53:18 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"FrAz4uYQDijZPWWMVptwfjiG8sBvdiYA6jejXBRYt2A3rzixVizXnCsy6gkd7Sq8oZ3dVk1J22qecMr+3ZcO5A==", "id"=>"12"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 12], ["LIMIT", 1]] +  (0.1ms) begin transaction +  (0.0ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:53: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 (3.3ms) +Completed 200 OK in 27ms (Views: 25.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/12" for 127.0.0.1 at 2017-09-21 13:53:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"12"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 12], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.5ms) +Completed 200 OK in 49ms (Views: 41.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/12/confirm_delete" for 127.0.0.1 at 2017-09-21 13:53:28 -0700 +Processing by TasksController#confirm_delete as HTML + Parameters: {"id"=>"12"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 12], ["LIMIT", 1]] + Rendering tasks/confirm_delete.html.erb within layouts/application + Rendered tasks/confirm_delete.html.erb within layouts/application (2.9ms) +Completed 200 OK in 35ms (Views: 30.5ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/12/delete" for 127.0.0.1 at 2017-09-21 13:53:30 -0700 +Processing by TasksController#delete as HTML + Parameters: {"authenticity_token"=>"P+lbnYLgNPiv9aETaomhF2kPihcvrGSKCJoAARm4Osn6c+pniikjK19/9ejDzaJ2ceWCRNMcfDEohyRIYqMlRQ==", "id"=>"12"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 12], ["LIMIT", 1]] + SQL (3.7ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 12]] +Redirected to http://localhost:3000/tasks +Completed 302 Found in 6ms (ActiveRecord: 3.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:53: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.4ms) +Completed 200 OK in 29ms (Views: 25.1ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/11/edit" for 127.0.0.1 at 2017-09-21 13:53:36 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"11"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.5ms) + Rendered tasks/edit.html.erb within layouts/application (7.2ms) +Completed 200 OK in 32ms (Views: 29.1ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/11" for 127.0.0.1 at 2017-09-21 13:53:40 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (5.2ms) +Completed 200 OK in 38ms (Views: 31.1ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/11/confirm_delete" for 127.0.0.1 at 2017-09-21 13:53:44 -0700 +Processing by TasksController#confirm_delete as HTML + Parameters: {"id"=>"11"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]] + Rendering tasks/confirm_delete.html.erb within layouts/application + Rendered tasks/confirm_delete.html.erb within layouts/application (1.0ms) +Completed 200 OK in 27ms (Views: 22.5ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/11/delete" for 127.0.0.1 at 2017-09-21 13:53:46 -0700 +Processing by TasksController#delete as HTML + Parameters: {"authenticity_token"=>"kHJ0OlpA9XRpCw6k6zu1PUxIjOyBHZR7/cnKXnDNjmZV6MXAUonip5mBWl9Cf7ZcVKKEv32tjMDd1O4XC9aR6g==", "id"=>"11"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]] + SQL (4.0ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 11]] +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 4.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:53:46 -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: 23.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-21 13:53:54 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.7ms) + Rendered tasks/new.html.erb within layouts/application (7.3ms) +Completed 200 OK in 33ms (Views: 30.5ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-21 13:53:58 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"mY2qmvZ9Y2DlCB3OZPO2AeY53VuWwiyWb5GFlKAU1PhcFxtg/rR0sxWCSTXNt7Vg/tPVCGpyNC1PjKHd2w/LdA==", "task"=>{"title"=>"test", "description"=>"", "due_date"=>""}, "commit"=>"Add Task"} +  (0.1ms) begin transaction + SQL (1.0ms) INSERT INTO "tasks" ("title", "description", "complete", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "test"], ["description", ""], ["complete", "f"], ["created_at", "2017-09-21 20:53:58.652461"], ["updated_at", "2017-09-21 20:53:58.652461"]] +  (3.4ms) commit transaction +  (0.1ms) begin transaction +  (0.1ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 4.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:53: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 (3.0ms) +Completed 200 OK in 25ms (Views: 22.0ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/14/complete" for 127.0.0.1 at 2017-09-21 13:54:00 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"wi//U3w1rxX6GT0YkSauaMLp2OpuCxNdM+vEVwNN5aUHtU6pdPy4xgqTaeM4Yq0J2gPQuZK7C+YT9uAeeFb6KQ==", "id"=>"14"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "complete" = ?, "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["complete", "t"], ["completion_date", "2017-09-21 20:54:00.926086"], ["updated_at", "2017-09-21 20:54:00.926730"], ["id", 14]] +  (1.6ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 17ms (ActiveRecord: 2.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:54:00 -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 25ms (Views: 22.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:54:33 -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 28ms (Views: 24.4ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 13:55:16 -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 42ms (Views: 39.6ms | ActiveRecord: 0.2ms) + + From 860fd47a02f92a594c17a004a82810f859c02503 Mon Sep 17 00:00:00 2001 From: Kimberley Zell Date: Mon, 2 Oct 2017 09:08:38 -0700 Subject: [PATCH 11/11] updating git hub --- app/controllers/tasks_controller.rb | 10 +- app/views/tasks/_form.html.erb | 16 + app/views/tasks/edit.html.erb | 7 +- app/views/tasks/index.html.erb | 2 +- app/views/tasks/new.html.erb | 14 +- app/views/tasks/show.html.erb | 4 +- config/routes.rb | 5 +- db/development.sqlite3 | Bin 28672 -> 28672 bytes log/development.log | 1191 +++++++++++++++++++++++++++ 9 files changed, 1229 insertions(+), 20 deletions(-) diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index 1ad619f64..2621464da 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -50,18 +50,18 @@ def complete unless task.complete == true task.completion_date = DateTime.now end - + task.complete! redirect_to tasks_path end - def confirm_delete - @task = Task.find(params[:id]) - end + # def confirm_delete + # @task = Task.find(params[:id]) + # end def delete @task = Task.find(params[:id]) - @task.delete + @task.destroy redirect_to tasks_path end diff --git a/app/views/tasks/_form.html.erb b/app/views/tasks/_form.html.erb index 0299c7511..7df52f8ab 100644 --- a/app/views/tasks/_form.html.erb +++ b/app/views/tasks/_form.html.erb @@ -1,3 +1,19 @@ + +<% button_text ||= "Submit" %> + + +<%=form_for @task do |f|%> + <%=f.label :title%> + <%=f.text_field :title, placeholder: "title"%> + <%=f.label :description%> + <%=f.text_field :description, placeholder: "describe the task"%> + <%=f.label :due_date%> + <%=f.text_field :due_date, placeholder: "YYYY-MM-DD"%> + <%=f.submit button_text%> +<%end%> + + + diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb index 350e6af33..86f10f2d3 100644 --- a/app/views/tasks/index.html.erb +++ b/app/views/tasks/index.html.erb @@ -20,7 +20,7 @@

      <%=button_to "Mark Complete", complete_task_path(task.id), method: :patch%> <%=button_to "Edit", edit_task_path(task.id), method: :get%> - <%=button_to "Delete", confirm_delete_task_path(task.id), method: :get%> + <%=button_to "Delete", delete_task_path(task.id), method: :delete, data: {confirm: "Are you sure?"} %>

      <%end%> diff --git a/app/views/tasks/new.html.erb b/app/views/tasks/new.html.erb index cbc298b64..6db63c89d 100644 --- a/app/views/tasks/new.html.erb +++ b/app/views/tasks/new.html.erb @@ -1,13 +1,13 @@ - -

      New Task

      -
      + + + diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb index ce2a8a89f..bb8778750 100644 --- a/app/views/tasks/show.html.erb +++ b/app/views/tasks/show.html.erb @@ -11,6 +11,4 @@ <%=button_to "Complete", complete_task_path, method: :patch %> <%=button_to "Edit", edit_task_path(@task.id), method: :get%> - - - <%=button_to "Delete", confirm_delete_task_path, method: :get%> + <%=button_to "Delete", delete_task_path(@task.id), method: :delete, data: {confirm: "Are you sure?"} %> diff --git a/config/routes.rb b/config/routes.rb index 9506fa547..faa3acb61 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -8,8 +8,9 @@ patch('/tasks/:id', to: 'tasks#update', as: 'update_task') get('/tasks/:id', to: 'tasks#show', as: 'task') patch('tasks/:id/complete', to: 'tasks#complete', as:'complete_task') - get('/tasks/:id/confirm_delete', to: 'tasks#confirm_delete', as: 'confirm_delete_task') - patch('tasks/:id/delete', to: 'tasks#delete', as: 'delete_task') + # get('/tasks/:id/confirm_delete', to: 'tasks#confirm_delete', as: 'confirm_delete_task') + # patch('tasks/:id/delete', to: 'tasks#delete', as: 'delete_task') + delete('tasks/:id/delete', to: 'tasks#delete', as: 'delete_task') # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html diff --git a/db/development.sqlite3 b/db/development.sqlite3 index 2b5be9ac1c82927d93c92831e8850f394d2e05ad..47bf6202fc95bf27280d9cd8435af253ba4f79b3 100644 GIT binary patch delta 358 zcmZp8z}WDBae_3X!$cWpMu&|Fi~RWn7?}CiGVqJ=t>tg$)7dN#Aj((Y$STaqU@BQJ z!pWd6ZOrfJ=;)eQqL5USnwXuISX@$^pP!dmoMB{OXs&BuscU4WU|?VcMkR1DV+BJq zDi*{l!>wVxqfH6_`58q3 DM{`kl delta 333 zcmZ9IF-yZh7=|ypG^m%NWK!{pQ?WfR-{mg3n~VW*5EVpR#I(fIN-I@zovr^s>F&_I zgZhX1Pc&63==kvPJuiI2sWY59&+AU(Wg~SOZ>{k$enN|Qg1jo8cw?+TswY0)WvU4Q z0j7DNK~NFi>!e={hq%~HwRC0}3{`75Xti8Y0_f0qR>Yg7sdW$@30nlY+CMx4#f R>dz;{T(MZbw>~`we*sLPPH6xD diff --git a/log/development.log b/log/development.log index 71a40f24f..9e93e0ecb 100644 --- a/log/development.log +++ b/log/development.log @@ -6293,3 +6293,1194 @@ Processing by TasksController#index as HTML Completed 200 OK in 42ms (Views: 39.6ms | ActiveRecord: 0.2ms) +Started GET "/tasks" for 127.0.0.1 at 2017-09-21 23:44:55 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (5.0ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (51.1ms) +Completed 200 OK in 178ms (Views: 153.3ms | ActiveRecord: 5.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 09:12:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (5.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (48.6ms) +Completed 200 OK in 166ms (Views: 146.6ms | ActiveRecord: 5.1ms) + + +Started GET "/tasks/2" for 127.0.0.1 at 2017-09-22 09:12:30 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (7.0ms) +Completed 200 OK in 67ms (Views: 48.5ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/2/edit" for 127.0.0.1 at 2017-09-22 09:12:32 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (559.7ms) + Rendered tasks/edit.html.erb within layouts/application (564.4ms) +Completed 500 Internal Server Error in 578ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined local variable or method `button_text' for #<#:0x007ff64f4d2e00> +Did you mean? button_to + button_tag): + 9: <%=f.text_field :description%> + 10: <%=f.label :due_date%> + 11: <%=f.text_field :due_date%> + 12: <%=f.submit button_text%> + 13: <%end%> + 14: + 15: + +app/views/tasks/_form.html.erb:12:in `block in _app_views_tasks__form_html_erb___2473518982194059913_70347934469360' +app/views/tasks/_form.html.erb:5:in `_app_views_tasks__form_html_erb___2473518982194059913_70347934469360' +app/views/tasks/edit.html.erb:3:in `_app_views_tasks_edit_html_erb___1252018184157116630_70347891740460' +Started GET "/tasks/2/edit" for 127.0.0.1 at 2017-09-22 09:14:46 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (5.6ms) + Rendered tasks/edit.html.erb within layouts/application (11.9ms) +Completed 200 OK in 40ms (Views: 36.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 09:14: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.5ms) +Completed 200 OK in 36ms (Views: 33.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/14/edit" for 127.0.0.1 at 2017-09-22 09:14:56 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"14"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (4.5ms) + Rendered tasks/edit.html.erb within layouts/application (9.3ms) +Completed 200 OK in 33ms (Views: 29.0ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/14" for 127.0.0.1 at 2017-09-22 09:15:08 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"AAT7Xz00ozMrmei8YFFSQ7smqPPCaKchtz7cMTjlTrfFnkqlNf204NsTvEfJFVEio8ygoD7Yv5qXI/h4Q/5ROw==", "task"=>{"title"=>"test", "description"=>"test", "due_date"=>"2017-09-29"}, "commit"=>"Submit Edits", "id"=>"14"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] +  (0.2ms) begin transaction + SQL (0.6ms) UPDATE "tasks" SET "description" = ?, "due_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["description", "test"], ["due_date", "2017-09-29 00:00:00"], ["updated_at", "2017-09-22 16:15:08.040395"], ["id", 14]] +  (2.8ms) commit transaction +Redirected to http://localhost:3000/tasks/14 +Completed 302 Found in 17ms (ActiveRecord: 3.9ms) + + +Started GET "/tasks/14" for 127.0.0.1 at 2017-09-22 09:15:08 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"14"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 23ms (Views: 19.1ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 09:15:13 -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 38ms (Views: 31.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-22 09:15:46 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (5.6ms) + Rendered tasks/new.html.erb within layouts/application (9.7ms) +Completed 200 OK in 46ms (Views: 42.5ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-22 09:16:01 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"9QW5hgbS21NMueu0SK3DbFmcP0dc5zqjEZxwMsmf88cwnwh8DhvMgLwzv0/h6cANQXY3FKBXIhgxgVR7soTsSw==", "task"=>{"title"=>"New Test", "description"=>"another test", "due_date"=>"2017-09-29"}, "commit"=>"Submit"} +  (0.1ms) begin transaction + SQL (0.5ms) INSERT INTO "tasks" ("title", "description", "due_date", "complete", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["title", "New Test"], ["description", "another test"], ["due_date", "2017-09-29 00:00:00"], ["complete", "f"], ["created_at", "2017-09-22 16:16:01.679087"], ["updated_at", "2017-09-22 16:16:01.679087"]] +  (4.4ms) commit transaction +  (0.1ms) begin transaction +  (0.1ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 11ms (ActiveRecord: 5.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 09:16: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 (5.6ms) +Completed 200 OK in 33ms (Views: 29.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 09:16: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 33ms (Views: 30.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2/edit" for 127.0.0.1 at 2017-09-22 09:16:56 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (4.5ms) + Rendered tasks/_form.html.erb (4.8ms) + Rendered tasks/edit.html.erb within layouts/application (16.4ms) +Completed 200 OK in 44ms (Views: 39.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 09:17: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 (7.3ms) +Completed 200 OK in 43ms (Views: 35.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/15" for 127.0.0.1 at 2017-09-22 09:17:04 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"15"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 15], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.3ms) +Completed 200 OK in 37ms (Views: 32.1ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/15/edit" for 127.0.0.1 at 2017-09-22 09:17:06 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"15"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 15], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (5.7ms) + Rendered tasks/_form.html.erb (3.5ms) + Rendered tasks/edit.html.erb within layouts/application (17.9ms) +Completed 200 OK in 44ms (Views: 40.8ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/15" for 127.0.0.1 at 2017-09-22 09:17:14 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"NJnSjltyiADBpd29vZC8B2TBZ/q6iMC5ihujP8+xv37xA2N0U7uf0zEviUYU1L9mfCtvqUY42AKqBod2tKqg8g==", "task"=>{"title"=>"New Test", "description"=>"editing this test", "due_date"=>"2017-09-29 00:00:00 UTC"}, "commit"=>"Confirm Edits", "id"=>"15"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 15], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "description" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["description", "editing this test"], ["updated_at", "2017-09-22 16:17:14.918829"], ["id", 15]] +  (1.5ms) commit transaction +Redirected to http://localhost:3000/tasks/15 +Completed 302 Found in 6ms (ActiveRecord: 2.0ms) + + +Started GET "/tasks/15" for 127.0.0.1 at 2017-09-22 09:17:14 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"15"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 15], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 27ms (Views: 23.6ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/15/edit" for 127.0.0.1 at 2017-09-22 09:31:18 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"15"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 15], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (12.9ms) + Rendered tasks/_form.html.erb (4.3ms) + Rendered tasks/edit.html.erb within layouts/application (23.9ms) +Completed 200 OK in 51ms (Views: 47.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 09:31: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 (5.7ms) +Completed 200 OK in 37ms (Views: 31.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-22 09:31:22 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (3.5ms) + Rendered tasks/new.html.erb within layouts/application (9.0ms) +Completed 200 OK in 42ms (Views: 36.6ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-22 09:33:34 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (3.5ms) + Rendered tasks/new.html.erb within layouts/application (7.7ms) +Completed 200 OK in 32ms (Views: 28.5ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-22 09:34:01 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (3.8ms) + Rendered tasks/new.html.erb within layouts/application (8.1ms) +Completed 200 OK in 32ms (Views: 29.6ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 09:59: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 (194.6ms) +Completed 500 Internal Server Error in 213ms (ActiveRecord: 2.9ms) + + + +ActionView::Template::Error (undefined method `confirm_delete_task_path' for #<#:0x007ff64f432bf8> +Did you mean? complete_task_path): + 20:

      + 21: <%=button_to "Mark Complete", complete_task_path(task.id), method: :patch%> + 22: <%=button_to "Edit", edit_task_path(task.id), method: :get%> + 23: + 24: <%=button_to "Delete", delete_task_path(task.id), method: :delete, data: {confirm: "Are you sure?"} %> + 25:

      + 26: + +app/views/tasks/index.html.erb:23:in `block in _app_views_tasks_index_html_erb__67294304359063174_70347934258440' +app/views/tasks/index.html.erb:14:in `_app_views_tasks_index_html_erb__67294304359063174_70347934258440' +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 10:00: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 (209.7ms) +Completed 500 Internal Server Error in 225ms (ActiveRecord: 0.3ms) + + + +ActionView::Template::Error (undefined method `confirm_delete_task_path' for #<#:0x007ff64ae234c8> +Did you mean? complete_task_path): + 20:

      + 21: <%=button_to "Mark Complete", complete_task_path(task.id), method: :patch%> + 22: <%=button_to "Edit", edit_task_path(task.id), method: :get%> + 23: + 24: <%=button_to "Delete", delete_task_path(task.id), method: :delete, data: {confirm: "Are you sure?"} %> + 25:

      + 26: + +app/views/tasks/index.html.erb:23:in `block in _app_views_tasks_index_html_erb__67294304359063174_70347898308920' +app/views/tasks/index.html.erb:14:in `_app_views_tasks_index_html_erb__67294304359063174_70347898308920' +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 10:00:31 -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 (178.3ms) +Completed 500 Internal Server Error in 188ms (ActiveRecord: 0.4ms) + + + +ActionView::Template::Error (undefined method `confirm_delete_task_path' for #<#:0x007ff64f6904b8> +Did you mean? complete_task_path): + 20:

      + 21: <%=button_to "Mark Complete", complete_task_path(task.id), method: :patch%> + 22: <%=button_to "Edit", edit_task_path(task.id), method: :get%> + 23: + 24: <%=button_to "Delete", delete_task_path(task.id), method: :delete, data: {confirm: "Are you sure?"} %> + 25:

      + 26: + +app/views/tasks/index.html.erb:23:in `block in _app_views_tasks_index_html_erb__67294304359063174_70347935484660' +app/views/tasks/index.html.erb:14:in `_app_views_tasks_index_html_erb__67294304359063174_70347935484660' +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 10:01: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 (151.3ms) +Completed 500 Internal Server Error in 163ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined method `delete_task_path' for #<#:0x007ff64a4e4920> +Did you mean? edit_task_path + complete_task_path): + 21: <%=button_to "Mark Complete", complete_task_path(task.id), method: :patch%> + 22: <%=button_to "Edit", edit_task_path(task.id), method: :get%> + 23: + 24: <%=button_to "Delete", delete_task_path(task.id), method: :delete, data: {confirm: "Are you sure?"} %> + 25:

      + 26: + 27: <%end%> + +app/views/tasks/index.html.erb:24:in `block in _app_views_tasks_index_html_erb__67294304359063174_70347892664720' +app/views/tasks/index.html.erb:14:in `_app_views_tasks_index_html_erb__67294304359063174_70347892664720' +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 10:02:10 -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 29ms (Views: 25.2ms | ActiveRecord: 0.2ms) + + +Started DELETE "/tasks/15" for 127.0.0.1 at 2017-09-22 10:02:20 -0700 + +ActionController::RoutingError (No route matches [DELETE] "/tasks/15"): + +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 DELETE "/tasks/15" for 127.0.0.1 at 2017-09-22 10:03:03 -0700 + +ActionController::RoutingError (No route matches [DELETE] "/tasks/15"): + +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 DELETE "/tasks/15" for 127.0.0.1 at 2017-09-22 10:03:10 -0700 + +ActionController::RoutingError (No route matches [DELETE] "/tasks/15"): + +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 DELETE "/tasks/15" for 127.0.0.1 at 2017-09-22 10:03:56 -0700 + +ActionController::RoutingError (No route matches [DELETE] "/tasks/15"): + +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 10:04:15 -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 (46.5ms) +Completed 200 OK in 95ms (Views: 82.1ms | ActiveRecord: 2.6ms) + + +Started DELETE "/books/15/delete" for 127.0.0.1 at 2017-09-22 10:04:23 -0700 + +ActionController::RoutingError (uninitialized constant BooksController): + +activesupport (5.1.4) lib/active_support/inflector/methods.rb:269:in `const_get' +activesupport (5.1.4) lib/active_support/inflector/methods.rb:269:in `block in constantize' +activesupport (5.1.4) lib/active_support/inflector/methods.rb:267:in `each' +activesupport (5.1.4) lib/active_support/inflector/methods.rb:267:in `inject' +activesupport (5.1.4) lib/active_support/inflector/methods.rb:267:in `constantize' +actionpack (5.1.4) lib/action_dispatch/http/request.rb:85:in `controller_class_for' +actionpack (5.1.4) lib/action_dispatch/http/request.rb:78:in `controller_class' +actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:43:in `controller' +actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:29: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 DELETE "/books/15/delete" for 127.0.0.1 at 2017-09-22 10:05:11 -0700 + +ActionController::RoutingError (No route matches [DELETE] "/books/15/delete"): + +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 10:05:19 -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 (14.4ms) +Completed 200 OK in 45ms (Views: 35.5ms | ActiveRecord: 1.3ms) + + +Started DELETE "/tasks/15/delete" for 127.0.0.1 at 2017-09-22 10:05:24 -0700 + +AbstractController::ActionNotFound (The action 'destroy' 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 DELETE "/tasks/15/delete" for 127.0.0.1 at 2017-09-22 10:05:51 -0700 +Processing by TasksController#delete as HTML + Parameters: {"authenticity_token"=>"EeBdJCcbisz8F9kgNFHesINbvp+VirHxAzAxfEO4NA7UeuzeL9KdHwydjdudFd3Rm7G2zGk6qUojLRU1OKMrgg==", "id"=>"15"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 15], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 15]] +  (4.1ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 22ms (ActiveRecord: 5.6ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 10:05: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 (4.9ms) +Completed 200 OK in 29ms (Views: 26.3ms | ActiveRecord: 0.3ms) + + +Started DELETE "/tasks/14/delete" for 127.0.0.1 at 2017-09-22 10:05:57 -0700 +Processing by TasksController#delete as HTML + Parameters: {"authenticity_token"=>"vEAQJu14XRgGtZej/srCEZVHvvyjZ+bCvrZD0MDMzdV52qHc5bFKy/Y/w1hXjsFwja22r1/X/nmeq2eZu9fSWQ==", "id"=>"14"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 14]] +  (1.8ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 6ms (ActiveRecord: 2.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 10:05:57 -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 40ms (Views: 37.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-22 10:06:03 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (4.8ms) + Rendered tasks/new.html.erb within layouts/application (10.0ms) +Completed 200 OK in 34ms (Views: 30.5ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-22 10:06:15 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"dPiielJWhfjsyb1AzWMPfsT1TzNsnMNNQHevg1dSpOCxYhOAWp+SKxxD6btkJwwf3B9HYJAs2/ZgaovKLEm7bA==", "task"=>{"title"=>"Testing", "description"=>"More testing", "due_date"=>"2017-09-29"}, "commit"=>"Submit"} +  (0.1ms) begin transaction + SQL (0.6ms) INSERT INTO "tasks" ("title", "description", "due_date", "complete", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["title", "Testing"], ["description", "More testing"], ["due_date", "2017-09-29 00:00:00"], ["complete", "f"], ["created_at", "2017-09-22 17:06:15.879602"], ["updated_at", "2017-09-22 17:06:15.879602"]] +  (1.1ms) commit transaction +  (0.4ms) begin transaction +  (0.2ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 8ms (ActiveRecord: 2.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 10:06:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 27ms (Views: 24.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 10:06: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 (11.8ms) +Completed 200 OK in 36ms (Views: 30.0ms | ActiveRecord: 1.3ms) + + +Started DELETE "/tasks/16/delete" for 127.0.0.1 at 2017-09-22 10:06:58 -0700 +Processing by TasksController#delete as HTML + Parameters: {"authenticity_token"=>"NCy+NMxdcAFUCQJ2dgSPC3tVUOcmov+EaSqKOoBmHDLxtg/OxJRn0qSDVo3fQIxqY79YtNoS5z9JN65z+30Dvg==", "id"=>"16"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 16], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 16]] +  (1.8ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 5ms (ActiveRecord: 2.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 10:06: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.8ms) +Completed 200 OK in 24ms (Views: 21.6ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-22 10:07:01 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (5.9ms) + Rendered tasks/new.html.erb within layouts/application (10.8ms) +Completed 200 OK in 35ms (Views: 30.6ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-22 10:07:10 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Y1NT/bvZFEmjrBmaQSLzgIy7LYhrDCO3PdqMd1uM+kCmyeIHsxADmlMmTWHoZvDhlFEl25e8Owwdx6g+IJflzA==", "task"=>{"title"=>"Another Test", "description"=>"", "due_date"=>"2017-09-29"}, "commit"=>"Submit"} +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "tasks" ("title", "description", "due_date", "complete", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["title", "Another Test"], ["description", ""], ["due_date", "2017-09-29 00:00:00"], ["complete", "f"], ["created_at", "2017-09-22 17:07:10.218964"], ["updated_at", "2017-09-22 17:07:10.218964"]] +  (1.6ms) commit transaction +  (0.1ms) begin transaction +  (0.1ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 8ms (ActiveRecord: 2.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 10:07:10 -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.4ms) +Completed 200 OK in 25ms (Views: 22.6ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/2" for 127.0.0.1 at 2017-09-22 10:08:42 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (302.3ms) +Completed 500 Internal Server Error in 319ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined local variable or method `confirm_delete_task_path' for #<#:0x007ff64f1077d0> +Did you mean? complete_task_path): + 13: <%=button_to "Edit", edit_task_path(@task.id), method: :get%> + 14: + 15: + 16: + +app/views/tasks/show.html.erb:16:in `_app_views_tasks_show_html_erb__81968769754199331_70347932593520' +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 10:08:53 -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 27ms (Views: 22.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/2" for 127.0.0.1 at 2017-09-22 10:09:16 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (235.3ms) +Completed 500 Internal Server Error in 255ms (ActiveRecord: 0.3ms) + + + +ActionView::Template::Error (undefined local variable or method `task' for #<#:0x007ff64ae49a60> +Did you mean? @task): + 11: + 12: <%=button_to "Complete", complete_task_path, method: :patch %> + 13: <%=button_to "Edit", edit_task_path(@task.id), method: :get%> + 14: <%=button_to "Delete", delete_task_path(task.id), method: :delete, data: {confirm: "Are you sure?"} %> + 15: + 16: + 17: + +app/views/tasks/show.html.erb:14:in `_app_views_tasks_show_html_erb__81968769754199331_70347897592820' +Started GET "/tasks/2" for 127.0.0.1 at 2017-09-22 10:09:33 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (290.6ms) +Completed 500 Internal Server Error in 305ms (ActiveRecord: 0.3ms) + + + +ActionView::Template::Error (undefined local variable or method `confirm_delete_task_path' for #<#:0x007ff64f69a760> +Did you mean? complete_task_path): + 14: <%=button_to "Delete", delete_task_path(@task.id), method: :delete, data: {confirm: "Are you sure?"} %> + 15: + 16: + 17: + +app/views/tasks/show.html.erb:17:in `_app_views_tasks_show_html_erb__81968769754199331_70347935505200' +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 10:09:52 -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.2ms) +Completed 200 OK in 29ms (Views: 25.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/17" for 127.0.0.1 at 2017-09-22 10:09:59 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"17"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 17], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (378.8ms) +Completed 500 Internal Server Error in 402ms (ActiveRecord: 0.5ms) + + + +ActionView::Template::Error (undefined local variable or method `confirm_delete_task_path' for #<#:0x007ff64f47bd80> +Did you mean? complete_task_path): + 14: <%=button_to "Delete", delete_task_path(@task.id), method: :delete, data: {confirm: "Are you sure?"} %> + 15: + 16: + 17: + +app/views/tasks/show.html.erb:17:in `_app_views_tasks_show_html_erb__81968769754199331_70347934420760' +Started GET "/tasks/17" for 127.0.0.1 at 2017-09-22 10:10:27 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"17"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 17], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 24ms (Views: 19.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/17/edit" for 127.0.0.1 at 2017-09-22 10:13:45 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"17"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 17], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (3.2ms) + Rendered tasks/_form.html.erb (3.4ms) + Rendered tasks/edit.html.erb within layouts/application (13.4ms) +Completed 200 OK in 49ms (Views: 44.6ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/17" for 127.0.0.1 at 2017-09-22 10:13:47 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"kfw9zMJFumROOzbsLxzNAC6na6X4fE/4aApMxlB7aMlUZow2yoytt76xYheGWM5hNk1j9gTMV0NIF2iPK2B3RQ==", "task"=>{"title"=>"Another Test", "description"=>"", "due_date"=>"2017-09-29 00:00:00 UTC"}, "commit"=>"Confirm Edits", "id"=>"17"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 17], ["LIMIT", 1]] +  (0.1ms) begin transaction +  (0.1ms) commit transaction +Redirected to http://localhost:3000/tasks/17 +Completed 302 Found in 8ms (ActiveRecord: 0.6ms) + + +Started GET "/tasks/17" for 127.0.0.1 at 2017-09-22 10:13:47 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"17"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 17], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 32ms (Views: 26.6ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/17/complete" for 127.0.0.1 at 2017-09-22 10:13:49 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"9sGJwV7NkACo2XXgzJZetfzaHRd0UIVv3YbUCntGA0gzWzg7VgSH01hTIRtl0l3U5DAVRIjgndT9m/BDAF0cxA==", "id"=>"17"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 17], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (2.2ms) UPDATE "tasks" SET "complete" = ?, "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["complete", "t"], ["completion_date", "2017-09-22 17:13:49.565972"], ["updated_at", "2017-09-22 17:13:49.566452"], ["id", 17]] +  (1.9ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 4.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 10:13: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.8ms) +Completed 200 OK in 26ms (Views: 23.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 15:58:29 -0700 +  (0.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.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (17.2ms) +Completed 200 OK in 312ms (Views: 295.1ms | ActiveRecord: 1.2ms) + + +Started GET "/tasks/2/edit" for 127.0.0.1 at 2017-09-22 15:58:34 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (31.0ms) + Rendered tasks/_form.html.erb (2.9ms) + Rendered tasks/edit.html.erb within layouts/application (40.6ms) +Completed 200 OK in 84ms (Views: 74.7ms | ActiveRecord: 0.6ms) + + +Started PATCH "/tasks/2" for 127.0.0.1 at 2017-09-22 15:58:56 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"jOWu5pBmDyDa7+5Aoo3sNZj6zcTNiglQd3LWMemjpWZJfx8cmK8Y8yplursLye9UgBDFlzE6EetXb/J4kri66g==", "task"=>{"title"=>"CS FUN HW1", "description"=>"Finish CS FUN Homework", "due_date"=>"2017-10-02 00:00:00 UTC"}, "commit"=>"Confirm Edits", "id"=>"2"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.6ms) UPDATE "tasks" SET "title" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["title", "CS FUN HW1"], ["updated_at", "2017-09-22 22:58:56.652658"], ["id", 2]] +  (7.3ms) commit transaction +Redirected to http://localhost:3000/tasks/2 +Completed 302 Found in 17ms (ActiveRecord: 8.3ms) + + +Started GET "/tasks/2" for 127.0.0.1 at 2017-09-22 15:58:56 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 28ms (Views: 25.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 21:25:38 -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 61ms (Views: 56.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-22 21:25:44 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (5.3ms) + Rendered tasks/new.html.erb within layouts/application (11.4ms) +Completed 200 OK in 44ms (Views: 40.1ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-22 21:25:56 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"tSIr3Ui+W0WB1JZcH11gxZ8XtNC/obMsRTA9QgGZN/JwuJonQHdMlnFewqe2GWOkh/28g0MRq5dlLRkLeoIofg==", "task"=>{"title"=>"Kiss Dario", "description"=>"yes", "due_date"=>"2017-09-29"}, "commit"=>"Submit"} +  (0.1ms) begin transaction + SQL (0.9ms) INSERT INTO "tasks" ("title", "description", "due_date", "complete", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["title", "Kiss Dario"], ["description", "yes"], ["due_date", "2017-09-29 00:00:00"], ["complete", "f"], ["created_at", "2017-09-23 04:25:56.042311"], ["updated_at", "2017-09-23 04:25:56.042311"]] +  (5.7ms) commit transaction +  (0.1ms) begin transaction +  (0.2ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 14ms (ActiveRecord: 7.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 21: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 (7.7ms) +Completed 200 OK in 38ms (Views: 32.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/18/edit" for 127.0.0.1 at 2017-09-22 21:26:01 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"18"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (6.8ms) + Rendered tasks/_form.html.erb (7.8ms) + Rendered tasks/edit.html.erb within layouts/application (26.6ms) +Completed 200 OK in 76ms (Views: 69.5ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/18" for 127.0.0.1 at 2017-09-22 21:26:07 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"2t6nN7RXODnfKJzwp/Ee5KhAt/AkXKqk0GJzcIyMTuYfRBbNvJ4v6i+iyAsOtR2FsKq/o9jssh/wf1c595dRag==", "task"=>{"title"=>"Kiss Dario", "description"=>"yes now", "due_date"=>"2017-09-29 00:00:00 UTC"}, "commit"=>"Confirm Edits", "id"=>"18"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.5ms) UPDATE "tasks" SET "description" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["description", "yes now"], ["updated_at", "2017-09-23 04:26:07.352545"], ["id", 18]] +  (1.9ms) commit transaction +Redirected to http://localhost:3000/tasks/18 +Completed 302 Found in 9ms (ActiveRecord: 2.7ms) + + +Started GET "/tasks/18" for 127.0.0.1 at 2017-09-22 21:26:07 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"18"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 24ms (Views: 21.0ms | ActiveRecord: 0.2ms) + + +Started DELETE "/tasks/18/delete" for 127.0.0.1 at 2017-09-22 21:26:16 -0700 +Processing by TasksController#delete as HTML + Parameters: {"authenticity_token"=>"+lv3pxDRIADSXs3DsuwzHVYNZC2L08yvrsE2BTkKCfQ/wUZdGBg30yLUmTgbqDB8Tudsfndj1BSO3BJMQhEWeA==", "id"=>"18"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 18]] +  (1.4ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 6ms (ActiveRecord: 2.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 21:26:16 -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: 20.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-22 21:26:21 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (3.0ms) + Rendered tasks/new.html.erb within layouts/application (6.6ms) +Completed 200 OK in 29ms (Views: 26.3ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-22 21:26:37 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Bm0dDUJqXjJD+JDSL25XVxcBmqeyVFU8cKeo3bmEqyfD96z3SqNJ4bNyxCmGKlQ2D+uS9E7kTYdQuoyUwp+0qw==", "task"=>{"title"=>"kiss Dario right now", "description"=>"really", "due_date"=>"2017-09-22"}, "commit"=>"Submit"} +  (0.1ms) begin transaction + SQL (0.6ms) INSERT INTO "tasks" ("title", "description", "due_date", "complete", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["title", "kiss Dario right now"], ["description", "really"], ["due_date", "2017-09-22 00:00:00"], ["complete", "f"], ["created_at", "2017-09-23 04:26:37.043472"], ["updated_at", "2017-09-23 04:26:37.043472"]] +  (1.4ms) commit transaction +  (0.1ms) begin transaction +  (0.1ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 2.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 21:26:37 -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 35ms (Views: 31.8ms | ActiveRecord: 0.4ms) + + +Started PATCH "/tasks/19/complete" for 127.0.0.1 at 2017-09-22 21:26:44 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"98PFtUULSAzQuEbnchn4yEE/oV0KSZRbwQ6TZMBryyYyWXRPTcJf3yAyEhzbXfupWdWpDvb5jODhE7ctu3DUqg==", "id"=>"19"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 19], ["LIMIT", 1]] +  (0.2ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "complete" = ?, "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["complete", "t"], ["completion_date", "2017-09-23 04:26:44.233279"], ["updated_at", "2017-09-23 04:26:44.234029"], ["id", 19]] +  (1.6ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 8ms (ActiveRecord: 2.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 21:26: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 (8.4ms) +Completed 200 OK in 33ms (Views: 30.6ms | ActiveRecord: 0.2ms) + + +Started DELETE "/tasks/19/delete" for 127.0.0.1 at 2017-09-22 21:27:12 -0700 +Processing by TasksController#delete as HTML + Parameters: {"authenticity_token"=>"yHlaqDigqjfyrKweVGLzEzupNjOKEbUEK0BDDtFY1ucN4+tSMGm95AIm+OX9JvByI0M+YHahrb8LXWdHqkPJaw==", "id"=>"19"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 19], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.6ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 19]] +  (2.2ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 3.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-22 21:27:12 -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 28ms (Views: 23.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-23 09:27:55 -0700 +  (0.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.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (22.1ms) +Completed 200 OK in 313ms (Views: 291.5ms | ActiveRecord: 1.4ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-23 09:28:07 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (31.7ms) + Rendered tasks/new.html.erb within layouts/application (37.6ms) +Completed 200 OK in 79ms (Views: 75.2ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-23 09:28:20 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"K3npUg73gXQOuGfCoMQUKJPx5mn3SdF89esc/bx/2Mbu41ioBj6Wp/4yMzkJgBdJixvuOgv5ycfV9ji0x2THSg==", "task"=>{"title"=>"Eat breakfast", "description"=>"soon", "due_date"=>"2017-09-26"}, "commit"=>"Submit"} +  (0.1ms) begin transaction + SQL (0.9ms) INSERT INTO "tasks" ("title", "description", "due_date", "complete", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["title", "Eat breakfast"], ["description", "soon"], ["due_date", "2017-09-26 00:00:00"], ["complete", "f"], ["created_at", "2017-09-23 16:28:20.418938"], ["updated_at", "2017-09-23 16:28:20.418938"]] +  (6.3ms) commit transaction +  (0.1ms) begin transaction +  (0.1ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 17ms (ActiveRecord: 7.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-23 09:28:20 -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 28ms (Views: 25.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/20/edit" for 127.0.0.1 at 2017-09-23 09:28:25 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"20"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 20], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (4.5ms) + Rendered tasks/_form.html.erb (4.5ms) + Rendered tasks/edit.html.erb within layouts/application (17.4ms) +Completed 200 OK in 62ms (Views: 53.9ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/20" for 127.0.0.1 at 2017-09-23 09:28:33 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"SPlCAHZUxvZ6ID3hOwRrF+b2ehYk7kyKMaYakyzMKheNY/P6fp3RJYqqaRqSQGh2/hxyRdheVDERuz7aV9c1mw==", "task"=>{"title"=>"Eat breakfast", "description"=>"soonish", "due_date"=>"2017-09-26 00:00:00 UTC"}, "commit"=>"Confirm Edits", "id"=>"20"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 20], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (1.2ms) UPDATE "tasks" SET "description" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["description", "soonish"], ["updated_at", "2017-09-23 16:28:33.176766"], ["id", 20]] +  (1.9ms) commit transaction +Redirected to http://localhost:3000/tasks/20 +Completed 302 Found in 8ms (ActiveRecord: 3.4ms) + + +Started GET "/tasks/20" for 127.0.0.1 at 2017-09-23 09:28:33 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"20"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 20], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.3ms) +Completed 200 OK in 39ms (Views: 32.8ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/20/complete" for 127.0.0.1 at 2017-09-23 09:28:39 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"YllDkNSaBVf/xa9nCKtbh9eU9khpnJcubRxpls8B7Zinw/Jq3FMShA9P+5yh71jmz37+G5Usj5VNAU3ftBryFA==", "id"=>"20"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 20], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "complete" = ?, "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["complete", "t"], ["completion_date", "2017-09-23 16:28:39.540437"], ["updated_at", "2017-09-23 16:28:39.540901"], ["id", 20]] +  (1.1ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 8ms (ActiveRecord: 1.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-23 09:28: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 (7.5ms) +Completed 200 OK in 44ms (Views: 41.0ms | ActiveRecord: 0.3ms) + + +Started DELETE "/tasks/20/delete" for 127.0.0.1 at 2017-09-23 09:28:49 -0700 +Processing by TasksController#delete as HTML + Parameters: {"authenticity_token"=>"oQj+4mEuq4iDFVJO+s0g6eUyvMU5LL1si6/RlFfeM6Rkkk8Yaee8W3OfBrVTiSOI/di0lsWcpdersvXdLMUsKA==", "id"=>"20"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 20], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 20]] +  (1.5ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 6ms (ActiveRecord: 2.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-23 09:28: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.3ms) +Completed 200 OK in 28ms (Views: 25.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-23 09:28: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 31ms (Views: 25.1ms | ActiveRecord: 0.3ms) + +