From 5314de10fed4b36abb354a218d269ed8997c6e82 Mon Sep 17 00:00:00 2001 From: Cloudy Lopez Date: Mon, 8 Apr 2019 15:02:50 -0700 Subject: [PATCH 1/7] added route and method --- .gitignore | 3 + .ruby-version | 1 + Gemfile | 81 ++++++ Gemfile.lock | 274 ++++++++++++++++++ Guardfile | 9 + Rakefile | 6 + app/assets/config/manifest.js | 3 + app/assets/images/.keep | 0 app/assets/javascripts/application.js | 16 + app/assets/javascripts/cable.js | 13 + app/assets/javascripts/channels/.keep | 0 app/assets/javascripts/todos.js | 2 + app/assets/stylesheets/application.css | 15 + app/assets/stylesheets/todos.scss | 3 + app/channels/application_cable/channel.rb | 4 + app/channels/application_cable/connection.rb | 4 + app/controllers/application_controller.rb | 2 + app/controllers/concerns/.keep | 0 app/controllers/todos_controller.rb | 6 + app/helpers/application_helper.rb | 2 + app/helpers/todos_helper.rb | 2 + app/jobs/application_job.rb | 2 + app/mailers/application_mailer.rb | 4 + app/models/application_record.rb | 3 + app/models/concerns/.keep | 0 app/views/layouts/application.html.erb | 15 + app/views/layouts/mailer.html.erb | 13 + app/views/layouts/mailer.text.erb | 1 + app/views/todos/index.html.erb | 11 + bin/bundle | 3 + bin/rails | 9 + bin/rake | 9 + bin/setup | 36 +++ bin/spring | 17 ++ bin/update | 31 ++ bin/yarn | 11 + config.ru | 5 + config/application.rb | 26 ++ config/boot.rb | 4 + config/cable.yml | 10 + config/credentials.yml.enc | 1 + config/database.yml | 85 ++++++ config/environment.rb | 5 + config/environments/development.rb | 61 ++++ config/environments/production.rb | 94 ++++++ config/environments/test.rb | 46 +++ config/initializers/action_view.rb | 1 + .../application_controller_renderer.rb | 8 + config/initializers/assets.rb | 14 + config/initializers/backtrace_silencers.rb | 7 + .../initializers/content_security_policy.rb | 25 ++ 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 | 34 +++ config/routes.rb | 4 + config/spring.rb | 6 + config/storage.yml | 34 +++ db/seeds.rb | 7 + lib/assets/.keep | 0 lib/tasks/.keep | 0 log/.keep | 0 log/development.log | 140 +++++++++ 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 + storage/.keep | 0 test/application_system_test_case.rb | 5 + test/controllers/todos_controller_test.rb | 9 + test/fixtures/.keep | 0 test/fixtures/files/.keep | 0 test/helpers/.keep | 0 test/integration/.keep | 0 test/mailers/.keep | 0 test/models/.keep | 0 test/system/.keep | 0 test/test_helper.rb | 26 ++ vendor/.keep | 0 86 files changed, 1550 insertions(+) create mode 100644 .ruby-version create mode 100644 Gemfile create mode 100644 Gemfile.lock create mode 100644 Guardfile 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/todos.js create mode 100644 app/assets/stylesheets/application.css create mode 100644 app/assets/stylesheets/todos.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/todos_controller.rb create mode 100644 app/helpers/application_helper.rb create mode 100644 app/helpers/todos_helper.rb create mode 100644 app/jobs/application_job.rb create mode 100644 app/mailers/application_mailer.rb create mode 100644 app/models/application_record.rb create mode 100644 app/models/concerns/.keep create mode 100644 app/views/layouts/application.html.erb create mode 100644 app/views/layouts/mailer.html.erb create mode 100644 app/views/layouts/mailer.text.erb create mode 100644 app/views/todos/index.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/credentials.yml.enc 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/action_view.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/content_security_policy.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/spring.rb create mode 100644 config/storage.yml 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 storage/.keep create mode 100644 test/application_system_test_case.rb create mode 100644 test/controllers/todos_controller_test.rb create mode 100644 test/fixtures/.keep create mode 100644 test/fixtures/files/.keep create mode 100644 test/helpers/.keep create mode 100644 test/integration/.keep create mode 100644 test/mailers/.keep create mode 100644 test/models/.keep create mode 100644 test/system/.keep create mode 100644 test/test_helper.rb create mode 100644 vendor/.keep diff --git a/.gitignore b/.gitignore index 74b0d5d2c..40b6a3061 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,6 @@ build/ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this: .rvmrc .DS_Store + +# Ignore master key for decrypting credentials and more. +/config/master.key diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 000000000..25c81fe39 --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +ruby-2.5.1 \ No newline at end of file diff --git a/Gemfile b/Gemfile new file mode 100644 index 000000000..e665f46d3 --- /dev/null +++ b/Gemfile @@ -0,0 +1,81 @@ +source 'https://rubygems.org' +git_source(:github) { |repo| "https://github.com/#{repo}.git" } + +ruby '2.5.1' + +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '~> 5.2.3' +# Use postgresql as the database for Active Record +gem 'pg', '>= 0.18', '< 2.0' +# Use Puma as the app server +gem 'puma', '~> 3.11' +# 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 'mini_racer', 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', '~> 4.0' +# Use ActiveModel has_secure_password +# gem 'bcrypt', '~> 3.1.7' + +# Use ActiveStorage variant +# gem 'mini_magick', '~> 4.8' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +# Reduces boot times through caching; required in config/boot.rb +gem 'bootsnap', '>= 1.1.0', require: false + +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] +end + +group :development do + # Access an interactive console on exception pages or by calling '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 + +group :test do + # Adds support for Capybara system testing and selenium driver + gem 'capybara', '>= 2.15' + gem 'selenium-webdriver' + # Easy installation and use of chromedriver to run system tests with Chrome + gem 'chromedriver-helper' +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] + +gem 'jquery-turbolinks' +gem 'jquery-rails' +group :development, :test do + gem 'pry-rails' +end + +group :development do + gem 'better_errors' + gem 'binding_of_caller' + gem 'guard' + gem 'guard-minitest' +end + +group :test do + gem 'minitest-rails' + gem 'minitest-reporters' + gem 'minitest-skip' +end diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 000000000..bb872bace --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,274 @@ +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.2.3) + actionpack (= 5.2.3) + nio4r (~> 2.0) + websocket-driver (>= 0.6.1) + actionmailer (5.2.3) + actionpack (= 5.2.3) + actionview (= 5.2.3) + activejob (= 5.2.3) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.2.3) + actionview (= 5.2.3) + activesupport (= 5.2.3) + rack (~> 2.0) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.2.3) + activesupport (= 5.2.3) + builder (~> 3.1) + erubi (~> 1.4) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.2.3) + activesupport (= 5.2.3) + globalid (>= 0.3.6) + activemodel (5.2.3) + activesupport (= 5.2.3) + activerecord (5.2.3) + activemodel (= 5.2.3) + activesupport (= 5.2.3) + arel (>= 9.0) + activestorage (5.2.3) + actionpack (= 5.2.3) + activerecord (= 5.2.3) + marcel (~> 0.3.1) + activesupport (5.2.3) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 0.7, < 2) + minitest (~> 5.1) + tzinfo (~> 1.1) + addressable (2.6.0) + public_suffix (>= 2.0.2, < 4.0) + ansi (1.5.0) + archive-zip (0.12.0) + io-like (~> 0.3.0) + arel (9.0.0) + better_errors (2.5.1) + coderay (>= 1.0.0) + erubi (>= 1.0.0) + rack (>= 0.9.0) + bindex (0.7.0) + binding_of_caller (0.8.0) + debug_inspector (>= 0.0.1) + bootsnap (1.4.3) + msgpack (~> 1.0) + builder (3.2.3) + byebug (11.0.1) + capybara (3.16.1) + addressable + mini_mime (>= 0.1.3) + nokogiri (~> 1.8) + rack (>= 1.6.0) + rack-test (>= 0.6.3) + regexp_parser (~> 1.2) + xpath (~> 3.2) + childprocess (0.9.0) + ffi (~> 1.0, >= 1.0.11) + chromedriver-helper (2.1.1) + archive-zip (~> 0.10) + nokogiri (~> 1.8) + coderay (1.1.2) + concurrent-ruby (1.1.5) + crass (1.0.4) + debug_inspector (0.0.3) + erubi (1.8.0) + execjs (2.7.0) + ffi (1.10.0) + formatador (0.2.5) + globalid (0.4.2) + activesupport (>= 4.2.0) + guard (2.15.0) + formatador (>= 0.2.4) + listen (>= 2.7, < 4.0) + lumberjack (>= 1.0.12, < 2.0) + nenv (~> 0.1) + notiffany (~> 0.0) + pry (>= 0.9.12) + shellany (~> 0.0) + thor (>= 0.18.1) + guard-compat (1.2.1) + guard-minitest (2.4.6) + guard-compat (~> 1.2) + minitest (>= 3.0) + i18n (1.6.0) + concurrent-ruby (~> 1.0) + io-like (0.3.0) + jbuilder (2.8.0) + activesupport (>= 4.2.0) + multi_json (>= 1.2) + jquery-rails (4.3.3) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + jquery-turbolinks (2.1.0) + railties (>= 3.1.0) + turbolinks + listen (3.1.5) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + ruby_dep (~> 1.2) + loofah (2.2.3) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + lumberjack (1.0.13) + mail (2.7.1) + mini_mime (>= 0.1.1) + marcel (0.3.3) + mimemagic (~> 0.3.2) + method_source (0.9.2) + mimemagic (0.3.3) + mini_mime (1.0.1) + mini_portile2 (2.4.0) + minitest (5.11.3) + minitest-rails (3.0.0) + minitest (~> 5.8) + railties (~> 5.0) + minitest-reporters (1.3.6) + ansi + builder + minitest (>= 5.0) + ruby-progressbar + minitest-skip (0.0.1) + minitest (~> 5.0) + msgpack (1.2.9) + multi_json (1.13.1) + nenv (0.3.0) + nio4r (2.3.1) + nokogiri (1.10.2) + mini_portile2 (~> 2.4.0) + notiffany (0.1.1) + nenv (~> 0.1) + shellany (~> 0.0) + pg (1.1.4) + pry (0.12.2) + coderay (~> 1.1.0) + method_source (~> 0.9.0) + pry-rails (0.3.9) + pry (>= 0.10.4) + public_suffix (3.0.3) + puma (3.12.1) + rack (2.0.7) + rack-test (1.1.0) + rack (>= 1.0, < 3) + rails (5.2.3) + actioncable (= 5.2.3) + actionmailer (= 5.2.3) + actionpack (= 5.2.3) + actionview (= 5.2.3) + activejob (= 5.2.3) + activemodel (= 5.2.3) + activerecord (= 5.2.3) + activestorage (= 5.2.3) + activesupport (= 5.2.3) + bundler (>= 1.3.0) + railties (= 5.2.3) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.0.4) + loofah (~> 2.2, >= 2.2.2) + railties (5.2.3) + actionpack (= 5.2.3) + activesupport (= 5.2.3) + method_source + rake (>= 0.8.7) + thor (>= 0.19.0, < 2.0) + rake (12.3.2) + rb-fsevent (0.10.3) + rb-inotify (0.10.0) + ffi (~> 1.0) + regexp_parser (1.4.0) + ruby-progressbar (1.10.0) + ruby_dep (1.5.0) + rubyzip (1.2.2) + sass (3.7.4) + 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.7) + 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.141.0) + childprocess (~> 0.5) + rubyzip (~> 1.2, >= 1.2.2) + shellany (0.0.1) + 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.2) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + thor (0.20.3) + thread_safe (0.3.6) + tilt (2.0.9) + turbolinks (5.2.0) + turbolinks-source (~> 5.2) + turbolinks-source (5.2.0) + tzinfo (1.2.5) + thread_safe (~> 0.1) + uglifier (4.1.20) + execjs (>= 0.3.0, < 3) + web-console (3.7.0) + actionview (>= 5.0) + activemodel (>= 5.0) + bindex (>= 0.4.0) + railties (>= 5.0) + websocket-driver (0.7.0) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.3) + xpath (3.2.0) + nokogiri (~> 1.8) + +PLATFORMS + ruby + +DEPENDENCIES + better_errors + binding_of_caller + bootsnap (>= 1.1.0) + byebug + capybara (>= 2.15) + chromedriver-helper + guard + guard-minitest + jbuilder (~> 2.5) + jquery-rails + jquery-turbolinks + listen (>= 3.0.5, < 3.2) + minitest-rails + minitest-reporters + minitest-skip + pg (>= 0.18, < 2.0) + pry-rails + puma (~> 3.11) + rails (~> 5.2.3) + sass-rails (~> 5.0) + selenium-webdriver + spring + spring-watcher-listen (~> 2.0.0) + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +RUBY VERSION + ruby 2.5.1p57 + +BUNDLED WITH + 2.0.1 diff --git a/Guardfile b/Guardfile new file mode 100644 index 000000000..e34f706f4 --- /dev/null +++ b/Guardfile @@ -0,0 +1,9 @@ +guard :minitest, autorun: false, spring: true do + watch(%r{^app/(.+).rb$}) { |m| "test/#{m[1]}_test.rb" } + watch(%r{^app/controllers/application_controller.rb$}) { 'test/controllers' } + watch(%r{^app/controllers/(.+)_controller.rb$}) { |m| "test/integration/#{m[1]}_test.rb" } + watch(%r{^app/views/(.+)_mailer/.+}) { |m| "test/mailers/#{m[1]}_mailer_test.rb" } + watch(%r{^lib/(.+).rb$}) { |m| "test/lib/#{m[1]}_test.rb" } + watch(%r{^test/.+_test.rb$}) + watch(%r{^test/test_helper.rb$}) { 'test' } +end 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..82e6f0f6c --- /dev/null +++ b/app/assets/javascripts/application.js @@ -0,0 +1,16 @@ +// 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 activestorage +//= 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/todos.js b/app/assets/javascripts/todos.js new file mode 100644 index 000000000..dee720fac --- /dev/null +++ b/app/assets/javascripts/todos.js @@ -0,0 +1,2 @@ +// Place all the behaviors and hooks related to the matching controller here. +// All this logic will automatically be available in application.js. 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/todos.scss b/app/assets/stylesheets/todos.scss new file mode 100644 index 000000000..bf5bf30b4 --- /dev/null +++ b/app/assets/stylesheets/todos.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Todos controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/channels/application_cable/channel.rb b/app/channels/application_cable/channel.rb new file mode 100644 index 000000000..d67269728 --- /dev/null +++ b/app/channels/application_cable/channel.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Channel < ActionCable::Channel::Base + end +end diff --git a/app/channels/application_cable/connection.rb b/app/channels/application_cable/connection.rb new file mode 100644 index 000000000..0ff5442f4 --- /dev/null +++ b/app/channels/application_cable/connection.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Connection < ActionCable::Connection::Base + end +end diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb new file mode 100644 index 000000000..09705d12a --- /dev/null +++ b/app/controllers/application_controller.rb @@ -0,0 +1,2 @@ +class ApplicationController < ActionController::Base +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/todos_controller.rb b/app/controllers/todos_controller.rb new file mode 100644 index 000000000..aecc957b0 --- /dev/null +++ b/app/controllers/todos_controller.rb @@ -0,0 +1,6 @@ +class TodosController < ApplicationController + TASKS = ["take a shower", "drink coffee"] + def index + @tasks = TASKS + 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/todos_helper.rb b/app/helpers/todos_helper.rb new file mode 100644 index 000000000..65ab19501 --- /dev/null +++ b/app/helpers/todos_helper.rb @@ -0,0 +1,2 @@ +module TodosHelper +end diff --git a/app/jobs/application_job.rb b/app/jobs/application_job.rb new file mode 100644 index 000000000..a009ace51 --- /dev/null +++ b/app/jobs/application_job.rb @@ -0,0 +1,2 @@ +class ApplicationJob < ActiveJob::Base +end diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb new file mode 100644 index 000000000..286b2239d --- /dev/null +++ b/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' +end diff --git a/app/models/application_record.rb b/app/models/application_record.rb new file mode 100644 index 000000000..10a4cba84 --- /dev/null +++ b/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/app/models/concerns/.keep b/app/models/concerns/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb new file mode 100644 index 000000000..b9ce64348 --- /dev/null +++ b/app/views/layouts/application.html.erb @@ -0,0 +1,15 @@ + + + + TaskList + <%= csrf_meta_tags %> + <%= csp_meta_tag %> + + <%= 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/todos/index.html.erb b/app/views/todos/index.html.erb new file mode 100644 index 000000000..1c16e478c --- /dev/null +++ b/app/views/todos/index.html.erb @@ -0,0 +1,11 @@ +

Todos#index

+ \ No newline at end of file diff --git a/bin/bundle b/bin/bundle new file mode 100755 index 000000000..f19acf5b5 --- /dev/null +++ b/bin/bundle @@ -0,0 +1,3 @@ +#!/usr/bin/env ruby +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) +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..94fd4d797 --- /dev/null +++ b/bin/setup @@ -0,0 +1,36 @@ +#!/usr/bin/env ruby +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = File.expand_path('..', __dir__) + +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..58bfaed51 --- /dev/null +++ b/bin/update @@ -0,0 +1,31 @@ +#!/usr/bin/env ruby +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = File.expand_path('..', __dir__) + +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') + + # Install JavaScript dependencies if using Yarn + # system('bin/yarn') + + 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..460dd565b --- /dev/null +++ b/bin/yarn @@ -0,0 +1,11 @@ +#!/usr/bin/env ruby +APP_ROOT = File.expand_path('..', __dir__) +Dir.chdir(APP_ROOT) do + begin + exec "yarnpkg", *ARGV + 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..77b3ec01b --- /dev/null +++ b/config/application.rb @@ -0,0 +1,26 @@ +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 + config.generators do |g| + # Force new test files to be generated in the minitest-spec style + g.test_framework :minitest, spec: true + + # Always use .js files, never .coffee + g.javascript_engine :js + end + # Initialize configuration defaults for originally generated Rails version. + config.load_defaults 5.2 + + # Settings in config/environments/* take precedence over those specified here. + # Application configuration can go into files in config/initializers + # -- all .rb files in that directory are automatically loaded after loading + # the framework and any gems in your application. + end +end diff --git a/config/boot.rb b/config/boot.rb new file mode 100644 index 000000000..b9e460cef --- /dev/null +++ b/config/boot.rb @@ -0,0 +1,4 @@ +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) + +require 'bundler/setup' # Set up gems listed in the Gemfile. +require 'bootsnap/setup' # Speed up boot time by caching expensive operations. diff --git a/config/cable.yml b/config/cable.yml new file mode 100644 index 000000000..51266cdbe --- /dev/null +++ b/config/cable.yml @@ -0,0 +1,10 @@ +development: + adapter: async + +test: + adapter: async + +production: + adapter: redis + url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %> + channel_prefix: TaskList_production diff --git a/config/credentials.yml.enc b/config/credentials.yml.enc new file mode 100644 index 000000000..22f3b988b --- /dev/null +++ b/config/credentials.yml.enc @@ -0,0 +1 @@ +E+vOur/8ZiLxUZIP8NygiBFLBQr78h29/gL6ybtbPSbGQ/h2Yp5zOrl/gqfojnWFkfmlmTjjYLuwL0dpEATU1lfY8oAQS/Qg5tylvsGm0LFxGJHXbiiqFuMfr/PlplOAWnBN6V4Kxs1iUf7zIfmvmM0zOZvAYpL61w7r7X8HSL6Vmd+SamMwVNGJj1exMsADBWngZZ6Twagawo6PKrg1wSE7pPuM4RzBW7HiHDbwTejbesHvqwsJ8o+YvXSirnAZo71V6yisxBgC5FhzxRcBF9CjtWL1Bc8rMzBJxQTu6rmSWAOYuNghB7Ydn95AoC+JqcdIuz31dqEOIP4SCtvXWS2MwAqx1kwKcZv4rv9wfUOu+yVCLrSzHCRowSg/3DgMh8XtXo9M7yAQeNl6RaD08BoYesgzpWVAHS7e--EIOVuPru+nq+TnLL--ru+A0qX+icjtqDeuAlVvKg== \ No newline at end of file diff --git a/config/database.yml b/config/database.yml new file mode 100644 index 000000000..40243c8b5 --- /dev/null +++ b/config/database.yml @@ -0,0 +1,85 @@ +# PostgreSQL. Versions 9.1 and up are supported. +# +# Install the pg driver: +# gem install pg +# On OS X with Homebrew: +# gem install pg -- --with-pg-config=/usr/local/bin/pg_config +# On OS X with MacPorts: +# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config +# On Windows: +# gem install pg +# Choose the win32 build. +# Install PostgreSQL and put its /bin directory on your path. +# +# Configure Using Gemfile +# gem 'pg' +# +default: &default + adapter: postgresql + encoding: unicode + # For details on connection pooling, see Rails configuration guide + # http://guides.rubyonrails.org/configuring.html#database-pooling + pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> + +development: + <<: *default + database: TaskList_development + + # The specified database role being used to connect to postgres. + # To create additional roles in postgres see `$ createuser --help`. + # When left blank, postgres will use the default role. This is + # the same name as the operating system user that initialized the database. + #username: TaskList + + # The password associated with the postgres role (username). + #password: + + # Connect on a TCP socket. Omitted by default since the client uses a + # domain socket that doesn't need configuration. Windows does not have + # domain sockets, so uncomment these lines. + #host: localhost + + # The TCP port the server listens on. Defaults to 5432. + # If your server runs on a different port number, change accordingly. + #port: 5432 + + # Schema search path. The server defaults to $user,public + #schema_search_path: myapp,sharedapp,public + + # Minimum log levels, in increasing order: + # debug5, debug4, debug3, debug2, debug1, + # log, notice, warning, error, fatal, and panic + # Defaults to warning. + #min_messages: notice + +# Warning: The database defined as "test" will be erased and +# re-generated from your development database when you run "rake". +# Do not set this db to the same as development or production. +test: + <<: *default + database: TaskList_test + +# As with config/secrets.yml, you never want to store sensitive information, +# like your database password, in your source code. If your source code is +# ever seen by anyone, they now have access to your database. +# +# Instead, provide the password as a unix environment variable when you boot +# the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database +# for a full rundown on how to provide these environment variables in a +# production deployment. +# +# On Heroku and other platform providers, you may have a full connection URL +# available as an environment variable. For example: +# +# DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase" +# +# You can use this database configuration with: +# +# production: +# url: <%= ENV['DATABASE_URL'] %> +# +production: + <<: *default + database: TaskList_production + username: TaskList + password: <%= ENV['TASKLIST_DATABASE_PASSWORD'] %> diff --git a/config/environment.rb b/config/environment.rb new file mode 100644 index 000000000..426333bb4 --- /dev/null +++ b/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require_relative 'application' + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/config/environments/development.rb b/config/environments/development.rb new file mode 100644 index 000000000..1311e3e4e --- /dev/null +++ b/config/environments/development.rb @@ -0,0 +1,61 @@ +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. + # Run rails dev:cache to toggle caching. + 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.to_i}" + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + end + + # Store uploaded files on the local file system (see config/storage.yml for options) + config.active_storage.service = :local + + # 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 + + # Highlight code that triggered database queries in logs. + config.active_record.verbose_query_logs = true + + # 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..4cef70af5 --- /dev/null +++ b/config/environments/production.rb @@ -0,0 +1,94 @@ +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 + + # Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"] + # or in config/master.key. This key is used to decrypt credentials (and other encrypted files). + # config.require_master_key = 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 + + # Store uploaded files on the local file system (see config/storage.yml for options) + config.active_storage.service = :local + + # 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..0a38fd3ce --- /dev/null +++ b/config/environments/test.rb @@ -0,0 +1,46 @@ +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.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 + + # Store uploaded files on the local file system in a temporary directory + config.active_storage.service = :test + + 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/action_view.rb b/config/initializers/action_view.rb new file mode 100644 index 000000000..142d382f8 --- /dev/null +++ b/config/initializers/action_view.rb @@ -0,0 +1 @@ +Rails.application.config.action_view.form_with_generates_remote_forms = false 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/content_security_policy.rb b/config/initializers/content_security_policy.rb new file mode 100644 index 000000000..d3bcaa5ec --- /dev/null +++ b/config/initializers/content_security_policy.rb @@ -0,0 +1,25 @@ +# Be sure to restart your server when you modify this file. + +# Define an application-wide content security policy +# For further information see the following documentation +# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy + +# Rails.application.config.content_security_policy do |policy| +# policy.default_src :self, :https +# policy.font_src :self, :https, :data +# policy.img_src :self, :https, :data +# policy.object_src :none +# policy.script_src :self, :https +# policy.style_src :self, :https + +# # Specify URI for violation reports +# # policy.report_uri "/csp-violation-report-endpoint" +# end + +# If you are using UJS then enable automatic nonce generation +# Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) } + +# Report CSP violations to a specified URI +# For further information see the following documentation: +# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only +# Rails.application.config.content_security_policy_report_only = true 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..a5eccf816 --- /dev/null +++ b/config/puma.rb @@ -0,0 +1,34 @@ +# 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. +# +# preload_app! + +# 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..13344f910 --- /dev/null +++ b/config/routes.rb @@ -0,0 +1,4 @@ +Rails.application.routes.draw do + get 'todos', to: 'todos#index' + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html +end diff --git a/config/spring.rb b/config/spring.rb new file mode 100644 index 000000000..9fa7863f9 --- /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/config/storage.yml b/config/storage.yml new file mode 100644 index 000000000..d32f76e8f --- /dev/null +++ b/config/storage.yml @@ -0,0 +1,34 @@ +test: + service: Disk + root: <%= Rails.root.join("tmp/storage") %> + +local: + service: Disk + root: <%= Rails.root.join("storage") %> + +# Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key) +# amazon: +# service: S3 +# access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %> +# secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %> +# region: us-east-1 +# bucket: your_own_bucket + +# Remember not to checkin your GCS keyfile to a repository +# google: +# service: GCS +# project: your_project +# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %> +# bucket: your_own_bucket + +# Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key) +# microsoft: +# service: AzureStorage +# storage_account_name: your_account_name +# storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %> +# container: your_container_name + +# mirror: +# service: Mirror +# primary: local +# mirrors: [ amazon, google, microsoft ] diff --git a/db/seeds.rb b/db/seeds.rb new file mode 100644 index 000000000..1beea2acc --- /dev/null +++ b/db/seeds.rb @@ -0,0 +1,7 @@ +# This file should contain all the record creation needed to seed the database with its default values. +# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). +# +# Examples: +# +# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) +# Character.create(name: 'Luke', movie: movies.first) diff --git a/lib/assets/.keep b/lib/assets/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/lib/tasks/.keep b/lib/tasks/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/log/.keep b/log/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/log/development.log b/log/development.log new file mode 100644 index 000000000..c00fe3eba --- /dev/null +++ b/log/development.log @@ -0,0 +1,140 @@ +  (540.4ms) CREATE DATABASE "TaskList_development" ENCODING = 'unicode' + ↳ bin/rails:9 +  (443.1ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' + ↳ bin/rails:9 +Started GET "/" for ::1 at 2019-04-08 14:21:50 -0700 +Processing by Rails::WelcomeController#index as HTML + Rendering /Users/cloudylopez/.rvm/gems/ruby-2.5.1/gems/railties-5.2.3/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/cloudylopez/.rvm/gems/ruby-2.5.1/gems/railties-5.2.3/lib/rails/templates/rails/welcome/index.html.erb (4.3ms) +Completed 200 OK in 19ms (Views: 12.9ms | ActiveRecord: 0.0ms) + + +  (1.9ms) CREATE DATABASE "TaskList_development" ENCODING = 'unicode' + ↳ bin/rails:9 +  (0.7ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' + ↳ bin/rails:9 +Started GET "/" for ::1 at 2019-04-08 14:24:54 -0700 +Processing by Rails::WelcomeController#index as HTML + Rendering /Users/cloudylopez/.rvm/gems/ruby-2.5.1/gems/railties-5.2.3/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/cloudylopez/.rvm/gems/ruby-2.5.1/gems/railties-5.2.3/lib/rails/templates/rails/welcome/index.html.erb (3.6ms) +Completed 200 OK in 26ms (Views: 12.1ms | ActiveRecord: 0.0ms) + + +  (1.6ms) CREATE DATABASE "TaskList_development" ENCODING = 'unicode' + ↳ bin/rails:9 +  (0.7ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' + ↳ bin/rails:9 +Started GET "/" for ::1 at 2019-04-08 14:35:19 -0700 +Processing by Rails::WelcomeController#index as HTML + Rendering /Users/cloudylopez/.rvm/gems/ruby-2.5.1/gems/railties-5.2.3/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/cloudylopez/.rvm/gems/ruby-2.5.1/gems/railties-5.2.3/lib/rails/templates/rails/welcome/index.html.erb (3.7ms) +Completed 200 OK in 23ms (Views: 10.8ms | ActiveRecord: 0.0ms) + + +Started GET "/todos" for ::1 at 2019-04-08 14:35:26 -0700 + +ActionController::RoutingError (No route matches [GET] "/todos"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/todos" for ::1 at 2019-04-08 14:36:04 -0700 + +ActionController::RoutingError (No route matches [GET] "/todos"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/todos" for ::1 at 2019-04-08 14:36:24 -0700 + +ActionController::RoutingError (No route matches [GET] "/todos"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/todos" for ::1 at 2019-04-08 14:37:08 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Rendered todos/index.html.erb within layouts/application (0.3ms) +Completed 200 OK in 274ms (Views: 270.9ms | ActiveRecord: 0.0ms) + + +Started GET "/todos" for ::1 at 2019-04-08 14:39:56 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Rendered todos/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 33ms (Views: 29.4ms | ActiveRecord: 0.0ms) + + 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/storage/.keep b/storage/.keep new file mode 100644 index 000000000..e69de29bb 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/todos_controller_test.rb b/test/controllers/todos_controller_test.rb new file mode 100644 index 000000000..536b44428 --- /dev/null +++ b/test/controllers/todos_controller_test.rb @@ -0,0 +1,9 @@ +require "test_helper" + +describe TodosController do + it "should get index" do + get todos_index_url + value(response).must_be :success? + end + +end diff --git a/test/fixtures/.keep b/test/fixtures/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/fixtures/files/.keep b/test/fixtures/files/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/helpers/.keep b/test/helpers/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/integration/.keep b/test/integration/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/mailers/.keep b/test/mailers/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/models/.keep b/test/models/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/system/.keep b/test/system/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/test_helper.rb b/test/test_helper.rb new file mode 100644 index 000000000..10594a324 --- /dev/null +++ b/test/test_helper.rb @@ -0,0 +1,26 @@ +ENV["RAILS_ENV"] = "test" +require File.expand_path("../../config/environment", __FILE__) +require "rails/test_help" +require "minitest/rails" +require "minitest/reporters" # for Colorized output + +# For colorful output! +Minitest::Reporters.use!( + Minitest::Reporters::SpecReporter.new, + ENV, + Minitest.backtrace_filter +) + + +# To add Capybara feature tests add `gem "minitest-rails-capybara"` +# to the test group in the Gemfile and uncomment the following: +# require "minitest/rails/capybara" + +# Uncomment for awesome colorful output +# require "minitest/pride" + +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 0653a273d70fd6bc02369d73ccf4938b5f83f87b Mon Sep 17 00:00:00 2001 From: Cloudy Lopez Date: Wed, 10 Apr 2019 16:37:30 -0700 Subject: [PATCH 2/7] added to show.html.erb to show task description --- app/controllers/todos_controller.rb | 12 +- app/models/todo.rb | 2 + app/views/todos/index.html.erb | 6 +- app/views/todos/show.html.erb | 5 + config/routes.rb | 7 +- db/migrate/20190409221826_create_todos.rb | 12 + db/schema.rb | 27 + log/development.log | 657 ++++++++++++++++++++++ log/test.log | 66 +++ test/controllers/tasks_controller_test.rb | 256 ++++----- test/fixtures/todos.yml | 17 + test/models/todo_test.rb | 9 + 12 files changed, 941 insertions(+), 135 deletions(-) create mode 100644 app/models/todo.rb create mode 100644 app/views/todos/show.html.erb create mode 100644 db/migrate/20190409221826_create_todos.rb create mode 100644 db/schema.rb create mode 100644 log/test.log create mode 100644 test/fixtures/todos.yml create mode 100644 test/models/todo_test.rb diff --git a/app/controllers/todos_controller.rb b/app/controllers/todos_controller.rb index aecc957b0..b35c2f802 100644 --- a/app/controllers/todos_controller.rb +++ b/app/controllers/todos_controller.rb @@ -1,6 +1,14 @@ +# frozen_string_literal: true + class TodosController < ApplicationController - TASKS = ["take a shower", "drink coffee"] + # Todos = ["take a shower", "drink coffee"] def index - @tasks = TASKS + @todos = Todo.all + end + + def show + task_id = params[:id].to_i + @task = Todo.find_by(id: task_id) + puts '@taksssss', @task.description end end diff --git a/app/models/todo.rb b/app/models/todo.rb new file mode 100644 index 000000000..e7adee6a2 --- /dev/null +++ b/app/models/todo.rb @@ -0,0 +1,2 @@ +class Todo < ApplicationRecord +end diff --git a/app/views/todos/index.html.erb b/app/views/todos/index.html.erb index 1c16e478c..f68679350 100644 --- a/app/views/todos/index.html.erb +++ b/app/views/todos/index.html.erb @@ -1,11 +1,9 @@

Todos#index

\ No newline at end of file diff --git a/app/views/todos/show.html.erb b/app/views/todos/show.html.erb new file mode 100644 index 000000000..7dd603ae0 --- /dev/null +++ b/app/views/todos/show.html.erb @@ -0,0 +1,5 @@ +

+<%= @task.description %> +

+ +<%= link_to "back to all tasks", todos_path %> \ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index 13344f910..fb3cf8abc 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,9 @@ +# frozen_string_literal: true + Rails.application.routes.draw do - get 'todos', to: 'todos#index' + # get "/books", to: 'books#show' + get '/todos/:id', to: 'todos#show', as: 'todos' + get '/todos', to: 'todos#index' + root to: 'todos#index' # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html end diff --git a/db/migrate/20190409221826_create_todos.rb b/db/migrate/20190409221826_create_todos.rb new file mode 100644 index 000000000..1e56c1066 --- /dev/null +++ b/db/migrate/20190409221826_create_todos.rb @@ -0,0 +1,12 @@ +class CreateTodos < ActiveRecord::Migration[5.2] + def change + create_table :todos do |t| + t.string :name + t.string :description + t.string :completion_date + t.string :date + + t.timestamps + end + end +end diff --git a/db/schema.rb b/db/schema.rb new file mode 100644 index 000000000..040f0283c --- /dev/null +++ b/db/schema.rb @@ -0,0 +1,27 @@ +# This file is auto-generated from the current state of the database. Instead +# of editing this file, please use the migrations feature of Active Record to +# incrementally modify your database, and then regenerate this schema definition. +# +# Note that this schema.rb definition is the authoritative source for your +# database schema. If you need to create the application database on another +# system, you should be using db:schema:load, not running all the migrations +# from scratch. The latter is a flawed and unsustainable approach (the more migrations +# you'll amass, the slower it'll run and the greater likelihood for issues). +# +# It's strongly recommended that you check this file into your version control system. + +ActiveRecord::Schema.define(version: 2019_04_09_221826) do + + # These are extensions that must be enabled in order to support this database + enable_extension "plpgsql" + + create_table "todos", force: :cascade do |t| + t.string "name" + t.string "description" + t.string "completion_date" + t.string "date" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + +end diff --git a/log/development.log b/log/development.log index c00fe3eba..841392b76 100644 --- a/log/development.log +++ b/log/development.log @@ -138,3 +138,660 @@ Processing by TodosController#index as HTML Completed 200 OK in 33ms (Views: 29.4ms | ActiveRecord: 0.0ms) +  (2.9ms) CREATE DATABASE "TaskList_development" ENCODING = 'unicode' + ↳ bin/rails:9 +  (0.9ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' + ↳ bin/rails:9 +  (32.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) + ↳ bin/rails:9 +  (10.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ bin/rails:9 +  (0.9ms) SELECT pg_try_advisory_lock(4169262226251541860) + ↳ bin/rails:9 +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.2ms) BEGIN + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Create (0.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2019-04-09 22:09:54.096902"], ["updated_at", "2019-04-09 22:09:54.096902"]] + ↳ bin/rails:9 +  (0.2ms) COMMIT + ↳ bin/rails:9 +  (0.2ms) SELECT pg_advisory_unlock(4169262226251541860) + ↳ bin/rails:9 +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (176.7ms) DROP DATABASE IF EXISTS "TaskList_development" + ↳ bin/rails:9 +  (201.2ms) DROP DATABASE IF EXISTS "TaskList_test" + ↳ bin/rails:9 +  (497.3ms) CREATE DATABASE "TaskList_development" ENCODING = 'unicode' + ↳ bin/rails:9 +  (445.3ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' + ↳ bin/rails:9 + SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" + ↳ db/schema.rb:16 +  (4.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) + ↳ db/schema.rb:13 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ db/schema.rb:13 +  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES (0) + ↳ db/schema.rb:13 +  (3.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ db/schema.rb:13 + ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] + ↳ db/schema.rb:13 +  (0.1ms) BEGIN + ↳ db/schema.rb:13 + ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2019-04-09 22:10:06.154347"], ["updated_at", "2019-04-09 22:10:06.154347"]] + ↳ db/schema.rb:13 +  (0.4ms) COMMIT + ↳ db/schema.rb:13 + ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) BEGIN + ↳ bin/rails:9 +  (0.1ms) COMMIT + ↳ bin/rails:9 + SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" + ↳ db/schema.rb:16 +  (4.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) + ↳ db/schema.rb:13 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ db/schema.rb:13 +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES (0) + ↳ db/schema.rb:13 +  (3.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ db/schema.rb:13 + ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] + ↳ db/schema.rb:13 +  (0.1ms) BEGIN + ↳ db/schema.rb:13 + ActiveRecord::InternalMetadata Create (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2019-04-09 22:10:06.197258"], ["updated_at", "2019-04-09 22:10:06.197258"]] + ↳ db/schema.rb:13 +  (0.4ms) COMMIT + ↳ db/schema.rb:13 + ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) BEGIN + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Update (0.2ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2019-04-09 22:10:06.202859"], ["key", "environment"]] + ↳ bin/rails:9 +  (0.4ms) COMMIT + ↳ bin/rails:9 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.8ms) SELECT pg_try_advisory_lock(4169262226251541860) + ↳ bin/rails:9 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to CreateTodos (20190409221826) +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (13.6ms) CREATE TABLE "todos" ("id" bigserial primary key, "name" character varying, "description" character varying, "completion_date" character varying, "date" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ db/migrate/20190409221826_create_todos.rb:3 + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20190409221826"]] + ↳ bin/rails:9 +  (1.0ms) COMMIT + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) BEGIN + ↳ bin/rails:9 +  (0.1ms) COMMIT + ↳ bin/rails:9 +  (0.3ms) SELECT pg_advisory_unlock(4169262226251541860) + ↳ bin/rails:9 +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.2ms) BEGIN + Todo Create (0.9ms) INSERT INTO "todos" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "chris- hw"], ["created_at", "2019-04-09 22:28:09.621159"], ["updated_at", "2019-04-09 22:28:09.621159"]] +  (0.6ms) COMMIT + Todo Load (0.4ms) SELECT "todos".* FROM "todos" +  (0.2ms) BEGIN + Todo Create (0.6ms) INSERT INTO "todos" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "pick up library books"], ["description", "pick them up"], ["created_at", "2019-04-09 22:44:19.150196"], ["updated_at", "2019-04-09 22:44:19.150196"]] +  (5.9ms) COMMIT + Todo Load (0.5ms) SELECT "todos".* FROM "todos" +  (1.9ms) CREATE DATABASE "TaskList_development" ENCODING = 'unicode' + ↳ bin/rails:9 +  (0.9ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' + ↳ bin/rails:9 +Started GET "/todos" for ::1 at 2019-04-09 16:01:23 -0700 +  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/cloudylopez/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TodosController#index as HTML +Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.0ms) + + + +NoMethodError - undefined method `all' for ["take a shower", "drink coffee"]:Array +Did you mean? all?: + app/controllers/todos_controller.rb:4:in `index' + +Started POST "/__better_errors/a9091e9a788c0c7d/variables" for ::1 at 2019-04-09 16:01:24 -0700 +Started GET "/todos" for ::1 at 2019-04-09 16:02:08 -0700 +Processing by TodosController#index as HTML +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) + + + +NameError - uninitialized constant TodosController::Todos: + app/controllers/todos_controller.rb:4:in `index' + +Started POST "/__better_errors/b1342e64bfa367e1/variables" for ::1 at 2019-04-09 16:02:09 -0700 +Started GET "/todo" for ::1 at 2019-04-09 16:02:21 -0700 + +ActionController::RoutingError (No route matches [GET] "/todo"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/todos" for ::1 at 2019-04-09 16:02:25 -0700 +Processing by TodosController#index as HTML +Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms) + + + +NameError - uninitialized constant TodosController::Todos: + app/controllers/todos_controller.rb:4:in `index' + +Started GET "/todo" for ::1 at 2019-04-09 16:02:28 -0700 + +ActionController::RoutingError (No route matches [GET] "/todo"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/todo" for ::1 at 2019-04-09 16:02:45 -0700 + +ActionController::RoutingError (No route matches [GET] "/todo"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started POST "/__better_errors/9b9272319c6d03da/variables" for ::1 at 2019-04-09 16:02:49 -0700 +Started GET "/todos" for ::1 at 2019-04-09 16:03:50 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.5ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (13.4ms) +Completed 200 OK in 230ms (Views: 220.6ms | ActiveRecord: 5.1ms) + + +  (1.0ms) BEGIN + Todo Create (0.8ms) INSERT INTO "todos" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "make dinner"], ["description", "chop and prep to make dinner"], ["created_at", "2019-04-09 23:04:35.781278"], ["updated_at", "2019-04-09 23:04:35.781278"]] +  (0.9ms) COMMIT +Started GET "/todos" for ::1 at 2019-04-09 16:04:40 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.4ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 26ms (Views: 22.8ms | ActiveRecord: 0.4ms) + + +Started GET "/" for ::1 at 2019-04-10 15:56:57 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (6.1ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (72.3ms) +Completed 200 OK in 161ms (Views: 104.8ms | ActiveRecord: 33.9ms) + + +Started GET "/books" for ::1 at 2019-04-10 15:57:04 -0700 + +ActionController::RoutingError (No route matches [GET] "/books"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/" for ::1 at 2019-04-10 15:57:10 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (1.0ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 33ms (Views: 29.0ms | ActiveRecord: 1.0ms) + + +Started GET "/" for ::1 at 2019-04-10 16:06:42 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.7ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (34.5ms) +Completed 200 OK in 144ms (Views: 114.0ms | ActiveRecord: 10.0ms) + + +Started GET "/todos" for ::1 at 2019-04-10 16:10:15 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.8ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 48ms (Views: 43.7ms | ActiveRecord: 0.8ms) + + +Started GET "/todos/1" for ::1 at 2019-04-10 16:10:22 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/controllers/todos_controller.rb:8:in `show' + +Started POST "/__better_errors/220d3da957fe4956/variables" for ::1 at 2019-04-10 16:10:22 -0700 +Started GET "/todos/" for ::1 at 2019-04-10 16:10:41 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.4ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 42ms (Views: 39.0ms | ActiveRecord: 0.4ms) + + +Started POST "/__better_errors/220d3da957fe4956/variables" for ::1 at 2019-04-10 16:11:03 -0700 +Started GET "/todos/1" for ::1 at 2019-04-10 16:12:27 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/controllers/todos_controller.rb:8:in `show' + +Started POST "/__better_errors/66b53f00294e63ef/variables" for ::1 at 2019-04-10 16:12:27 -0700 +Started GET "/todos/1" for ::1 at 2019-04-10 16:12:58 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} +Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms) + + + +NameError - uninitialized constant TodosController::Task: + app/controllers/todos_controller.rb:11:in `show' + +Started POST "/__better_errors/ff0265e36bfe3251/variables" for ::1 at 2019-04-10 16:12:58 -0700 +Started GET "/todos/" for ::1 at 2019-04-10 16:13:02 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.5ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (12.3ms) +Completed 200 OK in 49ms (Views: 37.4ms | ActiveRecord: 5.2ms) + + +Started GET "/todos/1" for ::1 at 2019-04-10 16:13:05 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} +Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms) + + + +NameError - uninitialized constant TodosController::Task: + app/controllers/todos_controller.rb:11:in `show' + +Started POST "/__better_errors/948ad8273ab97e82/variables" for ::1 at 2019-04-10 16:13:05 -0700 +Started GET "/todos/1/" for ::1 at 2019-04-10 16:13:36 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} +Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.0ms) + + + +NameError - uninitialized constant TodosController::Task: + app/controllers/todos_controller.rb:11:in `show' + +Started POST "/__better_errors/c21f852d7bacae1a/variables" for ::1 at 2019-04-10 16:13:36 -0700 +Started GET "/todos/1/" for ::1 at 2019-04-10 16:14:00 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) + + + +NameError - uninitialized constant TodosController::Task: + app/controllers/todos_controller.rb:11:in `show' + +Started POST "/__better_errors/1be545d03fd25805/variables" for ::1 at 2019-04-10 16:14:00 -0700 +Started GET "/todos/1/" for ::1 at 2019-04-10 16:14:18 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 62ms (Views: 32.9ms | ActiveRecord: 4.2ms) + + +Started GET "/todos/1/" for ::1 at 2019-04-10 16:15:18 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.4ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.3ms) +Completed 200 OK in 31ms (Views: 26.8ms | ActiveRecord: 0.4ms) + + +Started GET "/todos/1/" for ::1 at 2019-04-10 16:19:25 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.4ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (384.1ms) +Completed 500 Internal Server Error in 408ms (ActiveRecord: 0.4ms) + + + +NameError - undefined local variable or method `task_description' for #<#:0x00007fb4a72db780>: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__1904359237010539573_70206913721160' + +Started POST "/__better_errors/6cb71fd7eb929637/variables" for ::1 at 2019-04-10 16:19:26 -0700 +Started GET "/todos/1/" for ::1 at 2019-04-10 16:19:39 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.3ms) +Completed 200 OK in 64ms (Views: 60.6ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/1/" for ::1 at 2019-04-10 16:19:50 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.5ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 20ms (Views: 15.8ms | ActiveRecord: 0.5ms) + + +Started GET "/todos/1/" for ::1 at 2019-04-10 16:19:56 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (355.2ms) +Completed 500 Internal Server Error in 362ms (ActiveRecord: 0.2ms) + + + +NameError - undefined local variable or method `task_description' for #<#:0x00007fb4a4b44be0>: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__1904359237010539573_70206917061240' + +Started POST "/__better_errors/c50913f43c5a3406/variables" for ::1 at 2019-04-10 16:19:57 -0700 +Started GET "/todos/1/" for ::1 at 2019-04-10 16:20:09 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.3ms) +Completed 200 OK in 19ms (Views: 15.1ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/1/" for ::1 at 2019-04-10 16:20:27 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.4ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (3.6ms) +Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.4ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__1904359237010539573_70206947355000' + +Started POST "/__better_errors/1ed0c92c654cfc16/variables" for ::1 at 2019-04-10 16:20:28 -0700 +Started GET "/todos/1/" for ::1 at 2019-04-10 16:20:32 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (3.3ms) +Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.3ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__1904359237010539573_70206912524760' + +Started POST "/__better_errors/b98ab6f1fbec0cd2/variables" for ::1 at 2019-04-10 16:20:32 -0700 +Started GET "/todos/1/" for ::1 at 2019-04-10 16:21:06 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (5.0ms) +Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.2ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__1904359237010539573_70206917066040' + +Started POST "/__better_errors/a896960f3e5861c4/variables" for ::1 at 2019-04-10 16:21:06 -0700 + Todo Load (1.4ms) SELECT "todos".* FROM "todos" +Started GET "/todos/1/" for ::1 at 2019-04-10 16:25:14 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (3.8ms) +Completed 500 Internal Server Error in 29ms (ActiveRecord: 5.4ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__1904359237010539573_70206946880560' + +Started POST "/__better_errors/bb10dc456521a15d/variables" for ::1 at 2019-04-10 16:25:14 -0700 +Started GET "/todos/1/" for ::1 at 2019-04-10 16:26:13 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (8.9ms) +Completed 500 Internal Server Error in 41ms (ActiveRecord: 4.4ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__1904359237010539573_70206947838420' + +Started POST "/__better_errors/d4d3b1c87801c031/variables" for ::1 at 2019-04-10 16:26:14 -0700 +Started GET "/todos/1/" for ::1 at 2019-04-10 16:26:35 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.1ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (3.5ms) +Completed 500 Internal Server Error in 23ms (ActiveRecord: 3.1ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__1904359237010539573_70206947189640' + +Started POST "/__better_errors/d42d773f276d3dec/variables" for ::1 at 2019-04-10 16:26:36 -0700 +Started GET "/todos" for ::1 at 2019-04-10 16:26:43 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 95ms (Views: 91.2ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/2" for ::1 at 2019-04-10 16:26:45 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (0.6ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (4.2ms) +Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.6ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__1904359237010539573_70206915038040' + +Started POST "/__better_errors/9e310c3424579148/variables" for ::1 at 2019-04-10 16:26:45 -0700 +Started GET "/todos/2" for ::1 at 2019-04-10 16:27:43 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 19ms (Views: 15.0ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/2" for ::1 at 2019-04-10 16:35:47 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (0.4ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (5.2ms) +Completed 200 OK in 60ms (Views: 40.6ms | ActiveRecord: 6.0ms) + + +Started GET "/todos/2" for ::1 at 2019-04-10 16:35:51 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (1.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 42ms (Views: 36.3ms | ActiveRecord: 1.2ms) + + +Started GET "/todos/2" for ::1 at 2019-04-10 16:35:52 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (1.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (2.2ms) +Completed 200 OK in 49ms (Views: 41.4ms | ActiveRecord: 1.3ms) + + diff --git a/log/test.log b/log/test.log new file mode 100644 index 000000000..8c20c2be5 --- /dev/null +++ b/log/test.log @@ -0,0 +1,66 @@ +  (197.9ms) DROP DATABASE IF EXISTS "TaskList_test" +  (595.2ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' +  (0.5ms) 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 +  (193.2ms) DROP DATABASE IF EXISTS "TaskList_test" +  (366.4ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' + SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (4.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES (0) +  (2.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (0.1ms) BEGIN + ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2019-04-09 22:10:13.915616"], ["updated_at", "2019-04-09 22:10:13.915616"]] +  (0.4ms) COMMIT + ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (0.3ms) BEGIN +  (0.1ms) COMMIT +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.6ms) 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 +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (197.8ms) DROP DATABASE IF EXISTS "TaskList_test" +  (509.4ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' + SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (4.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES (0) +  (2.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (0.1ms) BEGIN + ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2019-04-09 22:11:21.290968"], ["updated_at", "2019-04-09 22:11:21.290968"]] +  (0.5ms) COMMIT + ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +------------------------------------------- +TodosController: test_0001_should get index +------------------------------------------- +  (0.2ms) ROLLBACK +  (0.7ms) 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.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (192.5ms) DROP DATABASE IF EXISTS "TaskList_test" +  (553.4ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' + SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (4.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES (0) +  (2.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (0.1ms) BEGIN + ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2019-04-09 22:15:12.194992"], ["updated_at", "2019-04-09 22:15:12.194992"]] +  (0.5ms) COMMIT + ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (0.2ms) BEGIN +  (0.1ms) COMMIT +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +------------------------------------------- +TodosController: test_0001_should get index +------------------------------------------- +  (0.2ms) ROLLBACK diff --git a/test/controllers/tasks_controller_test.rb b/test/controllers/tasks_controller_test.rb index 971913898..129d3dafa 100644 --- a/test/controllers/tasks_controller_test.rb +++ b/test/controllers/tasks_controller_test.rb @@ -1,128 +1,128 @@ -require "test_helper" - -describe TasksController do - let (:task) { - Task.create name: "sample task", description: "this is an example for a test", - completion_date: Time.now + 5.days - } - - # Tests for Wave 1 - describe "index" do - it "can get the index path" do - # Act - get tasks_path - - # Assert - must_respond_with :success - end - - it "can get the root path" do - # Act - get root_path - - # Assert - must_respond_with :success - end - end - - # Unskip these tests for Wave 2 - describe "show" do - it "can get a valid task" do - skip - # Act - get task_path(task.id) - - # Assert - must_respond_with :success - end - - it "will redirect for an invalid task" do - skip - # Act - get task_path(-1) - - # Assert - must_respond_with :redirect - expect(flash[:error]).must_equal "Could not find task with id: -1" - end - end - - describe "new" do - it "can get the new task page" do - skip - - # Act - get new_task_path - - # Assert - must_respond_with :success - end - end - - describe "create" do - it "can create a new task" do - skip - - # Arrange - task_hash = { - task: { - name: "new task", - description: "new task description", - completion_date: nil, - }, - } - - # Act-Assert - expect { - post tasks_path, params: task_hash - }.must_change "Task.count", 1 - - new_task = Task.find_by(name: task_hash[:task][:name]) - expect(new_task.description).must_equal task_hash[:task][:description] - expect(new_task.due_date.to_time.to_i).must_equal task_hash[:task][:due_date].to_i - expect(new_task.completed).must_equal task_hash[:task][:completed] - - must_respond_with :redirect - must_redirect_to task_path(new_task.id) - end - end - - # Unskip and complete these tests for Wave 3 - describe "edit" do - it "can get the edit page for an existing task" do - skip - # Your code here - end - - it "will respond with redirect when attempting to edit a nonexistant task" do - skip - # Your code here - end - end - - # Uncomment and complete these tests for Wave 3 - describe "update" do - # Note: If there was a way to fail to save the changes to a task, that would be a great - # thing to test. - it "can update an existing task" do - skip - # Your code here - end - - it "will redirect to the root page if given an invalid id" do - skip - # Your code here - end - end - - # Complete these tests for Wave 4 - describe "destroy" do - # Your tests go here - - end - - # Complete for Wave 4 - describe "toggle_complete" do - # Your tests go here - end -end +# require "test_helper" + +# describe TasksController do +# let (:task) { +# Task.create name: "sample task", description: "this is an example for a test", +# completion_date: Time.now + 5.days +# } + +# # Tests for Wave 1 +# describe "index" do +# it "can get the index path" do +# # Act +# get tasks_path + +# # Assert +# must_respond_with :success +# end + +# it "can get the root path" do +# # Act +# get root_path + +# # Assert +# must_respond_with :success +# end +# end + +# # Unskip these tests for Wave 2 +# describe "show" do +# it "can get a valid task" do +# skip +# # Act +# get task_path(task.id) + +# # Assert +# must_respond_with :success +# end + +# it "will redirect for an invalid task" do +# skip +# # Act +# get task_path(-1) + +# # Assert +# must_respond_with :redirect +# expect(flash[:error]).must_equal "Could not find task with id: -1" +# end +# end + +# describe "new" do +# it "can get the new task page" do +# skip + +# # Act +# get new_task_path + +# # Assert +# must_respond_with :success +# end +# end + +# describe "create" do +# it "can create a new task" do +# skip + +# # Arrange +# task_hash = { +# task: { +# name: "new task", +# description: "new task description", +# completion_date: nil, +# }, +# } + +# # Act-Assert +# expect { +# post tasks_path, params: task_hash +# }.must_change "Task.count", 1 + +# new_task = Task.find_by(name: task_hash[:task][:name]) +# expect(new_task.description).must_equal task_hash[:task][:description] +# expect(new_task.due_date.to_time.to_i).must_equal task_hash[:task][:due_date].to_i +# expect(new_task.completed).must_equal task_hash[:task][:completed] + +# must_respond_with :redirect +# must_redirect_to task_path(new_task.id) +# end +# end + +# # Unskip and complete these tests for Wave 3 +# describe "edit" do +# it "can get the edit page for an existing task" do +# skip +# # Your code here +# end + +# it "will respond with redirect when attempting to edit a nonexistant task" do +# skip +# # Your code here +# end +# end + +# # Uncomment and complete these tests for Wave 3 +# describe "update" do +# # Note: If there was a way to fail to save the changes to a task, that would be a great +# # thing to test. +# it "can update an existing task" do +# skip +# # Your code here +# end + +# it "will redirect to the root page if given an invalid id" do +# skip +# # Your code here +# end +# end + +# # Complete these tests for Wave 4 +# describe "destroy" do +# # Your tests go here + +# end + +# # Complete for Wave 4 +# describe "toggle_complete" do +# # Your tests go here +# end +# end diff --git a/test/fixtures/todos.yml b/test/fixtures/todos.yml new file mode 100644 index 000000000..62958771b --- /dev/null +++ b/test/fixtures/todos.yml @@ -0,0 +1,17 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + name: MyString + string,: MyString + description: MyString + string,: MyString + completion_date: MyString + date: MyString + +two: + name: MyString + string,: MyString + description: MyString + string,: MyString + completion_date: MyString + date: MyString diff --git a/test/models/todo_test.rb b/test/models/todo_test.rb new file mode 100644 index 000000000..83cc9d30a --- /dev/null +++ b/test/models/todo_test.rb @@ -0,0 +1,9 @@ +require "test_helper" + +describe Todo do + let(:todo) { Todo.new } + + it "must be valid" do + value(todo).must_be :valid? + end +end From cfc45643154bdb1a3dc0b68d3f76cb8bc6992438 Mon Sep 17 00:00:00 2001 From: Cloudy Lopez Date: Fri, 12 Apr 2019 15:13:22 -0700 Subject: [PATCH 3/7] added new.html.erb and double checked all the routes --- app/controllers/todos_controller.rb | 10 +- app/views/todos/index.html.erb | 4 +- app/views/todos/new.html.erb | 25 + app/views/todos/show.html.erb | 2 +- config/routes.rb | 16 +- log/development.log | 1679 +++++++++++++++++++++++++++ 6 files changed, 1726 insertions(+), 10 deletions(-) create mode 100644 app/views/todos/new.html.erb diff --git a/app/controllers/todos_controller.rb b/app/controllers/todos_controller.rb index b35c2f802..884e5224d 100644 --- a/app/controllers/todos_controller.rb +++ b/app/controllers/todos_controller.rb @@ -7,8 +7,12 @@ def index end def show - task_id = params[:id].to_i - @task = Todo.find_by(id: task_id) - puts '@taksssss', @task.description + todo_id = params[:id].to_i + @todos = Todo.find_by(id: todo_id) + # puts '@tasssssk', @todo + end + + def new + @todos = Task.new end end diff --git a/app/views/todos/index.html.erb b/app/views/todos/index.html.erb index f68679350..87db45ab2 100644 --- a/app/views/todos/index.html.erb +++ b/app/views/todos/index.html.erb @@ -1,9 +1,9 @@

Todos#index

    -//

    TASKSSSSS

    +//

    CLOUDYS TASKS

    <% @todos.each do |todo| %>
  • - <%= todo.name %> +<%= link_to todo.name, todo_path(todo.id) %>
  • <% end %>
\ No newline at end of file diff --git a/app/views/todos/new.html.erb b/app/views/todos/new.html.erb new file mode 100644 index 000000000..dcc38e291 --- /dev/null +++ b/app/views/todos/new.html.erb @@ -0,0 +1,25 @@ +

Add A New Task

+ + +<%= form_with model: @todo, class: 'create-task' do |f| %> + +

Fill out the form to create a new task

+ + <%= f.label :name %> + <%= f.text_field :name %> + <%= f.label :completion_date %> + <%= f.text_field :completion_date %> + <%= f.label :description %> + <%= f.text_field :description %> + + <%= f.submit "Save task", class: "task-form__submit-btn" %> + +<% end %> + +<%= link_to "Back to All Tasks", todos_path %> + +<%= render partial: "form", locals: { + form_class: "new-book", + intro_text: "Use this form to create a new book", + action_name: "MAKE! THAT! BOOK!" +} %> \ No newline at end of file diff --git a/app/views/todos/show.html.erb b/app/views/todos/show.html.erb index 7dd603ae0..988595d07 100644 --- a/app/views/todos/show.html.erb +++ b/app/views/todos/show.html.erb @@ -1,5 +1,5 @@

-<%= @task.description %> +<%= @todos.description %>

<%= link_to "back to all tasks", todos_path %> \ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index fb3cf8abc..153d8804d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,9 +1,17 @@ # frozen_string_literal: true Rails.application.routes.draw do - # get "/books", to: 'books#show' - get '/todos/:id', to: 'todos#show', as: 'todos' - get '/todos', to: 'todos#index' - root to: 'todos#index' # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html + + get '/todos', to: 'todos#index', as: 'todos' + + get '/todos/new', to: 'todos#new', as: 'new_task' + + post '/todos', to: 'todos#create' + + patch '/todo/:id/read', to: 'todo#mark_complete', as: 'mark_complete' + + root to: 'todos#index' + + resources :todos end diff --git a/log/development.log b/log/development.log index 841392b76..71d43673d 100644 --- a/log/development.log +++ b/log/development.log @@ -795,3 +795,1682 @@ Processing by TodosController#show as HTML Completed 200 OK in 49ms (Views: 41.4ms | ActiveRecord: 1.3ms) +  (18.4ms) CREATE DATABASE "TaskList_development" ENCODING = 'unicode' + ↳ bin/rails:9 +  (0.9ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' + ↳ bin/rails:9 +Started GET "/todos/1/" for ::1 at 2019-04-10 16:39:44 -0700 +  (2.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/cloudylopez/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.4ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (2.3ms) +Completed 200 OK in 256ms (Views: 227.1ms | ActiveRecord: 5.3ms) + + +Started GET "/todos/2" for ::1 at 2019-04-10 16:39:51 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (0.4ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 22ms (Views: 17.9ms | ActiveRecord: 0.4ms) + + + Todo Load (0.5ms) SELECT "todos".* FROM "todos" +Started GET "/todos/2" for ::1 at 2019-04-10 16:41:26 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (5.7ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 42ms (Views: 30.3ms | ActiveRecord: 5.7ms) + + +Started GET "/" for ::1 at 2019-04-10 16:41:30 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.4ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 23ms (Views: 18.8ms | ActiveRecord: 0.4ms) + + +Started GET "/" for ::1 at 2019-04-10 16:44:17 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (14.9ms) +Completed 500 Internal Server Error in 26ms (ActiveRecord: 3.2ms) + + + +ActionController::UrlGenerationError - No route matches {:action=>"show", :controller=>"todos"}, missing required keys: [:id]: + app/views/todos/index.html.erb:7:in `block in _app_views_todos_index_html_erb__1573735417201956679_70102916848120' + app/views/todos/index.html.erb:4:in `_app_views_todos_index_html_erb__1573735417201956679_70102916848120' + +Started POST "/__better_errors/2e673bf8686242a2/variables" for ::1 at 2019-04-10 16:44:17 -0700 +Started GET "/todos" for ::1 at 2019-04-10 16:44:22 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.4ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (4.6ms) +Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.4ms) + + + +ActionController::UrlGenerationError - No route matches {:action=>"show", :controller=>"todos"}, missing required keys: [:id]: + app/views/todos/index.html.erb:7:in `block in _app_views_todos_index_html_erb__1573735417201956679_70102874083580' + app/views/todos/index.html.erb:4:in `_app_views_todos_index_html_erb__1573735417201956679_70102874083580' + +Started POST "/__better_errors/cb3e857683b29ab1/variables" for ::1 at 2019-04-10 16:44:23 -0700 +Started GET "/todo" for ::1 at 2019-04-10 16:44:27 -0700 + +ActionController::RoutingError (No route matches [GET] "/todo"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/todos/2" for ::1 at 2019-04-10 16:44:34 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 45ms (Views: 35.5ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/1/" for ::1 at 2019-04-10 16:44:37 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.4ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 32ms (Views: 27.5ms | ActiveRecord: 0.4ms) + + +Started GET "/todos/" for ::1 at 2019-04-10 16:44:43 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (5.1ms) +Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.3ms) + + + +ActionController::UrlGenerationError - No route matches {:action=>"show", :controller=>"todos"}, missing required keys: [:id]: + app/views/todos/index.html.erb:7:in `block in _app_views_todos_index_html_erb__1573735417201956679_70102869321140' + app/views/todos/index.html.erb:4:in `_app_views_todos_index_html_erb__1573735417201956679_70102869321140' + +Started POST "/__better_errors/43142c68ba173824/variables" for ::1 at 2019-04-10 16:44:44 -0700 +Started GET "/todos/" for ::1 at 2019-04-10 16:45:35 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (357.3ms) +Completed 500 Internal Server Error in 367ms (ActiveRecord: 0.3ms) + + + +NameError - undefined local variable or method `to' for #<#:0x00007f8436bbb3d8> +Did you mean? t: + app/views/todos/index.html.erb:7:in `block in _app_views_todos_index_html_erb__1573735417201956679_70102915368120' + app/views/todos/index.html.erb:4:in `_app_views_todos_index_html_erb__1573735417201956679_70102915368120' + +Started POST "/__better_errors/4a8660b5a3b70e6e/variables" for ::1 at 2019-04-10 16:45:36 -0700 +Started GET "/todos/" for ::1 at 2019-04-10 16:45:42 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.6ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (461.4ms) +Completed 500 Internal Server Error in 468ms (ActiveRecord: 0.6ms) + + + +NameError - undefined local variable or method `todos' for #<#:0x00007f8436950f08> +Did you mean? todo + @todos: + app/views/todos/index.html.erb:7:in `block in _app_views_todos_index_html_erb__1573735417201956679_70102914077400' + app/views/todos/index.html.erb:4:in `_app_views_todos_index_html_erb__1573735417201956679_70102914077400' + +Started POST "/__better_errors/45f379eadd0ee9b5/variables" for ::1 at 2019-04-10 16:45:43 -0700 +Started GET "/todos/" for ::1 at 2019-04-10 16:46:34 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (323.3ms) +Completed 500 Internal Server Error in 332ms (ActiveRecord: 0.2ms) + + + +NameError - undefined local variable or method `todos' for #<#:0x00007f84389833c0> +Did you mean? todo + @todos: + app/views/todos/index.html.erb:7:in `block in _app_views_todos_index_html_erb__1573735417201956679_70102930955880' + app/views/todos/index.html.erb:4:in `_app_views_todos_index_html_erb__1573735417201956679_70102930955880' + +Started POST "/__better_errors/228568f95593fc1c/variables" for ::1 at 2019-04-10 16:46:35 -0700 +Started GET "/todos/" for ::1 at 2019-04-10 16:46:55 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (337.6ms) +Completed 500 Internal Server Error in 347ms (ActiveRecord: 0.2ms) + + + +NameError - undefined local variable or method `todos' for #<#:0x00007f8437946fe8> +Did you mean? todo + @todos: + app/views/todos/index.html.erb:7:in `block in _app_views_todos_index_html_erb__1573735417201956679_70102922443900' + app/views/todos/index.html.erb:4:in `_app_views_todos_index_html_erb__1573735417201956679_70102922443900' + +Started POST "/__better_errors/133a756ef9f62cd7/variables" for ::1 at 2019-04-10 16:46:56 -0700 +Started GET "/todos/" for ::1 at 2019-04-10 16:47:23 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.4ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (404.9ms) +Completed 500 Internal Server Error in 415ms (ActiveRecord: 0.4ms) + + + +NameError - undefined local variable or method `todos' for #<#:0x00007f84350e74f8> +Did you mean? todo + @todos: + app/views/todos/index.html.erb:7:in `block in _app_views_todos_index_html_erb__1573735417201956679_70102901302260' + app/views/todos/index.html.erb:4:in `_app_views_todos_index_html_erb__1573735417201956679_70102901302260' + +Started POST "/__better_errors/7cf8db2ddba82a37/variables" for ::1 at 2019-04-10 16:47:24 -0700 +Started GET "/todos/" for ::1 at 2019-04-10 16:47:38 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (4.0ms) +Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.3ms) + + + +ActionController::UrlGenerationError - No route matches {:action=>"show", :controller=>"todos"}, missing required keys: [:id]: + app/views/todos/index.html.erb:7:in `block in _app_views_todos_index_html_erb__1573735417201956679_70102922587660' + app/views/todos/index.html.erb:4:in `_app_views_todos_index_html_erb__1573735417201956679_70102922587660' + +Started POST "/__better_errors/716aa59669f68cba/variables" for ::1 at 2019-04-10 16:47:38 -0700 +Started GET "/todos/" for ::1 at 2019-04-10 16:48:56 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (7.6ms) +Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.3ms) + + + +NoMethodError - undefined method `find_by' for #: + app/views/todos/index.html.erb:7:in `block in _app_views_todos_index_html_erb__1573735417201956679_70102904508320' + app/views/todos/index.html.erb:4:in `_app_views_todos_index_html_erb__1573735417201956679_70102904508320' + +Started POST "/__better_errors/014757d713d1e72f/variables" for ::1 at 2019-04-10 16:48:56 -0700 +Started GET "/todos/" for ::1 at 2019-04-10 16:49:21 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (3.4ms) +Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.2ms) + + + +ActionController::UrlGenerationError - No route matches {:action=>"show", :controller=>"todos"}, missing required keys: [:id]: + app/views/todos/index.html.erb:7:in `block in _app_views_todos_index_html_erb__1573735417201956679_70102917084920' + app/views/todos/index.html.erb:4:in `_app_views_todos_index_html_erb__1573735417201956679_70102917084920' + +Started POST "/__better_errors/d6d6b372efe05e16/variables" for ::1 at 2019-04-10 16:49:21 -0700 +Started GET "/todos/" for ::1 at 2019-04-10 16:50:43 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (15.0ms) +Completed 500 Internal Server Error in 27ms (ActiveRecord: 5.3ms) + + + +ActionController::UrlGenerationError - No route matches {:action=>"show", :controller=>"todos"}, missing required keys: [:id]: + app/views/todos/index.html.erb:7:in `block in _app_views_todos_index_html_erb__1573735417201956679_70102922542580' + app/views/todos/index.html.erb:4:in `_app_views_todos_index_html_erb__1573735417201956679_70102922542580' + +Started POST "/__better_errors/3e747ac2c31abc24/variables" for ::1 at 2019-04-10 16:50:44 -0700 +Started POST "/__better_errors/3e747ac2c31abc24/variables" for ::1 at 2019-04-10 16:50:49 -0700 +Started GET "/todos/1/" for ::1 at 2019-04-10 16:50:51 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/controllers/todos_controller.rb:11:in `show' + +Started POST "/__better_errors/029c24bdc60ac7e4/variables" for ::1 at 2019-04-10 16:50:51 -0700 +Started GET "/todos/2" for ::1 at 2019-04-10 16:50:57 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/controllers/todos_controller.rb:11:in `show' + +Started POST "/__better_errors/3ab6d11aa876a768/variables" for ::1 at 2019-04-10 16:50:57 -0700 +Started GET "/todos/2" for ::1 at 2019-04-10 16:51:37 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/controllers/todos_controller.rb:11:in `show' + +Started POST "/__better_errors/6f15f4ce98366cf3/variables" for ::1 at 2019-04-10 16:51:38 -0700 +Started GET "/todos/2" for ::1 at 2019-04-10 16:51:54 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/controllers/todos_controller.rb:11:in `show' + +Started POST "/__better_errors/d78cd23ab1ed52e9/variables" for ::1 at 2019-04-10 16:51:54 -0700 +Started GET "/todos/2" for ::1 at 2019-04-10 16:53:20 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/controllers/todos_controller.rb:11:in `show' + +Started POST "/__better_errors/1f62610354e8ab87/variables" for ::1 at 2019-04-10 16:53:20 -0700 +Started GET "/todos/1/" for ::1 at 2019-04-10 16:53:24 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/controllers/todos_controller.rb:11:in `show' + +Started POST "/__better_errors/143a90e8531a79df/variables" for ::1 at 2019-04-10 16:53:24 -0700 +Started GET "/todos" for ::1 at 2019-04-10 16:53:33 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (1.7ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (23.4ms) +Completed 500 Internal Server Error in 36ms (ActiveRecord: 11.0ms) + + + +ActionController::UrlGenerationError - No route matches {:action=>"show", :controller=>"todos"}, missing required keys: [:id]: + app/views/todos/index.html.erb:7:in `block in _app_views_todos_index_html_erb__1573735417201956679_70102915662700' + app/views/todos/index.html.erb:4:in `_app_views_todos_index_html_erb__1573735417201956679_70102915662700' + +Started GET "/" for ::1 at 2019-04-10 16:53:35 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.6ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (7.1ms) +Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.6ms) + + + +ActionController::UrlGenerationError - No route matches {:action=>"show", :controller=>"todos"}, missing required keys: [:id]: + app/views/todos/index.html.erb:7:in `block in _app_views_todos_index_html_erb__1573735417201956679_70102921922420' + app/views/todos/index.html.erb:4:in `_app_views_todos_index_html_erb__1573735417201956679_70102921922420' + +Started POST "/__better_errors/4ace9220b6a49e47/variables" for ::1 at 2019-04-10 16:53:35 -0700 +  (1.9ms) CREATE DATABASE "TaskList_development" ENCODING = 'unicode' + ↳ bin/rails:9 +  (1.0ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' + ↳ bin/rails:9 +Started GET "/" for ::1 at 2019-04-10 16:54:47 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (3.5ms) +Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.2ms) + + + +ActionController::UrlGenerationError - No route matches {:action=>"show", :controller=>"todos"}, missing required keys: [:id]: + app/views/todos/index.html.erb:7:in `block in _app_views_todos_index_html_erb__1573735417201956679_70102923958140' + app/views/todos/index.html.erb:4:in `_app_views_todos_index_html_erb__1573735417201956679_70102923958140' + +Started POST "/__better_errors/53412a31b939607d/variables" for ::1 at 2019-04-10 16:54:47 -0700 +Started GET "/" for ::1 at 2019-04-10 16:54:58 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.4ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (5.2ms) +Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.4ms) + + + +ActionController::UrlGenerationError - No route matches {:action=>"show", :controller=>"todos"}, missing required keys: [:id]: + app/views/todos/index.html.erb:7:in `block in _app_views_todos_index_html_erb__1573735417201956679_70102930955860' + app/views/todos/index.html.erb:4:in `_app_views_todos_index_html_erb__1573735417201956679_70102930955860' + +Started POST "/__better_errors/cd51c887655a303f/variables" for ::1 at 2019-04-10 16:54:58 -0700 +Started GET "/todos/" for ::1 at 2019-04-10 16:55:13 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.5ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (4.7ms) +Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.5ms) + + + +ActionController::UrlGenerationError - No route matches {:action=>"show", :controller=>"todos"}, missing required keys: [:id]: + app/views/todos/index.html.erb:7:in `block in _app_views_todos_index_html_erb__1573735417201956679_70102915744440' + app/views/todos/index.html.erb:4:in `_app_views_todos_index_html_erb__1573735417201956679_70102915744440' + +Started POST "/__better_errors/04652b5ac4aa037a/variables" for ::1 at 2019-04-10 16:55:13 -0700 +Started GET "/todos/" for ::1 at 2019-04-10 16:55:58 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.4ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 30ms (Views: 26.7ms | ActiveRecord: 0.4ms) + + +Started GET "/todos/" for ::1 at 2019-04-10 16:56:30 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (6.1ms) +Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.3ms) + + + +NoMethodError - undefined method `all' for #: + app/views/todos/index.html.erb:7:in `block in _app_views_todos_index_html_erb__1573735417201956679_70102869762320' + app/views/todos/index.html.erb:4:in `_app_views_todos_index_html_erb__1573735417201956679_70102869762320' + +Started POST "/__better_errors/6b07a8d8191db4b6/variables" for ::1 at 2019-04-10 16:56:30 -0700 +Started GET "/todos/" for ::1 at 2019-04-10 16:57:32 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.4ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (6.9ms) +Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.4ms) + + + +ActionController::UrlGenerationError - No route matches {:action=>"show", :controller=>"todos"}, missing required keys: [:id]: + app/views/todos/index.html.erb:7:in `block in _app_views_todos_index_html_erb__1573735417201956679_70102902725480' + app/views/todos/index.html.erb:4:in `_app_views_todos_index_html_erb__1573735417201956679_70102902725480' + +Started POST "/__better_errors/eceffb98718c66b0/variables" for ::1 at 2019-04-10 16:57:32 -0700 +Started GET "/todos/" for ::1 at 2019-04-10 16:58:33 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 31ms (Views: 28.2ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/" for ::1 at 2019-04-10 16:58:51 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (3.5ms) +Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.2ms) + + + +ActionController::UrlGenerationError - No route matches {:action=>"show", :controller=>"todos"}, missing required keys: [:id]: + app/views/todos/index.html.erb:7:in `block in _app_views_todos_index_html_erb__1573735417201956679_70102869041780' + app/views/todos/index.html.erb:4:in `_app_views_todos_index_html_erb__1573735417201956679_70102869041780' + +Started POST "/__better_errors/359f1578d07b4e4f/variables" for ::1 at 2019-04-10 16:58:51 -0700 +Started GET "/todos/" for ::1 at 2019-04-10 17:01:29 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 26ms (Views: 23.8ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/" for ::1 at 2019-04-10 17:01:54 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.4ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 20ms (Views: 17.7ms | ActiveRecord: 0.4ms) + + +Started GET "/todos" for ::1 at 2019-04-10 17:02:04 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.4ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 26ms (Views: 22.9ms | ActiveRecord: 0.4ms) + + +Started GET "/todos/1/" for ::1 at 2019-04-10 17:02:16 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/controllers/todos_controller.rb:11:in `show' + +Started POST "/__better_errors/71261ead1fabbba9/variables" for ::1 at 2019-04-10 17:02:17 -0700 +Started POST "/__better_errors/71261ead1fabbba9/variables" for ::1 at 2019-04-10 17:02:25 -0700 +Started GET "/todos/1/" for ::1 at 2019-04-10 17:02:37 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/controllers/todos_controller.rb:11:in `show' + +Started POST "/__better_errors/f8114bfc1b12978b/variables" for ::1 at 2019-04-10 17:02:37 -0700 +Started GET "/todos" for ::1 at 2019-04-10 17:02:40 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.6ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 32ms (Views: 28.3ms | ActiveRecord: 0.6ms) + + +Started GET "/todos" for ::1 at 2019-04-10 17:05:10 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (14.6ms) +Completed 200 OK in 50ms (Views: 38.9ms | ActiveRecord: 5.8ms) + + +Started GET "/todos" for ::1 at 2019-04-10 17:05:36 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (2.5ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (20.9ms) +Completed 500 Internal Server Error in 37ms (ActiveRecord: 9.4ms) + + + +ActionController::UrlGenerationError - No route matches {:action=>"show", :controller=>"todos"}, missing required keys: [:id]: + app/views/todos/index.html.erb:6:in `block in _app_views_todos_index_html_erb__1573735417201956679_70102921806940' + app/views/todos/index.html.erb:4:in `_app_views_todos_index_html_erb__1573735417201956679_70102921806940' + +Started POST "/__better_errors/8d2c90fa7bae4b99/variables" for ::1 at 2019-04-10 17:05:36 -0700 +Started GET "/todos" for ::1 at 2019-04-10 17:05:44 -0700 + +ArgumentError - Invalid route name, already in use: 'todos' +You may have defined two routes with the same name using the `:as` option, or you may be overriding a route already defined by a resource with the same naming. For the latter, you can restrict the routes created with `resources` as explained here: +http://guides.rubyonrails.org/routing.html#restricting-the-routes-created: + config/routes.rb:7:in `block in
' + config/routes.rb:3:in `
' + +Started POST "/__better_errors/38ab866ebff356ba/variables" for ::1 at 2019-04-10 17:05:44 -0700 +Started GET "/todos" for ::1 at 2019-04-10 17:05:59 -0700 + +ArgumentError - Invalid route name, already in use: 'todos' +You may have defined two routes with the same name using the `:as` option, or you may be overriding a route already defined by a resource with the same naming. For the latter, you can restrict the routes created with `resources` as explained here: +http://guides.rubyonrails.org/routing.html#restricting-the-routes-created: + config/routes.rb:7:in `block in
' + config/routes.rb:3:in `
' + +Started POST "/__better_errors/c24c6778b03e7861/variables" for ::1 at 2019-04-10 17:05:59 -0700 +Started GET "/todos" for ::1 at 2019-04-10 17:06:03 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (10.9ms) +Completed 200 OK in 38ms (Views: 31.0ms | ActiveRecord: 2.8ms) + + +Started GET "/todos" for ::1 at 2019-04-10 17:07:26 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (14.9ms) +Completed 500 Internal Server Error in 23ms (ActiveRecord: 3.5ms) + + + +ActionController::UrlGenerationError - No route matches {:action=>"show", :controller=>"todos"}, missing required keys: [:id]: + app/views/todos/index.html.erb:6:in `block in _app_views_todos_index_html_erb__1573735417201956679_70102904704680' + app/views/todos/index.html.erb:4:in `_app_views_todos_index_html_erb__1573735417201956679_70102904704680' + +Started POST "/__better_errors/1cf0775a321f367f/variables" for ::1 at 2019-04-10 17:07:26 -0700 +Started GET "/todos" for ::1 at 2019-04-10 17:07:44 -0700 + +ArgumentError - Invalid route name, already in use: 'todos' +You may have defined two routes with the same name using the `:as` option, or you may be overriding a route already defined by a resource with the same naming. For the latter, you can restrict the routes created with `resources` as explained here: +http://guides.rubyonrails.org/routing.html#restricting-the-routes-created: + config/routes.rb:7:in `block in
' + config/routes.rb:3:in `
' + +Started POST "/__better_errors/cf9337a7a87199ee/variables" for ::1 at 2019-04-10 17:07:44 -0700 +Started GET "/todos" for ::1 at 2019-04-10 17:08:07 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (14.0ms) +Completed 500 Internal Server Error in 25ms (ActiveRecord: 2.8ms) + + + +ActionController::UrlGenerationError - No route matches {:action=>"show", :controller=>"todos"}, missing required keys: [:id]: + app/views/todos/index.html.erb:6:in `block in _app_views_todos_index_html_erb__1573735417201956679_70102904904160' + app/views/todos/index.html.erb:4:in `_app_views_todos_index_html_erb__1573735417201956679_70102904904160' + +Started POST "/__better_errors/24681ee043962a23/variables" for ::1 at 2019-04-10 17:08:08 -0700 +Started GET "/todos" for ::1 at 2019-04-10 17:08:16 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (14.6ms) +Completed 500 Internal Server Error in 22ms (ActiveRecord: 3.2ms) + + + +ActionController::UrlGenerationError - No route matches {:action=>"show", :controller=>"todos"}, missing required keys: [:id]: + app/views/todos/index.html.erb:6:in `block in _app_views_todos_index_html_erb__1573735417201956679_70102922796840' + app/views/todos/index.html.erb:4:in `_app_views_todos_index_html_erb__1573735417201956679_70102922796840' + +Started POST "/__better_errors/49b4fbce95a6cf9c/variables" for ::1 at 2019-04-10 17:08:16 -0700 +Started GET "/todos" for ::1 at 2019-04-10 17:08:48 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.5ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (12.1ms) +Completed 200 OK in 44ms (Views: 36.2ms | ActiveRecord: 3.6ms) + + +Started GET "/todos" for ::1 at 2019-04-10 17:08:55 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 39ms (Views: 35.5ms | ActiveRecord: 0.3ms) + + +Started GET "/todos" for ::1 at 2019-04-10 17:08:56 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (1.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 40ms (Views: 35.3ms | ActiveRecord: 1.3ms) + + +Started GET "/todos" for ::1 at 2019-04-10 17:09:16 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (11.7ms) +Completed 500 Internal Server Error in 20ms (ActiveRecord: 2.8ms) + + + +ActionController::UrlGenerationError - No route matches {:action=>"show", :controller=>"todos"}, missing required keys: [:id]: + app/views/todos/index.html.erb:6:in `block in _app_views_todos_index_html_erb__1573735417201956679_70102869533760' + app/views/todos/index.html.erb:4:in `_app_views_todos_index_html_erb__1573735417201956679_70102869533760' + +Started POST "/__better_errors/480f3374eaa436ea/variables" for ::1 at 2019-04-10 17:09:17 -0700 +Started GET "/todos" for ::1 at 2019-04-10 17:09:51 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.8ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (18.0ms) +Completed 200 OK in 43ms (Views: 28.7ms | ActiveRecord: 10.1ms) + + +Started GET "/todos" for ::1 at 2019-04-10 17:09:55 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (1.4ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 34ms (Views: 29.0ms | ActiveRecord: 1.4ms) + + +Started GET "/todos" for ::1 at 2019-04-10 17:10:33 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.4ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 24ms (Views: 21.6ms | ActiveRecord: 0.4ms) + + +Started GET "/todos" for ::1 at 2019-04-10 17:10:49 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (1.7ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (5.1ms) +Completed 200 OK in 39ms (Views: 33.8ms | ActiveRecord: 1.7ms) + + +Started GET "/todos/1/" for ::1 at 2019-04-10 17:11:01 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/controllers/todos_controller.rb:11:in `show' + +Started POST "/__better_errors/e3549ffdf1556c20/variables" for ::1 at 2019-04-10 17:11:02 -0700 +Started GET "/todos" for ::1 at 2019-04-10 17:11:24 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 35ms (Views: 32.1ms | ActiveRecord: 0.3ms) + + +Started GET "/todos" for ::1 at 2019-04-10 17:11:35 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (2.0ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 40ms (Views: 34.2ms | ActiveRecord: 2.0ms) + + +Started GET "/todos" for ::1 at 2019-04-10 17:12:11 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.4ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 63ms (Views: 60.4ms | ActiveRecord: 0.4ms) + + +Started GET "/todos.1" for ::1 at 2019-04-10 17:12:12 -0700 +Processing by TodosController#index as + Rendering todos/index.html.erb within layouts/application + Todo Load (1.0ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 73ms (Views: 44.0ms | ActiveRecord: 1.0ms) + + +Started GET "/todos.1" for ::1 at 2019-04-10 17:13:07 -0700 +Processing by TodosController#index as + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (10.5ms) +Completed 200 OK in 79ms (Views: 52.5ms | ActiveRecord: 3.3ms) + + +Started GET "/todos/1" for ::1 at 2019-04-10 17:13:10 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/controllers/todos_controller.rb:11:in `show' + +Started POST "/__better_errors/2f783cb833ff2bbb/variables" for ::1 at 2019-04-10 17:13:10 -0700 +Started GET "/todos/1" for ::1 at 2019-04-10 17:14:32 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} +Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/controllers/todos_controller.rb:11:in `show' + +Started POST "/__better_errors/cc19903b07373004/variables" for ::1 at 2019-04-10 17:14:32 -0700 +Started GET "/todos/1" for ::1 at 2019-04-10 17:14:58 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 45ms (Views: 30.9ms | ActiveRecord: 4.2ms) + + +Started GET "/todos/1" for ::1 at 2019-04-10 17:15:04 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (2.1ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 31ms (Views: 25.5ms | ActiveRecord: 2.1ms) + + +Started GET "/todos/1" for ::1 at 2019-04-10 17:15:05 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.8ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 36ms (Views: 30.9ms | ActiveRecord: 0.8ms) + + +Started GET "/todos/" for ::1 at 2019-04-10 17:15:10 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 26ms (Views: 22.3ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/1" for ::1 at 2019-04-10 17:15:12 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.4ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 39ms (Views: 34.2ms | ActiveRecord: 0.4ms) + + +Started GET "/todos/2" for ::1 at 2019-04-10 17:15:23 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 44ms (Views: 38.4ms | ActiveRecord: 0.2ms) + + +Started GET "/todos/3" for ::1 at 2019-04-10 17:15:26 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"3"} + Todo Load (3.8ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 50ms (Views: 42.6ms | ActiveRecord: 3.8ms) + + +Started GET "/todos/" for ::1 at 2019-04-10 17:16:36 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 28ms (Views: 24.2ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/3" for ::1 at 2019-04-10 17:16:38 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"3"} + Todo Load (0.9ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 40ms (Views: 34.3ms | ActiveRecord: 0.9ms) + + +  (1.8ms) CREATE DATABASE "TaskList_development" ENCODING = 'unicode' + ↳ bin/rails:9 +  (0.9ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' + ↳ bin/rails:9 +Started GET "/todos/3" for ::1 at 2019-04-12 14:30:02 -0700 +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/cloudylopez/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TodosController#show as HTML + Parameters: {"id"=>"3"} + Todo Load (6.5ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 250ms (Views: 212.6ms | ActiveRecord: 12.6ms) + + +Started GET "/todos/3" for ::1 at 2019-04-12 14:30:08 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"3"} + Todo Load (1.8ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 40ms (Views: 34.9ms | ActiveRecord: 1.8ms) + + +Started GET "/todos/3" for ::1 at 2019-04-12 14:30:10 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"3"} + Todo Load (3.6ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 43ms (Views: 35.7ms | ActiveRecord: 3.6ms) + + +Started GET "/todos/" for ::1 at 2019-04-12 14:30:14 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 29ms (Views: 24.5ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/1" for ::1 at 2019-04-12 14:31:18 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.5ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 26ms (Views: 20.7ms | ActiveRecord: 0.5ms) + + +Started GET "/todos/2" for ::1 at 2019-04-12 14:31:22 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (1.6ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 28ms (Views: 22.5ms | ActiveRecord: 1.6ms) + + +Started GET "/todos/2" for ::1 at 2019-04-12 14:31:26 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (1.7ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 37ms (Views: 31.4ms | ActiveRecord: 1.7ms) + + +Started GET "/todos/3" for ::1 at 2019-04-12 14:33:26 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"3"} + Todo Load (0.4ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 35ms (Views: 29.7ms | ActiveRecord: 0.4ms) + + +Started GET "/todos/" for ::1 at 2019-04-12 14:33:30 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.4ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 26ms (Views: 22.5ms | ActiveRecord: 0.4ms) + + +Started GET "/todos/2" for ::1 at 2019-04-12 14:33:33 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 45ms (Views: 38.9ms | ActiveRecord: 0.2ms) + + +Started GET "/todos/2" for ::1 at 2019-04-12 14:33:36 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (1.1ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 35ms (Views: 29.8ms | ActiveRecord: 1.1ms) + + +Started GET "/todos/2" for ::1 at 2019-04-12 14:33:36 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (3.1ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 54ms (Views: 46.8ms | ActiveRecord: 3.1ms) + + +Started GET "/todos/" for ::1 at 2019-04-12 14:33:40 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.5ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 26ms (Views: 23.1ms | ActiveRecord: 0.5ms) + + +Started GET "/todos/3" for ::1 at 2019-04-12 14:33:42 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"3"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 38ms (Views: 32.2ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/3" for ::1 at 2019-04-12 14:33:44 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"3"} + Todo Load (2.5ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 36ms (Views: 28.9ms | ActiveRecord: 2.5ms) + + +Started GET "/todos/" for ::1 at 2019-04-12 14:33:47 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.4ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 29ms (Views: 26.3ms | ActiveRecord: 0.4ms) + + +Started GET "/todos/2" for ::1 at 2019-04-12 14:43:42 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (0.7ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (2.3ms) +Completed 200 OK in 64ms (Views: 49.1ms | ActiveRecord: 1.1ms) + + +Started GET "/todos" for ::1 at 2019-04-12 14:43:43 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (3.8ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (8.8ms) +Completed 200 OK in 52ms (Views: 43.2ms | ActiveRecord: 3.8ms) + + +Started GET "/todos/2" for ::1 at 2019-04-12 14:46:38 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 50ms (Views: 43.2ms | ActiveRecord: 0.3ms) + + +Started GET "/todos" for ::1 at 2019-04-12 14:46:40 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (10.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (12.6ms) +Completed 200 OK in 67ms (Views: 51.0ms | ActiveRecord: 10.2ms) + + +Started GET "/todos/3" for ::1 at 2019-04-12 14:46:41 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"3"} + Todo Load (3.7ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 47ms (Views: 40.0ms | ActiveRecord: 3.7ms) + + +Started GET "/todos" for ::1 at 2019-04-12 14:46:42 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (13.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (15.6ms) +Completed 200 OK in 58ms (Views: 40.5ms | ActiveRecord: 13.2ms) + + +Started GET "/todos" for ::1 at 2019-04-12 14:51:25 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 45ms (Views: 40.4ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/2" for ::1 at 2019-04-12 14:51:30 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (4.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (2.0ms) +Completed 200 OK in 74ms (Views: 64.4ms | ActiveRecord: 4.2ms) + + +Started GET "/todos" for ::1 at 2019-04-12 14:51:32 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (16.5ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (19.4ms) +Completed 200 OK in 53ms (Views: 32.9ms | ActiveRecord: 16.5ms) + + +Started GET "/todos/1" for ::1 at 2019-04-12 14:51:33 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (3.8ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 40ms (Views: 32.1ms | ActiveRecord: 3.8ms) + + +Started GET "/todos" for ::1 at 2019-04-12 14:51:35 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (32.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (34.8ms) +Completed 200 OK in 70ms (Views: 33.5ms | ActiveRecord: 32.3ms) + + +Started GET "/todos/3" for ::1 at 2019-04-12 14:51:36 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"3"} + Todo Load (5.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (3.0ms) +Completed 200 OK in 46ms (Views: 37.3ms | ActiveRecord: 5.3ms) + + +Started GET "/todos" for ::1 at 2019-04-12 14:51:37 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (4.5ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (6.3ms) +Completed 200 OK in 43ms (Views: 35.8ms | ActiveRecord: 4.5ms) + + +Started GET "/todos/3" for ::1 at 2019-04-12 14:56:10 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"3"} + Todo Load (0.1ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 55ms (Views: 29.2ms | ActiveRecord: 13.4ms) + + +Started GET "/todos" for ::1 at 2019-04-12 14:56:11 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (9.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (10.9ms) +Completed 200 OK in 45ms (Views: 32.2ms | ActiveRecord: 9.2ms) + + +Started GET "/todos" for ::1 at 2019-04-12 14:59:15 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.5ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (22.1ms) +Completed 200 OK in 100ms (Views: 80.4ms | ActiveRecord: 5.5ms) + + +Started GET "/todos/1" for ::1 at 2019-04-12 14:59:17 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (1.7ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 +Completed 500 Internal Server Error in 6ms (ActiveRecord: 1.7ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/controllers/todos_controller.rb:12:in `show' + +Started POST "/__better_errors/40a9e4b7706f4462/variables" for ::1 at 2019-04-12 14:59:18 -0700 +Started GET "/todos" for ::1 at 2019-04-12 14:59:37 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.7ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 39ms (Views: 36.1ms | ActiveRecord: 0.7ms) + + +Started GET "/todos/2" for ::1 at 2019-04-12 14:59:38 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (0.8ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 +Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.8ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/controllers/todos_controller.rb:12:in `show' + +Started POST "/__better_errors/3005cd95bd33501b/variables" for ::1 at 2019-04-12 14:59:38 -0700 +Started GET "/todos/2" for ::1 at 2019-04-12 15:00:26 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 +Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/controllers/todos_controller.rb:12:in `show' + +Started POST "/__better_errors/5394f8395e6eb06c/variables" for ::1 at 2019-04-12 15:00:26 -0700 +Started GET "/todos" for ::1 at 2019-04-12 15:00:30 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 22ms (Views: 19.0ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/3" for ::1 at 2019-04-12 15:00:36 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"3"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 +Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.3ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/controllers/todos_controller.rb:12:in `show' + +Started POST "/__better_errors/661dbb88e233ebab/variables" for ::1 at 2019-04-12 15:00:36 -0700 +Started GET "/todos" for ::1 at 2019-04-12 15:00:38 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 36ms (Views: 25.5ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/2" for ::1 at 2019-04-12 15:00:39 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (1.4ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 +Completed 500 Internal Server Error in 6ms (ActiveRecord: 1.4ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/controllers/todos_controller.rb:12:in `show' + +Started POST "/__better_errors/222dfcafb1df153b/variables" for ::1 at 2019-04-12 15:00:39 -0700 +Started GET "/todos" for ::1 at 2019-04-12 15:00:41 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.7ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 33ms (Views: 30.0ms | ActiveRecord: 0.7ms) + + +Started GET "/todos/1" for ::1 at 2019-04-12 15:00:42 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (3.6ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 +Completed 500 Internal Server Error in 7ms (ActiveRecord: 3.6ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/controllers/todos_controller.rb:12:in `show' + +Started POST "/__better_errors/355cf5277659e681/variables" for ::1 at 2019-04-12 15:00:42 -0700 +Started GET "/todos" for ::1 at 2019-04-12 15:00:43 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 37ms (Views: 33.7ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/1" for ::1 at 2019-04-12 15:00:47 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (1.4ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 +Completed 500 Internal Server Error in 7ms (ActiveRecord: 1.4ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/controllers/todos_controller.rb:12:in `show' + +Started POST "/__better_errors/e257d11681748aea/variables" for ::1 at 2019-04-12 15:00:47 -0700 +Started GET "/todos/1" for ::1 at 2019-04-12 15:01:14 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.1ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 +Completed 500 Internal Server Error in 11ms (ActiveRecord: 2.7ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/controllers/todos_controller.rb:12:in `show' + +Started POST "/__better_errors/600c3261c2c02f5b/variables" for ::1 at 2019-04-12 15:01:14 -0700 +Started GET "/todos/2" for ::1 at 2019-04-12 15:01:17 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 +Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.3ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/controllers/todos_controller.rb:12:in `show' + +Started POST "/__better_errors/a9c7ec2882452ca6/variables" for ::1 at 2019-04-12 15:01:18 -0700 +Started GET "/todos/3" for ::1 at 2019-04-12 15:01:21 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"3"} + Todo Load (1.0ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 +Completed 500 Internal Server Error in 5ms (ActiveRecord: 1.0ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/controllers/todos_controller.rb:12:in `show' + +Started POST "/__better_errors/de54db5277edbfb8/variables" for ::1 at 2019-04-12 15:01:21 -0700 +Started GET "/todos/" for ::1 at 2019-04-12 15:01:24 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.8ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 36ms (Views: 31.4ms | ActiveRecord: 0.8ms) + + +Started GET "/todos/" for ::1 at 2019-04-12 15:02:55 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (16.0ms) +Completed 200 OK in 51ms (Views: 41.6ms | ActiveRecord: 3.8ms) + + +Started GET "/todos/1" for ::1 at 2019-04-12 15:02:57 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 +Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.2ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/controllers/todos_controller.rb:12:in `show' + +Started POST "/__better_errors/c0b6f91f94f87202/variables" for ::1 at 2019-04-12 15:02:57 -0700 +Started GET "/todos/" for ::1 at 2019-04-12 15:02:58 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (2.8ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 35ms (Views: 30.0ms | ActiveRecord: 2.8ms) + + +Started GET "/todos/2" for ::1 at 2019-04-12 15:02:59 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (1.6ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 +Completed 500 Internal Server Error in 6ms (ActiveRecord: 1.6ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/controllers/todos_controller.rb:12:in `show' + +Started POST "/__better_errors/5160464dd7a48c43/variables" for ::1 at 2019-04-12 15:02:59 -0700 +Started GET "/todos/" for ::1 at 2019-04-12 15:03:00 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (1.1ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 33ms (Views: 28.3ms | ActiveRecord: 1.1ms) + + +Started GET "/todos/3" for ::1 at 2019-04-12 15:03:02 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"3"} + Todo Load (1.8ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 +Completed 500 Internal Server Error in 7ms (ActiveRecord: 1.8ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/controllers/todos_controller.rb:12:in `show' + +Started POST "/__better_errors/ea52a26b310654af/variables" for ::1 at 2019-04-12 15:03:02 -0700 +Started GET "/todos/" for ::1 at 2019-04-12 15:03:04 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (10.0ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (19.2ms) +Completed 200 OK in 50ms (Views: 37.0ms | ActiveRecord: 10.0ms) + + +Started GET "/todos/2" for ::1 at 2019-04-12 15:04:08 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (2.9ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 +Completed 500 Internal Server Error in 6ms (ActiveRecord: 2.9ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/controllers/todos_controller.rb:12:in `show' + +Started POST "/__better_errors/d2c46567cfd6766d/variables" for ::1 at 2019-04-12 15:04:08 -0700 +Started GET "/todos/3" for ::1 at 2019-04-12 15:04:12 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"3"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 +Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.3ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/controllers/todos_controller.rb:12:in `show' + +Started POST "/__better_errors/2ff632dbbc31b59f/variables" for ::1 at 2019-04-12 15:04:13 -0700 +Started GET "/todos/" for ::1 at 2019-04-12 15:04:19 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.7ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 45ms (Views: 40.9ms | ActiveRecord: 0.7ms) + + +Started GET "/todos/1" for ::1 at 2019-04-12 15:05:03 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.1ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (14.3ms) +Completed 500 Internal Server Error in 37ms (ActiveRecord: 3.0ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__3896061475842404156_70167569084180' + +Started POST "/__better_errors/aeb8808d893b81b3/variables" for ::1 at 2019-04-12 15:05:03 -0700 +Started GET "/todos/" for ::1 at 2019-04-12 15:05:06 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.4ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 37ms (Views: 33.5ms | ActiveRecord: 0.4ms) + + +Started GET "/todos/" for ::1 at 2019-04-12 15:05:07 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 19ms (Views: 15.9ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/2" for ::1 at 2019-04-12 15:05:09 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (6.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (7.3ms) +Completed 500 Internal Server Error in 25ms (ActiveRecord: 6.2ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__3896061475842404156_70167523407960' + +Started POST "/__better_errors/8fb2f5fb06a3af28/variables" for ::1 at 2019-04-12 15:05:09 -0700 +Started GET "/todos/" for ::1 at 2019-04-12 15:05:11 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 26ms (Views: 23.4ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/1" for ::1 at 2019-04-12 15:05:12 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (2.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (9.9ms) +Completed 500 Internal Server Error in 22ms (ActiveRecord: 2.3ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__3896061475842404156_70167547391340' + +Started POST "/__better_errors/0a60d5f5e93ee2b2/variables" for ::1 at 2019-04-12 15:05:12 -0700 +Started GET "/todos/" for ::1 at 2019-04-12 15:05:16 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 36ms (Views: 33.2ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/2" for ::1 at 2019-04-12 15:05:17 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (8.5ms) +Completed 500 Internal Server Error in 20ms (ActiveRecord: 0.2ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__3896061475842404156_70167525443200' + +Started POST "/__better_errors/cf43d6a255ff7df9/variables" for ::1 at 2019-04-12 15:05:17 -0700 +Started GET "/todos/" for ::1 at 2019-04-12 15:09:52 -0700 +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/cloudylopez/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.5ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (16.5ms) +Completed 200 OK in 247ms (Views: 230.3ms | ActiveRecord: 4.6ms) + + +Started GET "/todos/1" for ::1 at 2019-04-12 15:10:19 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (3.5ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (7.0ms) +Completed 500 Internal Server Error in 43ms (ActiveRecord: 5.5ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__2279533379925881182_70227093513980' + +Started POST "/__better_errors/fec6754107049a3a/variables" for ::1 at 2019-04-12 15:10:19 -0700 +Started GET "/todos/1" for ::1 at 2019-04-12 15:11:17 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.6ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 25ms (Views: 20.5ms | ActiveRecord: 0.6ms) + + +Started GET "/todos" for ::1 at 2019-04-12 15:11:19 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (1.5ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 43ms (Views: 39.4ms | ActiveRecord: 1.5ms) + + +Started GET "/todos/2" for ::1 at 2019-04-12 15:11:20 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (0.4ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 36ms (Views: 29.7ms | ActiveRecord: 0.4ms) + + +Started GET "/todos" for ::1 at 2019-04-12 15:11:29 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (2.7ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 45ms (Views: 38.5ms | ActiveRecord: 2.7ms) + + +Started GET "/todos/3" for ::1 at 2019-04-12 15:11:30 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"3"} + Todo Load (3.9ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 41ms (Views: 33.5ms | ActiveRecord: 3.9ms) + + From 329a83d0d9cb3602785119a403d2d14ba64f1636 Mon Sep 17 00:00:00 2001 From: Cloudy Lopez Date: Fri, 12 Apr 2019 15:21:45 -0700 Subject: [PATCH 4/7] updated controller and index --- app/controllers/todos_controller.rb | 2 +- app/views/todos/index.html.erb | 2 + app/views/todos/new.html.erb | 6 -- log/development.log | 115 ++++++++++++++++++++++++++++ 4 files changed, 118 insertions(+), 7 deletions(-) diff --git a/app/controllers/todos_controller.rb b/app/controllers/todos_controller.rb index 884e5224d..ee67d2334 100644 --- a/app/controllers/todos_controller.rb +++ b/app/controllers/todos_controller.rb @@ -13,6 +13,6 @@ def show end def new - @todos = Task.new + @todos = Todo.new end end diff --git a/app/views/todos/index.html.erb b/app/views/todos/index.html.erb index 87db45ab2..e1a1c56b6 100644 --- a/app/views/todos/index.html.erb +++ b/app/views/todos/index.html.erb @@ -6,4 +6,6 @@ <%= link_to todo.name, todo_path(todo.id) %> <% end %> + + <%= link_to "Create a Task", new_task_path %> \ No newline at end of file diff --git a/app/views/todos/new.html.erb b/app/views/todos/new.html.erb index dcc38e291..d473d1233 100644 --- a/app/views/todos/new.html.erb +++ b/app/views/todos/new.html.erb @@ -17,9 +17,3 @@ <% end %> <%= link_to "Back to All Tasks", todos_path %> - -<%= render partial: "form", locals: { - form_class: "new-book", - intro_text: "Use this form to create a new book", - action_name: "MAKE! THAT! BOOK!" -} %> \ No newline at end of file diff --git a/log/development.log b/log/development.log index 71d43673d..e82cf4547 100644 --- a/log/development.log +++ b/log/development.log @@ -2474,3 +2474,118 @@ Processing by TodosController#show as HTML Completed 200 OK in 41ms (Views: 33.5ms | ActiveRecord: 3.9ms) +Started GET "/todos/3" for ::1 at 2019-04-12 15:15:52 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"3"} + Todo Load (1.6ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 28ms (Views: 22.5ms | ActiveRecord: 1.6ms) + + +Started GET "/todos" for ::1 at 2019-04-12 15:15:54 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (3.6ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (5.3ms) +Completed 200 OK in 35ms (Views: 28.7ms | ActiveRecord: 3.6ms) + + +Started GET "/todos/2" for ::1 at 2019-04-12 15:15:56 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (3.4ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 35ms (Views: 28.4ms | ActiveRecord: 3.4ms) + + +Started GET "/todos" for ::1 at 2019-04-12 15:16:00 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (15.9ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (17.5ms) +Completed 200 OK in 57ms (Views: 37.8ms | ActiveRecord: 15.9ms) + + +Started GET "/todos/1" for ::1 at 2019-04-12 15:16:01 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (2.8ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 41ms (Views: 33.9ms | ActiveRecord: 2.8ms) + + +Started GET "/todos" for ::1 at 2019-04-12 15:16:03 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (4.0ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (5.6ms) +Completed 200 OK in 48ms (Views: 41.9ms | ActiveRecord: 4.0ms) + + +Started GET "/todos/3" for ::1 at 2019-04-12 15:16:06 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"3"} + Todo Load (2.6ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 48ms (Views: 40.9ms | ActiveRecord: 2.6ms) + + +Started GET "/todos" for ::1 at 2019-04-12 15:16:07 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.4ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 44ms (Views: 40.0ms | ActiveRecord: 0.4ms) + + +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Started GET "/todos" for ::1 at 2019-04-12 15:19:10 -0700 +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/cloudylopez/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (11.7ms) +Completed 200 OK in 41ms (Views: 32.4ms | ActiveRecord: 3.0ms) + + +Started GET "/todos" for ::1 at 2019-04-12 15:20:39 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 34ms (Views: 30.3ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/new" for ::1 at 2019-04-12 15:20:41 -0700 +Processing by TodosController#new as HTML +Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.0ms) + + + +NameError - uninitialized constant TodosController::Task: + app/controllers/todos_controller.rb:16:in `new' + +Started POST "/__better_errors/c0dc14176ead800d/variables" for ::1 at 2019-04-12 15:20:42 -0700 +Started GET "/todos/new" for ::1 at 2019-04-12 15:21:05 -0700 +Processing by TodosController#new as HTML + Rendering todos/new.html.erb within layouts/application + Rendered todos/new.html.erb within layouts/application (25.2ms) +Completed 200 OK in 64ms (Views: 48.1ms | ActiveRecord: 4.9ms) + + From 18988c1e1d3783948fbad99bb3be5f398afe0229 Mon Sep 17 00:00:00 2001 From: Cloudy Lopez Date: Fri, 12 Apr 2019 15:52:38 -0700 Subject: [PATCH 5/7] learned how to spell and completed the form --- app/controllers/todos_controller.rb | 15 +- config/routes.rb | 6 +- log/development.log | 974 ++++++++++++++++++++++++++++ 3 files changed, 990 insertions(+), 5 deletions(-) diff --git a/app/controllers/todos_controller.rb b/app/controllers/todos_controller.rb index ee67d2334..af01a52cb 100644 --- a/app/controllers/todos_controller.rb +++ b/app/controllers/todos_controller.rb @@ -13,6 +13,19 @@ def show end def new - @todos = Todo.new + @todo = Todo.new + end + + def create + @todo = Todo.new( + name: params['todo']['name'], + completion_date: params['todo']['completion_date'], + description: params['todo']['description'] + ) + if @todo.save + redirect_to todos_path + else + render :new + end end end diff --git a/config/routes.rb b/config/routes.rb index 153d8804d..da9c45024 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -6,12 +6,10 @@ get '/todos', to: 'todos#index', as: 'todos' get '/todos/new', to: 'todos#new', as: 'new_task' - post '/todos', to: 'todos#create' - patch '/todo/:id/read', to: 'todo#mark_complete', as: 'mark_complete' + get '/todos/:id', to: 'todos#show', as: 'todo' + # patch '/todo/:id/read', to: 'todo#mark_complete', as: 'mark_complete' root to: 'todos#index' - - resources :todos end diff --git a/log/development.log b/log/development.log index e82cf4547..2f16e59c7 100644 --- a/log/development.log +++ b/log/development.log @@ -2589,3 +2589,977 @@ Processing by TodosController#new as HTML Completed 200 OK in 64ms (Views: 48.1ms | ActiveRecord: 4.9ms) +Started GET "/todos/new" for ::1 at 2019-04-12 15:27:32 -0700 + +SyntaxError - syntax error, unexpected tLABEL + name: params["task"]["name"] + ^~~~~ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:22: syntax error, unexpected ':', expecting keyword_end + completion_date: params["task"]["completion"] + ^ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:23: syntax error, unexpected ':', expecting keyword_end + descripton: params["task"]["description"] + ^ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:24: syntax error, unexpected ')', expecting keyword_end + ) + ^: + app/controllers/todos_controller.rb:21:in `' + +Started POST "/__better_errors/b7cfb2cf69a528e0/variables" for ::1 at 2019-04-12 15:27:32 -0700 +Started GET "/todos/new" for ::1 at 2019-04-12 15:27:48 -0700 + +SyntaxError - syntax error, unexpected tLABEL + name: params["task"]["name"] + ^~~~~ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:22: syntax error, unexpected ':', expecting keyword_end + completion_date: params["task"]["completion"] + ^ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:23: syntax error, unexpected ':', expecting keyword_end + descripton: params["task"]["description"] + ^ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:24: syntax error, unexpected ')', expecting keyword_end + ) + ^: + app/controllers/todos_controller.rb:21:in `' + +Started POST "/__better_errors/af743f3e623cb3fb/variables" for ::1 at 2019-04-12 15:27:48 -0700 +Started GET "/todos/new" for ::1 at 2019-04-12 15:27:55 -0700 + +SyntaxError - syntax error, unexpected tLABEL + name: params["task"]["name"] + ^~~~~ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:22: syntax error, unexpected ':', expecting keyword_end + completion_date: params["task"]["completion"] + ^ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:23: syntax error, unexpected ':', expecting keyword_end + descripton: params["task"]["description"] + ^ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:24: syntax error, unexpected ')', expecting keyword_end + ) + ^: + app/controllers/todos_controller.rb:21:in `' + +Started POST "/__better_errors/de7ce36eb1f7538b/variables" for ::1 at 2019-04-12 15:27:55 -0700 +Started GET "/todos/" for ::1 at 2019-04-12 15:28:00 -0700 + +SyntaxError - syntax error, unexpected tLABEL + name: params["task"]["name"] + ^~~~~ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:22: syntax error, unexpected ':', expecting keyword_end + completion_date: params["task"]["completion"] + ^ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:23: syntax error, unexpected ':', expecting keyword_end + descripton: params["task"]["description"] + ^ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:24: syntax error, unexpected ')', expecting keyword_end + ) + ^: + app/controllers/todos_controller.rb:21:in `' + +Started POST "/__better_errors/8230a183b7a8b31e/variables" for ::1 at 2019-04-12 15:28:00 -0700 +Started GET "/todos/" for ::1 at 2019-04-12 15:29:02 -0700 + +SyntaxError - syntax error, unexpected tLABEL + name: params["todo"]["name"], + ^~~~~ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:22: syntax error, unexpected tLABEL, expecting '=' + completion_date: params["todo"]["completion"], + ^~~~~~~~~~~~~~~~ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:23: syntax error, unexpected tLABEL, expecting '=' + descripton: params["todo"]["description"] + ^~~~~~~~~~~ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:24: syntax error, unexpected ')', expecting keyword_end + ) + ^: + app/controllers/todos_controller.rb:21:in `' + +Started POST "/__better_errors/cef9fdc006b74634/variables" for ::1 at 2019-04-12 15:29:02 -0700 +Started GET "/todos/" for ::1 at 2019-04-12 15:29:06 -0700 + +SyntaxError - syntax error, unexpected tLABEL + name: params["todo"]["name"], + ^~~~~ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:22: syntax error, unexpected tLABEL, expecting '=' + completion_date: params["todo"]["completion"], + ^~~~~~~~~~~~~~~~ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:23: syntax error, unexpected tLABEL, expecting '=' + descripton: params["todo"]["description"] + ^~~~~~~~~~~ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:24: syntax error, unexpected ')', expecting keyword_end + ) + ^: + app/controllers/todos_controller.rb:21:in `' + +Started POST "/__better_errors/84f1e179b558673a/variables" for ::1 at 2019-04-12 15:29:07 -0700 +Started GET "/todos/" for ::1 at 2019-04-12 15:29:16 -0700 + +SyntaxError - syntax error, unexpected tLABEL + name: params["todo"]["name"], + ^~~~~ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:22: syntax error, unexpected tLABEL, expecting '=' + completion_date: params["todo"]["completion"], + ^~~~~~~~~~~~~~~~ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:23: syntax error, unexpected tLABEL, expecting '=' + descripton: params["todo"]["description"] + ^~~~~~~~~~~ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:24: syntax error, unexpected ')', expecting keyword_end + ) + ^: + app/controllers/todos_controller.rb:21:in `' + +Started POST "/__better_errors/a15df04fea5187e3/variables" for ::1 at 2019-04-12 15:29:16 -0700 +Started GET "/todos/" for ::1 at 2019-04-12 15:29:55 -0700 + +SyntaxError - syntax error, unexpected tLABEL + name: params["todo"]["name"], + ^~~~~ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:22: syntax error, unexpected tLABEL, expecting '=' + completion_date: params["todo"]["completion"], + ^~~~~~~~~~~~~~~~ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:23: syntax error, unexpected tLABEL, expecting '=' + descripton: params["todo"]["description"] + ^~~~~~~~~~~ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:24: syntax error, unexpected ')', expecting keyword_end + ) + ^: + app/controllers/todos_controller.rb:21:in `' + +Started POST "/__better_errors/60ae93e42b8aaa17/variables" for ::1 at 2019-04-12 15:29:56 -0700 +Started GET "/todos/" for ::1 at 2019-04-12 15:30:00 -0700 + +SyntaxError - syntax error, unexpected tLABEL + name: params["todo"]["name"], + ^~~~~ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:22: syntax error, unexpected tLABEL, expecting '=' + completion_date: params["todo"]["completion"], + ^~~~~~~~~~~~~~~~ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:23: syntax error, unexpected tLABEL, expecting '=' + descripton: params["todo"]["description"] + ^~~~~~~~~~~ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:24: syntax error, unexpected ')', expecting keyword_end + ) + ^: + app/controllers/todos_controller.rb:21:in `' + +Started POST "/__better_errors/f236e8876960bb27/variables" for ::1 at 2019-04-12 15:30:00 -0700 +Started GET "/todos/" for ::1 at 2019-04-12 15:31:12 -0700 + +SyntaxError - syntax error, unexpected tLABEL + name: params["todo"]["name"], + ^~~~~ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:22: syntax error, unexpected tLABEL, expecting '=' + completion_date: params["todo"]["completion_d... + ^~~~~~~~~~~~~~~~ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:23: syntax error, unexpected tLABEL, expecting '=' + descripton: params["todo"]["description"] + ^~~~~~~~~~~ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:24: syntax error, unexpected ')', expecting keyword_end + ) + ^: + app/controllers/todos_controller.rb:21:in `' + +Started POST "/__better_errors/315ee64b35ddfead/variables" for ::1 at 2019-04-12 15:31:12 -0700 +Started GET "/todos/" for ::1 at 2019-04-12 15:31:36 -0700 + +SyntaxError - syntax error, unexpected tLABEL + name: params[:todo][:name], + ^~~~~ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:22: syntax error, unexpected tLABEL, expecting '=' + completion_date: params["todo"]["completion_d... + ^~~~~~~~~~~~~~~~ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:23: syntax error, unexpected tLABEL, expecting '=' + descripton: params["todo"]["description"] + ^~~~~~~~~~~ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:24: syntax error, unexpected ')', expecting keyword_end + ) + ^: + app/controllers/todos_controller.rb:21:in `' + +Started POST "/__better_errors/99b91791a4582f29/variables" for ::1 at 2019-04-12 15:31:37 -0700 +Started GET "/todos/" for ::1 at 2019-04-12 15:31:53 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (1.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (17.7ms) +Completed 200 OK in 64ms (Views: 39.7ms | ActiveRecord: 10.7ms) + + +Started GET "/todos/new" for ::1 at 2019-04-12 15:31:59 -0700 +Processing by TodosController#new as HTML + Rendering todos/new.html.erb within layouts/application + Rendered todos/new.html.erb within layouts/application (4.3ms) +Completed 200 OK in 33ms (Views: 20.0ms | ActiveRecord: 2.3ms) + + +Started POST "/todos/new" for ::1 at 2019-04-12 15:32:27 -0700 + +ActionController::RoutingError (No route matches [POST] "/todos/new"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started POST "/todos/new" for ::1 at 2019-04-12 15:34:28 -0700 + +ActionController::RoutingError (No route matches [POST] "/todos/new"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started POST "/todos/new" for ::1 at 2019-04-12 15:34:50 -0700 + +ActionController::RoutingError (No route matches [POST] "/todos/new"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started POST "/todos/new" for ::1 at 2019-04-12 15:35:10 -0700 + +ActionController::RoutingError (No route matches [POST] "/todos/new"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started POST "/todos/new" for ::1 at 2019-04-12 15:36:37 -0700 + +ActionController::RoutingError (No route matches [POST] "/todos/new"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/todos/" for ::1 at 2019-04-12 15:36:42 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.5ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (179.2ms) +Completed 500 Internal Server Error in 194ms (ActiveRecord: 5.7ms) + + + +NoMethodError - undefined method `todo_path' for #<#:0x00007fbe0e8d9b30> +Did you mean? todos_path + root_path: + app/views/todos/index.html.erb:6:in `block in _app_views_todos_index_html_erb___2690579351206974065_70227132389940' + app/views/todos/index.html.erb:4:in `_app_views_todos_index_html_erb___2690579351206974065_70227132389940' + +Started POST "/__better_errors/95e83f5d0c0143c8/variables" for ::1 at 2019-04-12 15:36:43 -0700 +Started GET "/todos/" for ::1 at 2019-04-12 15:37:10 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 71ms (Views: 67.6ms | ActiveRecord: 0.3ms) + + +Started GET "/todos.2" for ::1 at 2019-04-12 15:37:15 -0700 +Processing by TodosController#index as + Rendering todos/index.html.erb within layouts/application + Todo Load (0.6ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (5.3ms) +Completed 200 OK in 77ms (Views: 50.6ms | ActiveRecord: 0.6ms) + + +Started GET "/todos.3" for ::1 at 2019-04-12 15:37:19 -0700 +Processing by TodosController#index as + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 86ms (Views: 62.8ms | ActiveRecord: 0.3ms) + + +Started GET "/todos.2" for ::1 at 2019-04-12 15:37:21 -0700 +Processing by TodosController#index as + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 64ms (Views: 42.1ms | ActiveRecord: 0.3ms) + + +Started GET "/todos.2" for ::1 at 2019-04-12 15:37:27 -0700 +Processing by TodosController#index as + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (232.3ms) +Completed 500 Internal Server Error in 277ms (ActiveRecord: 0.3ms) + + + +NoMethodError - undefined method `todo_path' for #<#:0x00007fbe0f8f6108> +Did you mean? todos_path + root_path: + app/views/todos/index.html.erb:6:in `block in _app_views_todos_index_html_erb___2690579351206974065_70227140785500' + app/views/todos/index.html.erb:4:in `_app_views_todos_index_html_erb___2690579351206974065_70227140785500' + +Started POST "/__better_errors/413e5eb564fbeaf2/variables" for ::1 at 2019-04-12 15:37:28 -0700 +Started GET "/todos.2" for ::1 at 2019-04-12 15:39:30 -0700 + +SyntaxError - syntax error, unexpected tIDENTIFIER, expecting keyword_end + get '/todos/:id' to: 'todo#show', as: 'todo' + ^~: + config/routes.rb:11:in `' + +Started POST "/__better_errors/fdaba4b6df7102b4/variables" for ::1 at 2019-04-12 15:39:30 -0700 +Started GET "/todos.2" for ::1 at 2019-04-12 15:39:44 -0700 + +SyntaxError - syntax error, unexpected tIDENTIFIER, expecting keyword_end + get '/todos/:id' to: 'todos#show', as: 'todo' + ^~: + config/routes.rb:11:in `' + +Started POST "/__better_errors/3d9a2a9619b7265a/variables" for ::1 at 2019-04-12 15:39:44 -0700 +Started GET "/todos" for ::1 at 2019-04-12 15:39:58 -0700 + +ActionController::RoutingError (No route matches [GET] "/todos"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/todos" for ::1 at 2019-04-12 15:40:15 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.4ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (13.3ms) +Completed 200 OK in 47ms (Views: 37.8ms | ActiveRecord: 4.4ms) + + +Started GET "/todos/2" for ::1 at 2019-04-12 15:40:18 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (0.8ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 41ms (Views: 32.7ms | ActiveRecord: 1.1ms) + + +Started GET "/todos" for ::1 at 2019-04-12 15:40:19 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (13.1ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (15.0ms) +Completed 200 OK in 60ms (Views: 43.0ms | ActiveRecord: 13.1ms) + + +Started GET "/todos/new" for ::1 at 2019-04-12 15:40:20 -0700 +Processing by TodosController#new as HTML + Rendering todos/new.html.erb within layouts/application + Rendered todos/new.html.erb within layouts/application (14.4ms) +Completed 200 OK in 54ms (Views: 48.3ms | ActiveRecord: 0.0ms) + + +Started POST "/todos/new" for ::1 at 2019-04-12 15:40:33 -0700 + +ActionController::RoutingError (No route matches [POST] "/todos/new"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started POST "/todos/new" for ::1 at 2019-04-12 15:41:19 -0700 + +ActionController::RoutingError (No route matches [POST] "/todos/new"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started POST "/todos/new" for ::1 at 2019-04-12 15:42:29 -0700 + +ActionController::RoutingError (No route matches [POST] "/todos/new"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started POST "/todos/new" for ::1 at 2019-04-12 15:43:30 -0700 + +ActionController::RoutingError (No route matches [POST] "/todos/new"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/todos/new" for ::1 at 2019-04-12 15:43:33 -0700 +Processing by TodosController#new as HTML + Rendering todos/new.html.erb within layouts/application + Rendered todos/new.html.erb within layouts/application (4.4ms) +Completed 200 OK in 45ms (Views: 31.4ms | ActiveRecord: 3.0ms) + + +Started GET "/todos" for ::1 at 2019-04-12 15:43:39 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (5.0ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (7.3ms) +Completed 200 OK in 47ms (Views: 36.7ms | ActiveRecord: 5.0ms) + + +Started GET "/todos/new" for ::1 at 2019-04-12 15:43:42 -0700 +Processing by TodosController#new as HTML + Rendering todos/new.html.erb within layouts/application + Rendered todos/new.html.erb within layouts/application (8.0ms) +Completed 200 OK in 47ms (Views: 42.8ms | ActiveRecord: 0.0ms) + + +Started POST "/todos/new" for ::1 at 2019-04-12 15:44:10 -0700 + +ActionController::RoutingError (No route matches [POST] "/todos/new"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started POST "/todos/new" for ::1 at 2019-04-12 15:46:16 -0700 + +ActionController::RoutingError (No route matches [POST] "/todos/new"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started POST "/todos/new" for ::1 at 2019-04-12 15:46:43 -0700 + +ActionController::RoutingError (No route matches [POST] "/todos/new"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started POST "/todos/new" for ::1 at 2019-04-12 15:48:25 -0700 + +ActionController::RoutingError (No route matches [POST] "/todos/new"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started POST "/todos/new" for ::1 at 2019-04-12 15:50:23 -0700 + +ActionController::RoutingError (No route matches [POST] "/todos/new"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started POST "/todos/new" for ::1 at 2019-04-12 15:50:26 -0700 + +ActionController::RoutingError (No route matches [POST] "/todos/new"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started POST "/todos/new" for ::1 at 2019-04-12 15:50:53 -0700 +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/cloudylopez/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + +ActionController::RoutingError (No route matches [POST] "/todos/new"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/todos" for ::1 at 2019-04-12 15:50:57 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.5ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (21.9ms) +Completed 200 OK in 242ms (Views: 230.8ms | ActiveRecord: 4.0ms) + + +Started GET "/todos/1" for ::1 at 2019-04-12 15:51:00 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 42ms (Views: 31.2ms | ActiveRecord: 1.0ms) + + +Started GET "/todos" for ::1 at 2019-04-12 15:51:01 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (14.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (16.5ms) +Completed 200 OK in 54ms (Views: 34.8ms | ActiveRecord: 14.3ms) + + +Started GET "/todos/2" for ::1 at 2019-04-12 15:51:02 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 38ms (Views: 34.0ms | ActiveRecord: 0.3ms) + + +Started GET "/todos" for ::1 at 2019-04-12 15:51:03 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (12.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (14.2ms) +Completed 200 OK in 49ms (Views: 31.4ms | ActiveRecord: 12.2ms) + + +Started GET "/todos/new" for ::1 at 2019-04-12 15:51:04 -0700 +Processing by TodosController#new as HTML + Rendering todos/new.html.erb within layouts/application + Rendered todos/new.html.erb within layouts/application (13.9ms) +Completed 200 OK in 46ms (Views: 41.3ms | ActiveRecord: 0.0ms) + + +Started POST "/todos" for ::1 at 2019-04-12 15:51:08 -0700 +Processing by TodosController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"P94L1NFvYP3WXDQRz3XW9dyh/RJuxvQZYJCvK71Xu4KAgAaB/YiWPwxcebH9BeTsVE4DIToIBnP/oIokJ8iByQ==", "todo"=>{"name"=>"", "completion_date"=>"", "description"=>""}, "commit"=>"Save task"} +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) + + + +ActiveModel::UnknownAttributeError - unknown attribute 'descripton' for Todo.: + app/controllers/todos_controller.rb:20:in `create' + +Started POST "/__better_errors/a73df9347cf378af/variables" for ::1 at 2019-04-12 15:51:08 -0700 +Started POST "/todos" for ::1 at 2019-04-12 15:51:21 -0700 +Processing by TodosController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"/WXYiO1a8fewsmyy0rXWO20uyzXkMk9vj05jkG1Z9pNRWkCm0j2+EtP7ymR+6vf/AA/G1Lh6CujImaRKqoTsgQ==", "todo"=>{"name"=>"steph", "completion_date"=>"4-11-2019", "description"=>"yay"}, "commit"=>"Save task"} +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + + + +ActiveModel::UnknownAttributeError - unknown attribute 'descripton' for Todo.: + app/controllers/todos_controller.rb:20:in `create' + +Started POST "/__better_errors/1f18787b5abc8f07/variables" for ::1 at 2019-04-12 15:51:21 -0700 +Started POST "/todos" for ::1 at 2019-04-12 15:51:46 -0700 +Processing by TodosController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"/WXYiO1a8fewsmyy0rXWO20uyzXkMk9vj05jkG1Z9pNRWkCm0j2+EtP7ymR+6vf/AA/G1Lh6CujImaRKqoTsgQ==", "todo"=>{"name"=>"steph", "completion_date"=>"4-11-2019", "description"=>"yay"}, "commit"=>"Save task"} +  (0.7ms) BEGIN + ↳ app/controllers/todos_controller.rb:25 + Todo Create (28.3ms) INSERT INTO "todos" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "steph"], ["description", "yay"], ["completion_date", "4-11-2019"], ["created_at", "2019-04-12 22:51:46.089366"], ["updated_at", "2019-04-12 22:51:46.089366"]] + ↳ app/controllers/todos_controller.rb:25 +  (1.5ms) COMMIT + ↳ app/controllers/todos_controller.rb:25 +Redirected to http://localhost:3000/todos +Completed 302 Found in 48ms (ActiveRecord: 35.0ms) + + +Started GET "/todos" for ::1 at 2019-04-12 15:51:46 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (1.0ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 28ms (Views: 25.4ms | ActiveRecord: 1.0ms) + + From 3ef11ad463b04e10568f2ef820f35447df529b1e Mon Sep 17 00:00:00 2001 From: Cloudy Lopez Date: Sun, 14 Apr 2019 17:45:05 -0700 Subject: [PATCH 6/7] made actions and added links --- app/assets/stylesheets/todos.scss | 7 + app/controllers/todos_controller.rb | 39 +- app/views/todos/_form.html.erb | 15 + app/views/todos/edit.html.erb | 2 + app/views/todos/index.html.erb | 14 +- app/views/todos/show.html.erb | 9 +- config/routes.rb | 5 + log/development.log | 3286 +++++++++++++++++++++ log/test.log | 44 + test/controllers/tasks_controller_test.rb | 252 +- test/controllers/todos_controller_test.rb | 133 +- 11 files changed, 3670 insertions(+), 136 deletions(-) create mode 100644 app/views/todos/_form.html.erb create mode 100644 app/views/todos/edit.html.erb diff --git a/app/assets/stylesheets/todos.scss b/app/assets/stylesheets/todos.scss index bf5bf30b4..4452d8d60 100644 --- a/app/assets/stylesheets/todos.scss +++ b/app/assets/stylesheets/todos.scss @@ -1,3 +1,10 @@ // Place all the styles related to the Todos controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ +h1 { + text-align: center +} + +h2 ul { + text-align: center +} \ No newline at end of file diff --git a/app/controllers/todos_controller.rb b/app/controllers/todos_controller.rb index af01a52cb..4231b8952 100644 --- a/app/controllers/todos_controller.rb +++ b/app/controllers/todos_controller.rb @@ -8,8 +8,7 @@ def index def show todo_id = params[:id].to_i - @todos = Todo.find_by(id: todo_id) - # puts '@tasssssk', @todo + @todo = Todo.find_by(id: todo_id) end def new @@ -28,4 +27,40 @@ def create render :new end end + + def edit + @todo = Todo.find_by( + id: params['id'] + ) + redirect_to todos_path if @todo.nil? + end + + def update + todo = Todo.find_by(id: params[:id]) + todo.update(todo_params) + is_successful = todo.update(todo_params) + if is_successful + redirect_to todo_path(todo.id) + else + head :not_found + end + end + + def destroy + todo = Todo.find_by(id: params[:id]) + if todo.nil? + head :not_found + else + todo.destroy + redirect_to todos_path + end + end + + # def mark_completed_task; end + + private + + def todo_params + params.require(:todo).permit(:name, :description, :completion_date) + end end diff --git a/app/views/todos/_form.html.erb b/app/views/todos/_form.html.erb new file mode 100644 index 000000000..c8323c5ba --- /dev/null +++ b/app/views/todos/_form.html.erb @@ -0,0 +1,15 @@ +<%= form_with model: @todo, class: 'create-task' do |f| %> + +

Fill out the form to create a new task

+ + <%= f.label :name %> + <%= f.text_field :name %> + <%= f.label :completion_date %> + <%= f.text_field :completion_date %> + <%= f.label :description %> + <%= f.text_field :description %> + + <%= f.submit "Update task", class: "task-form__submit-btn" %> + + +<% end %> diff --git a/app/views/todos/edit.html.erb b/app/views/todos/edit.html.erb new file mode 100644 index 000000000..73c726a0a --- /dev/null +++ b/app/views/todos/edit.html.erb @@ -0,0 +1,2 @@ +<%=render 'form'%> +<%= form_with model: @todo, url: todo_path(@todo.id), method: :patch %> \ No newline at end of file diff --git a/app/views/todos/index.html.erb b/app/views/todos/index.html.erb index e1a1c56b6..06e353555 100644 --- a/app/views/todos/index.html.erb +++ b/app/views/todos/index.html.erb @@ -1,11 +1,15 @@ -

Todos#index

+

CLOUDYS TASKS

+
    -//

    CLOUDYS TASKS

    -<% @todos.each do |todo| %> + +

    put on some rap music, drink some iced coffee, and get it done.

    + <% @todos.each do |todo| %>
  • -<%= link_to todo.name, todo_path(todo.id) %> + <%= link_to todo.name, todo_path(todo.id) %>
  • <% end %> <%= link_to "Create a Task", new_task_path %> -
\ No newline at end of file + + <%# <%= link_to "Mark Complete", new_task_path %> + \ No newline at end of file diff --git a/app/views/todos/show.html.erb b/app/views/todos/show.html.erb index 988595d07..aad326528 100644 --- a/app/views/todos/show.html.erb +++ b/app/views/todos/show.html.erb @@ -1,5 +1,10 @@

-<%= @todos.description %> +<%= @todo.description %>

-<%= link_to "back to all tasks", todos_path %> \ No newline at end of file +<%= link_to "Take me back to all tasks", todos_path %> + +<%= link_to "Edit a Task", edit_task_path %> + +<%= link_to "Delete #{@todo.name}", + todo_path(@todo.id), method: :delete, data: {confirm: "are you sure you want to delete?"} %> \ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index da9c45024..253312fb4 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -11,5 +11,10 @@ get '/todos/:id', to: 'todos#show', as: 'todo' # patch '/todo/:id/read', to: 'todo#mark_complete', as: 'mark_complete' + get '/todos/:id/edit', to: 'todos#edit', as: 'edit_task' + patch '/todos/:id', to: 'todos#update' + + delete '/todos/:id', to: 'todos#destroy' + root to: 'todos#index' end diff --git a/log/development.log b/log/development.log index 2f16e59c7..76cd80bf8 100644 --- a/log/development.log +++ b/log/development.log @@ -3563,3 +3563,3289 @@ Processing by TodosController#index as HTML Completed 200 OK in 28ms (Views: 25.4ms | ActiveRecord: 1.0ms) +  (7.8ms) CREATE DATABASE "TaskList_development" ENCODING = 'unicode' + ↳ bin/rails:9 +  (0.9ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' + ↳ bin/rails:9 +Started GET "/todos" for ::1 at 2019-04-13 10:41:28 -0700 +  (4.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/cloudylopez/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (1.1ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (24.0ms) +Completed 200 OK in 266ms (Views: 244.4ms | ActiveRecord: 11.7ms) + + +Started GET "/todos/new" for ::1 at 2019-04-13 10:41:40 -0700 +Processing by TodosController#new as HTML + Rendering todos/new.html.erb within layouts/application + Rendered todos/new.html.erb within layouts/application (20.0ms) +Completed 200 OK in 48ms (Views: 44.7ms | ActiveRecord: 0.0ms) + + +Started POST "/todos" for ::1 at 2019-04-13 10:42:00 -0700 +Processing by TodosController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"aTwmxFr2HdR/O1SthmjtEHLFVqstBn2TTbB3CpmWmMvWYiuRdhHrFqU7GQ20GN8J+iqomHnIj/nSgFIFAwmigA==", "todo"=>{"name"=>"stephhhhhh", "completion_date"=>"4-11-2019", "description"=>"yaymnvbnm,."}, "commit"=>"Save task"} +  (0.2ms) BEGIN + ↳ app/controllers/todos_controller.rb:25 + Todo Create (3.7ms) INSERT INTO "todos" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "stephhhhhh"], ["description", "yaymnvbnm,."], ["completion_date", "4-11-2019"], ["created_at", "2019-04-13 17:42:00.929453"], ["updated_at", "2019-04-13 17:42:00.929453"]] + ↳ app/controllers/todos_controller.rb:25 +  (4.7ms) COMMIT + ↳ app/controllers/todos_controller.rb:25 +Redirected to http://localhost:3000/todos +Completed 302 Found in 12ms (ActiveRecord: 8.6ms) + + +Started GET "/todos" for ::1 at 2019-04-13 10:42:00 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 27ms (Views: 24.0ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/new" for ::1 at 2019-04-13 11:24:37 -0700 +Processing by TodosController#new as HTML + Rendering todos/new.html.erb within layouts/application + Rendered todos/new.html.erb within layouts/application (6.1ms) +Completed 200 OK in 75ms (Views: 71.3ms | ActiveRecord: 0.0ms) + + +Started GET "/todos" for ::1 at 2019-04-13 11:24:42 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (1.0ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (5.3ms) +Completed 200 OK in 36ms (Views: 31.5ms | ActiveRecord: 1.0ms) + + + Todo Load (0.5ms) SELECT "todos".* FROM "todos" +Started GET "/todos" for ::1 at 2019-04-13 12:21:29 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.7ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (8.5ms) +Completed 200 OK in 74ms (Views: 66.4ms | ActiveRecord: 0.7ms) + + +Started GET "/todos/3" for ::1 at 2019-04-13 12:21:36 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"3"} + Todo Load (0.6ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 70ms (Views: 20.1ms | ActiveRecord: 1.1ms) + + +Started GET "/todos" for ::1 at 2019-04-13 12:21:37 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (1.5ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 43ms (Views: 39.3ms | ActiveRecord: 1.5ms) + + +Started GET "/todos/1" for ::1 at 2019-04-13 12:21:38 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.8ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 93ms (Views: 86.5ms | ActiveRecord: 0.8ms) + + +Started GET "/todos" for ::1 at 2019-04-13 12:21:39 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (5.0ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (7.3ms) +Completed 200 OK in 45ms (Views: 37.6ms | ActiveRecord: 5.0ms) + + +Started GET "/todos" for ::1 at 2019-04-13 12:24:45 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.5ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 40ms (Views: 36.8ms | ActiveRecord: 0.5ms) + + +Started GET "/todos" for ::1 at 2019-04-13 12:25:31 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 23ms (Views: 21.2ms | ActiveRecord: 0.3ms) + + +Started GET "/todos" for ::1 at 2019-04-13 12:25:58 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 25ms (Views: 21.3ms | ActiveRecord: 0.2ms) + + +Started GET "/todos" for ::1 at 2019-04-13 12:26:13 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 24ms (Views: 19.8ms | ActiveRecord: 0.3ms) + + +Started GET "/todos" for ::1 at 2019-04-13 12:29:38 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:4 + Rendered todos/index.html.erb within layouts/application (13.6ms) +Completed 200 OK in 65ms (Views: 54.3ms | ActiveRecord: 5.9ms) + + +Started GET "/todos" for ::1 at 2019-04-13 12:53:28 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.6ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (8.2ms) +Completed 200 OK in 67ms (Views: 59.9ms | ActiveRecord: 0.6ms) + + +Started GET "/todos/4" for ::1 at 2019-04-13 12:53:34 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"4"} + Todo Load (5.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 62ms (Views: 40.6ms | ActiveRecord: 8.5ms) + + +Started GET "/todos" for ::1 at 2019-04-13 12:53:35 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (5.1ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (8.2ms) +Completed 200 OK in 58ms (Views: 50.2ms | ActiveRecord: 5.1ms) + + +Started GET "/todos" for ::1 at 2019-04-13 12:54:51 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 67ms (Views: 63.8ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/1" for ::1 at 2019-04-13 12:54:53 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (1.0ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 48ms (Views: 41.2ms | ActiveRecord: 1.0ms) + + +Started GET "/todos" for ::1 at 2019-04-13 12:54:55 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (6.0ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (8.4ms) +Completed 200 OK in 49ms (Views: 39.4ms | ActiveRecord: 6.0ms) + + +Started GET "/todos/3" for ::1 at 2019-04-13 12:54:55 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"3"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 35ms (Views: 31.6ms | ActiveRecord: 0.3ms) + + +Started GET "/todos" for ::1 at 2019-04-13 12:54:56 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (2.0ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 49ms (Views: 43.7ms | ActiveRecord: 2.0ms) + + +Started GET "/todos" for ::1 at 2019-04-13 12:56:01 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 34ms (Views: 30.5ms | ActiveRecord: 0.3ms) + + +Started GET "/todos" for ::1 at 2019-04-13 12:56:33 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 78ms (Views: 74.2ms | ActiveRecord: 0.3ms) + + +Started GET "/todos" for ::1 at 2019-04-13 12:57:27 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (1.4ms) +Completed 500 Internal Server Error in 41ms (ActiveRecord: 0.2ms) + + + +Sass::SyntaxError - Invalid CSS after " list-style-type": expected ";", was ": none": + app/views/layouts/application.html.erb:8:in `_app_views_layouts_application_html_erb___1568627425751513370_70096425243960' + +Started POST "/__better_errors/c27c2e864d21e6a1/variables" for ::1 at 2019-04-13 12:57:28 -0700 +Started GET "/todos" for ::1 at 2019-04-13 12:57:38 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (1.6ms) +Completed 500 Internal Server Error in 24ms (ActiveRecord: 0.3ms) + + + +Sass::SyntaxError - Invalid CSS after " list-style-type": expected ";", was ": none;": + app/views/layouts/application.html.erb:8:in `_app_views_layouts_application_html_erb___1568627425751513370_70096419636940' + +Started POST "/__better_errors/9b58379a1951d2a6/variables" for ::1 at 2019-04-13 12:57:38 -0700 +Started GET "/todos" for ::1 at 2019-04-13 12:59:00 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (1.8ms) +Completed 500 Internal Server Error in 34ms (ActiveRecord: 0.3ms) + + + +Sass::SyntaxError - Invalid CSS after " style-type": expected ";", was ": none;": + app/views/layouts/application.html.erb:8:in `_app_views_layouts_application_html_erb___1568627425751513370_70096387657060' + +Started POST "/__better_errors/96916da35be2cad6/variables" for ::1 at 2019-04-13 12:59:00 -0700 +Started GET "/todos" for ::1 at 2019-04-13 12:59:06 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 35ms (Views: 31.8ms | ActiveRecord: 0.3ms) + + +Started GET "/todos" for ::1 at 2019-04-13 12:59:23 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 36ms (Views: 33.4ms | ActiveRecord: 0.3ms) + + +Started GET "/todos" for ::1 at 2019-04-13 13:42:25 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.6ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (7.5ms) +Completed 200 OK in 99ms (Views: 88.5ms | ActiveRecord: 0.6ms) + + +Started GET "/todos" for ::1 at 2019-04-14 13:59:43 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (3.1ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (21.2ms) +Completed 200 OK in 163ms (Views: 142.5ms | ActiveRecord: 3.1ms) + + +Started GET "/todos" for ::1 at 2019-04-14 13:59:47 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (158.6ms) +Completed 200 OK in 180ms (Views: 175.4ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/new" for ::1 at 2019-04-14 14:00:01 -0700 +Processing by TodosController#new as HTML + Rendering todos/new.html.erb within layouts/application + Rendered todos/new.html.erb within layouts/application (13.7ms) +Completed 200 OK in 56ms (Views: 38.8ms | ActiveRecord: 0.0ms) + + +Started GET "/todos" for ::1 at 2019-04-14 14:00:03 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (11.5ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (13.4ms) +Completed 200 OK in 47ms (Views: 32.2ms | ActiveRecord: 11.5ms) + + +Started GET "/todos" for ::1 at 2019-04-14 15:03:27 -0700 + +SyntaxError - syntax error, unexpected '<', expecting ')' + <%= render partial: "form", lo... + ^ +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:49: unterminated string meets end of file +/Users/cloudylopez/Desktop/adadev/TaskList/app/controllers/todos_controller.rb:49: syntax error, unexpected end-of-input, expecting keyword_end: + app/controllers/todos_controller.rb:42:in `' + +Started POST "/__better_errors/b198e1502e05fef1/variables" for ::1 at 2019-04-14 15:03:28 -0700 +Started GET "/todos" for ::1 at 2019-04-14 15:08:55 -0700 + +SyntaxError - syntax error, unexpected end-of-input, expecting keyword_end: + app/controllers/todos_controller.rb:42:in `' + +Started POST "/__better_errors/a6e0b7c7b3bce3cb/variables" for ::1 at 2019-04-14 15:08:55 -0700 +Started GET "/todos" for ::1 at 2019-04-14 15:09:31 -0700 + +SyntaxError - syntax error, unexpected end-of-input, expecting keyword_end: + app/controllers/todos_controller.rb:43:in `' + +Started POST "/__better_errors/d9e6606b7e61f595/variables" for ::1 at 2019-04-14 15:09:31 -0700 +Started GET "/todos" for ::1 at 2019-04-14 15:09:51 -0700 + +SyntaxError - syntax error, unexpected end-of-input, expecting keyword_end + end + ^: + app/controllers/todos_controller.rb:41:in `' + +Started POST "/__better_errors/6af4fe0978f8297a/variables" for ::1 at 2019-04-14 15:09:51 -0700 +Started GET "/todos" for ::1 at 2019-04-14 15:10:19 -0700 + +SyntaxError - syntax error, unexpected end-of-input, expecting keyword_end: + app/controllers/todos_controller.rb:42:in `' + +Started POST "/__better_errors/c5e68b13bb842ad9/variables" for ::1 at 2019-04-14 15:10:19 -0700 +Started GET "/todos" for ::1 at 2019-04-14 15:10:50 -0700 + +SyntaxError - syntax error, unexpected end-of-input, expecting keyword_end: + app/controllers/todos_controller.rb:43:in `' + +Started POST "/__better_errors/bb1719216f2d435b/variables" for ::1 at 2019-04-14 15:10:50 -0700 +Started GET "/todos" for ::1 at 2019-04-14 15:11:02 -0700 + +SyntaxError - syntax error, unexpected end-of-input, expecting keyword_end: + app/controllers/todos_controller.rb:43:in `' + +Started POST "/__better_errors/2f7f5cca55da54b6/variables" for ::1 at 2019-04-14 15:11:02 -0700 +Started GET "/todos" for ::1 at 2019-04-14 15:11:26 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (1.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (38.7ms) +Completed 200 OK in 86ms (Views: 51.3ms | ActiveRecord: 25.7ms) + + +Started GET "/todos/new" for ::1 at 2019-04-14 15:11:30 -0700 +Processing by TodosController#new as HTML + Rendering todos/new.html.erb within layouts/application + Rendered todos/new.html.erb within layouts/application (3.3ms) +Completed 200 OK in 40ms (Views: 19.6ms | ActiveRecord: 6.3ms) + + +Started POST "/todos" for ::1 at 2019-04-14 15:12:04 -0700 +Processing by TodosController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"m43jid42fTqkn4RTpzPAOGDXZT9fqyIr3AZGlteGkJck0+7c8tGL+H6fyfOVQ/Ih6DibDAtl0EFDNmOZTRmq3A==", "todo"=>{"name"=>"hang out with mom", "completion_date"=>"4/15/2020", "description"=>"say hey hey to mom mom"}, "commit"=>"Save task"} +  (5.0ms) BEGIN + ↳ app/controllers/todos_controller.rb:24 + Todo Create (22.1ms) INSERT INTO "todos" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "hang out with mom"], ["description", "say hey hey to mom mom"], ["completion_date", "4/15/2020"], ["created_at", "2019-04-14 22:12:04.203790"], ["updated_at", "2019-04-14 22:12:04.203790"]] + ↳ app/controllers/todos_controller.rb:24 +  (1.6ms) COMMIT + ↳ app/controllers/todos_controller.rb:24 +Redirected to http://localhost:3000/todos +Completed 302 Found in 34ms (ActiveRecord: 28.7ms) + + +Started GET "/todos" for ::1 at 2019-04-14 15:12:04 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 21ms (Views: 18.3ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/6" for ::1 at 2019-04-14 15:12:06 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"6"} + Todo Load (0.8ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 45ms (Views: 25.6ms | ActiveRecord: 12.0ms) + + +Started GET "/todos" for ::1 at 2019-04-14 15:12:08 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (13.1ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (15.2ms) +Completed 200 OK in 52ms (Views: 35.5ms | ActiveRecord: 13.1ms) + + +Started GET "/todos/3" for ::1 at 2019-04-14 15:12:14 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"3"} + Todo Load (10.4ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 50ms (Views: 35.1ms | ActiveRecord: 10.4ms) + + +Started GET "/todos" for ::1 at 2019-04-14 15:12:15 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (4.9ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (7.2ms) +Completed 200 OK in 43ms (Views: 34.8ms | ActiveRecord: 4.9ms) + + +Started GET "/todos/new" for ::1 at 2019-04-14 15:12:23 -0700 +Processing by TodosController#new as HTML + Rendering todos/new.html.erb within layouts/application + Rendered todos/new.html.erb within layouts/application (4.0ms) +Completed 200 OK in 42ms (Views: 37.0ms | ActiveRecord: 0.0ms) + + +Started GET "/todos" for ::1 at 2019-04-14 15:12:26 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (12.4ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (14.6ms) +Completed 200 OK in 52ms (Views: 35.8ms | ActiveRecord: 12.4ms) + + +Started GET "/todos/new" for ::1 at 2019-04-14 15:12:52 -0700 +Processing by TodosController#new as HTML + Rendering todos/new.html.erb within layouts/application + Rendered todos/new.html.erb within layouts/application (3.0ms) +Completed 200 OK in 44ms (Views: 41.0ms | ActiveRecord: 0.0ms) + + +Started GET "/todos" for ::1 at 2019-04-14 15:13:02 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (11.6ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (14.6ms) +Completed 200 OK in 52ms (Views: 36.5ms | ActiveRecord: 11.6ms) + + +Started GET "/todos/3" for ::1 at 2019-04-14 15:13:03 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"3"} + Todo Load (5.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 48ms (Views: 37.4ms | ActiveRecord: 5.2ms) + + +Started GET "/todos/3/edit" for ::1 at 2019-04-14 15:13:08 -0700 + +ActionController::RoutingError (No route matches [GET] "/todos/3/edit"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/todos/3/edit" for ::1 at 2019-04-14 15:22:49 -0700 + +ArgumentError - Invalid route name: 'edit task': + config/routes.rb:14:in `block in
' + config/routes.rb:3:in `
' + +Started POST "/__better_errors/c349d097d896c51c/variables" for ::1 at 2019-04-14 15:22:49 -0700 +Started GET "/todos/3/edit" for ::1 at 2019-04-14 15:23:29 -0700 + +ArgumentError - Invalid route name: 'edit task': + config/routes.rb:14:in `block in
' + config/routes.rb:3:in `
' + +Started POST "/__better_errors/3f18199b7dde1827/variables" for ::1 at 2019-04-14 15:23:29 -0700 +Started GET "/todos/3/edit" for ::1 at 2019-04-14 15:24:17 -0700 + +ArgumentError - Invalid route name: 'edit task': + config/routes.rb:14:in `block in
' + config/routes.rb:3:in `
' + +Started POST "/__better_errors/d9d7101f9864c944/variables" for ::1 at 2019-04-14 15:24:17 -0700 +Started GET "/todos/3/edit" for ::1 at 2019-04-14 15:31:01 -0700 + +ArgumentError - Invalid route name: 'edit task': + config/routes.rb:14:in `block in
' + config/routes.rb:3:in `
' + +Started POST "/__better_errors/80981f7e46e82108/variables" for ::1 at 2019-04-14 15:31:01 -0700 +Started GET "/todos/3/edit" for ::1 at 2019-04-14 15:34:43 -0700 + +ArgumentError - Invalid route name: 'edit task': + config/routes.rb:14:in `block in
' + config/routes.rb:3:in `
' + +Started POST "/__better_errors/75706fc22e491078/variables" for ::1 at 2019-04-14 15:34:43 -0700 +Started GET "/todos/3/edit" for ::1 at 2019-04-14 15:36:27 -0700 + +ArgumentError - Invalid route name: 'edit task': + config/routes.rb:14:in `block in
' + config/routes.rb:3:in `
' + +Started POST "/__better_errors/0a516e5ae8cb09ae/variables" for ::1 at 2019-04-14 15:36:27 -0700 +Started POST "/__better_errors/0a516e5ae8cb09ae/eval" for ::1 at 2019-04-14 15:36:36 -0700 +Started GET "/todos/3/edit" for ::1 at 2019-04-14 15:38:04 -0700 + +ArgumentError - Invalid route name: 'edit task': + config/routes.rb:14:in `block in
' + config/routes.rb:3:in `
' + +Started POST "/__better_errors/b030da3aaf1d9a78/variables" for ::1 at 2019-04-14 15:38:04 -0700 +Started POST "/__better_errors/b030da3aaf1d9a78/eval" for ::1 at 2019-04-14 15:38:15 -0700 +Started GET "/todos/3/edit" for ::1 at 2019-04-14 15:40:00 -0700 + +ActionController::RoutingError (No route matches [GET] "/todos/3/edit"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/todos/3" for ::1 at 2019-04-14 15:40:18 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"3"} + Todo Load (0.4ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 65ms (Views: 39.4ms | ActiveRecord: 10.8ms) + + +Started GET "/todos/" for ::1 at 2019-04-14 15:40:19 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 31ms (Views: 21.5ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/new" for ::1 at 2019-04-14 15:40:22 -0700 +Processing by TodosController#new as HTML + Rendering todos/new.html.erb within layouts/application + Rendered todos/new.html.erb within layouts/application (5.0ms) +Completed 200 OK in 42ms (Views: 38.6ms | ActiveRecord: 0.0ms) + + +Started GET "/todos" for ::1 at 2019-04-14 15:40:24 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (4.8ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (7.6ms) +Completed 200 OK in 41ms (Views: 29.7ms | ActiveRecord: 4.8ms) + + +Started GET "/todos" for ::1 at 2019-04-14 15:40:26 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (7.5ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (9.6ms) +Completed 200 OK in 47ms (Views: 36.2ms | ActiveRecord: 7.5ms) + + +Started GET "/todos/update" for ::1 at 2019-04-14 15:40:42 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"update"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (3.8ms) +Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.3ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__4289536093503756224_70096419979420' + +Started POST "/__better_errors/2b4e5a04d1ae37a0/variables" for ::1 at 2019-04-14 15:40:42 -0700 +Started GET "/todos/update" for ::1 at 2019-04-14 15:45:22 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"update"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (3.0ms) +Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.2ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__4289536093503756224_70096381419920' + +Started POST "/__better_errors/0f2eedb0ed1238cd/variables" for ::1 at 2019-04-14 15:45:22 -0700 +Started GET "/todos/update" for ::1 at 2019-04-14 15:45:33 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"update"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (3.9ms) +Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.3ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__4289536093503756224_70096419211980' + +Started POST "/__better_errors/ae4f109b8c08d369/variables" for ::1 at 2019-04-14 15:45:33 -0700 +Started POST "/__better_errors/ae4f109b8c08d369/eval" for ::1 at 2019-04-14 15:45:40 -0700 +Started GET "/todos/update" for ::1 at 2019-04-14 15:47:10 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"update"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (3.0ms) +Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.3ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__4289536093503756224_70096389234860' + +Started POST "/__better_errors/bfb5491777d56484/variables" for ::1 at 2019-04-14 15:47:10 -0700 +Started GET "/todos/update" for ::1 at 2019-04-14 15:47:14 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"update"} + Todo Load (0.4ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (3.2ms) +Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.4ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__4289536093503756224_70096372270420' + +Started POST "/__better_errors/4ef7c700b959b8bb/variables" for ::1 at 2019-04-14 15:47:14 -0700 +Started GET "/todos/update" for ::1 at 2019-04-14 15:47:19 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"update"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (4.1ms) +Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.2ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__4289536093503756224_70096372068100' + +Started POST "/__better_errors/7407de8865050a56/variables" for ::1 at 2019-04-14 15:47:19 -0700 +Started GET "/todos/update" for ::1 at 2019-04-14 15:47:31 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"update"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (4.5ms) +Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.3ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__4289536093503756224_70096429862120' + +Started POST "/__better_errors/cf514b0b3a45193c/variables" for ::1 at 2019-04-14 15:47:31 -0700 +Started GET "/todos/update" for ::1 at 2019-04-14 15:48:13 -0700 + +ArgumentError - Invalid route name: 'edit task': + config/routes.rb:14:in `block in
' + config/routes.rb:3:in `
' + +Started POST "/__better_errors/028f3ba47b3ed311/variables" for ::1 at 2019-04-14 15:48:13 -0700 +Started GET "/todos/update" for ::1 at 2019-04-14 15:48:40 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"update"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (2.8ms) +Completed 500 Internal Server Error in 15ms (ActiveRecord: 1.5ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__4289536093503756224_70096372174740' + +Started POST "/__better_errors/f841e2251e32192a/variables" for ::1 at 2019-04-14 15:48:40 -0700 +Started GET "/todos/update" for ::1 at 2019-04-14 15:49:16 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"update"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (5.6ms) +Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.2ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__4289536093503756224_70096389268880' + +Started POST "/__better_errors/c10251f20eb116a4/variables" for ::1 at 2019-04-14 15:49:16 -0700 +Started GET "/todos/update" for ::1 at 2019-04-14 15:50:50 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"update"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (4.5ms) +Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.2ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__4289536093503756224_70096406283480' + +Started POST "/__better_errors/357a2b7cf0ab785c/variables" for ::1 at 2019-04-14 15:50:50 -0700 +Started POST "/__better_errors/357a2b7cf0ab785c/eval" for ::1 at 2019-04-14 15:53:19 -0700 +Started GET "/todos/update" for ::1 at 2019-04-14 15:53:44 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"update"} + Todo Load (1.0ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (4.3ms) +Completed 500 Internal Server Error in 33ms (ActiveRecord: 1.0ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__4289536093503756224_70096429981480' + +Started POST "/__better_errors/35b62426d25fac17/variables" for ::1 at 2019-04-14 15:53:44 -0700 +Started GET "/todos/update" for ::1 at 2019-04-14 15:53:52 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"update"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (3.3ms) +Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.3ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__4289536093503756224_70096430028420' + +Started POST "/__better_errors/bd33559ac728b376/variables" for ::1 at 2019-04-14 15:53:52 -0700 +Started GET "/todos/update" for ::1 at 2019-04-14 15:53:58 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"update"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (5.1ms) +Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.3ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__4289536093503756224_70096419523360' + +Started POST "/__better_errors/1e6f627a7ad00e2b/variables" for ::1 at 2019-04-14 15:53:59 -0700 +Started POST "/__better_errors/1e6f627a7ad00e2b/eval" for ::1 at 2019-04-14 15:54:05 -0700 +Started POST "/__better_errors/1e6f627a7ad00e2b/eval" for ::1 at 2019-04-14 15:54:25 -0700 +Started POST "/__better_errors/1e6f627a7ad00e2b/eval" for ::1 at 2019-04-14 15:54:31 -0700 +Started GET "/todos/update" for ::1 at 2019-04-14 15:57:36 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"update"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 +Completed 500 Internal Server Error in 7ms (ActiveRecord: 1.5ms) + + + +RuntimeError - : + app/controllers/todos_controller.rb:12:in `show' + +Started POST "/__better_errors/496638bc03ca2144/variables" for ::1 at 2019-04-14 15:57:36 -0700 +Started POST "/__better_errors/496638bc03ca2144/eval" for ::1 at 2019-04-14 15:57:50 -0700 +Started POST "/__better_errors/496638bc03ca2144/eval" for ::1 at 2019-04-14 15:58:02 -0700 +Started POST "/__better_errors/496638bc03ca2144/eval" for ::1 at 2019-04-14 15:58:05 -0700 +Started GET "/todos/update" for ::1 at 2019-04-14 15:58:47 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"update"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:12 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (4.5ms) +Completed 500 Internal Server Error in 30ms (ActiveRecord: 2.2ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__4289536093503756224_70096425032180' + +Started POST "/__better_errors/3bcc4a2ceab2ed99/variables" for ::1 at 2019-04-14 15:58:48 -0700 +Started POST "/__better_errors/3bcc4a2ceab2ed99/eval" for ::1 at 2019-04-14 15:58:54 -0700 +Started GET "/todos/" for ::1 at 2019-04-14 16:00:23 -0700 +Processing by TodosController#index as HTML +Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms) + + + +RuntimeError - : + app/controllers/todos_controller.rb:7:in `index' + +Started POST "/__better_errors/a171cb0f87f5b74a/variables" for ::1 at 2019-04-14 16:00:23 -0700 + Todo Load (0.2ms) SELECT "todos".* FROM "todos" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/cloudylopez/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Todo Load (0.0ms) SELECT "todos".* FROM "todos" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/cloudylopez/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Todo Load (0.0ms) SELECT "todos".* FROM "todos" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/cloudylopez/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Todo Load (0.0ms) SELECT "todos".* FROM "todos" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/cloudylopez/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/todos/" for ::1 at 2019-04-14 16:00:39 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (9.1ms) +Completed 200 OK in 33ms (Views: 26.0ms | ActiveRecord: 3.6ms) + + +Started GET "/todos/6" for ::1 at 2019-04-14 16:00:43 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"6"} + Todo Load (0.4ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 34ms (Views: 28.5ms | ActiveRecord: 0.4ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:00:44 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (7.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (10.0ms) +Completed 200 OK in 43ms (Views: 31.4ms | ActiveRecord: 7.3ms) + + +Started GET "/todos/3" for ::1 at 2019-04-14 16:00:48 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"3"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 40ms (Views: 35.6ms | ActiveRecord: 0.2ms) + + +Started GET "/todos/edit" for ::1 at 2019-04-14 16:00:51 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"edit"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (4.9ms) +Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.3ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__4289536093503756224_70096429601540' + +Started POST "/__better_errors/dc7a45b1582e93f2/variables" for ::1 at 2019-04-14 16:00:52 -0700 +Started GET "/todos/3" for ::1 at 2019-04-14 16:00:56 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"3"} + Todo Load (2.1ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 27ms (Views: 20.2ms | ActiveRecord: 2.1ms) + + +Started GET "/todos/3/edit" for ::1 at 2019-04-14 16:00:57 -0700 +Processing by TodosController#edit as HTML + Parameters: {"id"=>"3"} +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) + + + +NoMethodError - undefined method `[]' for nil:NilClass: + app/controllers/todos_controller.rb:33:in `edit' + +Started POST "/__better_errors/54164d8944c3aae8/variables" for ::1 at 2019-04-14 16:00:58 -0700 +Started POST "/__better_errors/54164d8944c3aae8/eval" for ::1 at 2019-04-14 16:01:15 -0700 +Started POST "/__better_errors/54164d8944c3aae8/eval" for ::1 at 2019-04-14 16:01:21 -0700 +Started POST "/__better_errors/54164d8944c3aae8/eval" for ::1 at 2019-04-14 16:01:28 -0700 + Todo Load (0.5ms) SELECT "todos".* FROM "todos" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/cloudylopez/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started POST "/__better_errors/54164d8944c3aae8/eval" for ::1 at 2019-04-14 16:01:42 -0700 +Started GET "/todos/3/edit" for ::1 at 2019-04-14 16:02:02 -0700 +Processing by TodosController#edit as HTML + Parameters: {"id"=>"3"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:32 + Rendering todos/edit.html.erb within layouts/application + Rendered todos/edit.html.erb within layouts/application (6.6ms) +Completed 500 Internal Server Error in 38ms (ActiveRecord: 10.3ms) + + + +ActionView::MissingTemplate - Missing partial todos/_form, application/_form with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :jbuilder]}. Searched in: + * "/Users/cloudylopez/Desktop/adadev/TaskList/app/views" +: + app/views/todos/edit.html.erb:1:in `_app_views_todos_edit_html_erb___3421764134582698837_70096388598800' + +Started POST "/__better_errors/20817bbda75c388b/variables" for ::1 at 2019-04-14 16:02:02 -0700 +Started GET "/todos/3/edit" for ::1 at 2019-04-14 16:02:29 -0700 +Processing by TodosController#edit as HTML + Parameters: {"id"=>"3"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:32 + Rendering todos/edit.html.erb within layouts/application + Rendered todos/edit.html.erb within layouts/application (4.2ms) +Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.3ms) + + + +ActionView::MissingTemplate - Missing partial todos/_form, application/_form with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :jbuilder]}. Searched in: + * "/Users/cloudylopez/Desktop/adadev/TaskList/app/views" +: + app/views/todos/edit.html.erb:1:in `_app_views_todos_edit_html_erb___3421764134582698837_70096429666480' + +Started POST "/__better_errors/4a247eb8d0b4fd4d/variables" for ::1 at 2019-04-14 16:02:29 -0700 +Started POST "/__better_errors/4a247eb8d0b4fd4d/eval" for ::1 at 2019-04-14 16:02:36 -0700 +Started GET "/todos/3/edit" for ::1 at 2019-04-14 16:07:44 -0700 +Processing by TodosController#edit as HTML + Parameters: {"id"=>"3"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:32 + Rendering todos/edit.html.erb within layouts/application + Rendered todos/edit.html.erb within layouts/application (4.8ms) +Completed 500 Internal Server Error in 46ms (ActiveRecord: 3.3ms) + + + +ActionView::MissingTemplate - Missing partial todos/_form, application/_form with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :jbuilder]}. Searched in: + * "/Users/cloudylopez/Desktop/adadev/TaskList/app/views" +: + app/views/todos/edit.html.erb:1:in `_app_views_todos_edit_html_erb___3421764134582698837_70096430089300' + +Started POST "/__better_errors/f119219a6f7b8036/variables" for ::1 at 2019-04-14 16:07:44 -0700 +Started POST "/__better_errors/f119219a6f7b8036/eval" for ::1 at 2019-04-14 16:07:49 -0700 +Started GET "/todos/3/edit" for ::1 at 2019-04-14 16:10:42 -0700 +Processing by TodosController#edit as HTML + Parameters: {"id"=>"3"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:32 + Rendering todos/edit.html.erb within layouts/application + Rendered todos/_form.html.erb (2.2ms) + Rendered todos/edit.html.erb within layouts/application (4.3ms) +Completed 200 OK in 77ms (Views: 72.8ms | ActiveRecord: 0.3ms) + + +Started PATCH "/todos/3" for ::1 at 2019-04-14 16:11:27 -0700 + +ActionController::RoutingError (No route matches [PATCH] "/todos/3"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started PATCH "/todos/3" for ::1 at 2019-04-14 16:12:10 -0700 +Processing by TodosController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"iZplJyQVmU+a+zs/i3FdLoumHep7LGHcDLPh+WR+EOQlpf0JG3LWqvmyneknLnzq5ocQCydkJFtLZCYjo6MK9g==", "todo"=>{"name"=>"make dinner", "completion_date"=>"", "description"=>"chop and prep to make dinner"}, "commit"=>"Save task", "id"=>"3"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/controllers/todos_controller.rb:39 +  (0.2ms) BEGIN + ↳ app/controllers/todos_controller.rb:39 +  (0.3ms) ROLLBACK + ↳ app/controllers/todos_controller.rb:39 +Completed 500 Internal Server Error in 14ms (ActiveRecord: 3.7ms) + + + +ActiveModel::UnknownAttributeError - unknown attribute 'update' for Todo.: + app/controllers/todos_controller.rb:39:in `update' + +Started POST "/__better_errors/bc410a9d910aa21d/variables" for ::1 at 2019-04-14 16:12:10 -0700 +Started PATCH "/todos/3" for ::1 at 2019-04-14 16:13:25 -0700 +Processing by TodosController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"iZplJyQVmU+a+zs/i3FdLoumHep7LGHcDLPh+WR+EOQlpf0JG3LWqvmyneknLnzq5ocQCydkJFtLZCYjo6MK9g==", "todo"=>{"name"=>"make dinner", "completion_date"=>"", "description"=>"chop and prep to make dinner"}, "commit"=>"Save task", "id"=>"3"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/controllers/todos_controller.rb:39 +  (0.2ms) BEGIN + ↳ app/controllers/todos_controller.rb:39 +  (0.3ms) ROLLBACK + ↳ app/controllers/todos_controller.rb:39 +Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.9ms) + + + +ActiveModel::UnknownAttributeError - unknown attribute 'update' for Todo.: + app/controllers/todos_controller.rb:39:in `update' + +Started POST "/__better_errors/885a2e01aab1dd51/variables" for ::1 at 2019-04-14 16:13:25 -0700 +Started GET "/todos/" for ::1 at 2019-04-14 16:13:28 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.4ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 33ms (Views: 29.7ms | ActiveRecord: 0.4ms) + + +Started GET "/todos/new" for ::1 at 2019-04-14 16:13:30 -0700 +Processing by TodosController#new as HTML + Rendering todos/new.html.erb within layouts/application + Rendered todos/new.html.erb within layouts/application (3.3ms) +Completed 200 OK in 36ms (Views: 30.8ms | ActiveRecord: 0.0ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:13:34 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (7.5ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (9.6ms) +Completed 200 OK in 47ms (Views: 35.2ms | ActiveRecord: 7.5ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:13:59 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.7ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (9.8ms) +Completed 200 OK in 39ms (Views: 31.3ms | ActiveRecord: 3.2ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:14:06 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 23ms (Views: 20.0ms | ActiveRecord: 0.3ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:15:12 -0700 + +SyntaxError - syntax error, unexpected end-of-input, expecting keyword_end: + app/controllers/todos_controller.rb:52:in `' + +Started POST "/__better_errors/f0bb6683b8e4b901/variables" for ::1 at 2019-04-14 16:15:12 -0700 +Started GET "/todos" for ::1 at 2019-04-14 16:15:32 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (13.2ms) +Completed 200 OK in 46ms (Views: 38.2ms | ActiveRecord: 3.8ms) + + +Started GET "/todos/6" for ::1 at 2019-04-14 16:15:35 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"6"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 31ms (Views: 15.3ms | ActiveRecord: 4.4ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:15:37 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (3.9ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (6.2ms) +Completed 200 OK in 45ms (Views: 37.3ms | ActiveRecord: 3.9ms) + + +Started GET "/todos/4" for ::1 at 2019-04-14 16:15:39 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"4"} + Todo Load (9.8ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 50ms (Views: 35.0ms | ActiveRecord: 9.8ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:15:40 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (3.1ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (5.4ms) +Completed 200 OK in 43ms (Views: 37.7ms | ActiveRecord: 3.1ms) + + +Started GET "/todos/new" for ::1 at 2019-04-14 16:15:44 -0700 +Processing by TodosController#new as HTML + Rendering todos/new.html.erb within layouts/application + Rendered todos/new.html.erb within layouts/application (3.5ms) +Completed 200 OK in 43ms (Views: 37.8ms | ActiveRecord: 0.0ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:15:45 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (14.1ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (16.0ms) +Completed 200 OK in 60ms (Views: 42.1ms | ActiveRecord: 14.1ms) + + +Started GET "/todos/6" for ::1 at 2019-04-14 16:16:17 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"6"} + Todo Load (1.5ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 50ms (Views: 43.8ms | ActiveRecord: 1.5ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:16:18 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (32.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (34.4ms) +Completed 200 OK in 67ms (Views: 31.1ms | ActiveRecord: 32.2ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:17:12 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (3.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (13.9ms) +Completed 200 OK in 57ms (Views: 38.8ms | ActiveRecord: 5.5ms) + + +Started GET "/todos/1" for ::1 at 2019-04-14 16:17:14 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (1.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 49ms (Views: 42.3ms | ActiveRecord: 1.2ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:17:16 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (14.4ms) +Completed 200 OK in 38ms (Views: 28.2ms | ActiveRecord: 4.6ms) + + +Started GET "/todos/2" for ::1 at 2019-04-14 16:17:16 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 39ms (Views: 35.1ms | ActiveRecord: 0.2ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:17:17 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (14.7ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (16.7ms) +Completed 200 OK in 58ms (Views: 40.3ms | ActiveRecord: 14.7ms) + + +Started GET "/todos/upate" for ::1 at 2019-04-14 16:17:22 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"upate"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (3.9ms) +Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.3ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__4289536093503756224_70096430092640' + +Started POST "/__better_errors/22e31873987747bc/variables" for ::1 at 2019-04-14 16:17:22 -0700 +Started GET "/todos/update" for ::1 at 2019-04-14 16:17:29 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"update"} + Todo Load (0.4ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (5.4ms) +Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.4ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__4289536093503756224_70096429473240' + +Started POST "/__better_errors/cfab37c9bb1f1900/variables" for ::1 at 2019-04-14 16:17:29 -0700 +Started GET "/todos/edit" for ::1 at 2019-04-14 16:17:34 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"edit"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (4.2ms) +Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.2ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/todos/show.html.erb:2:in `_app_views_todos_show_html_erb__4289536093503756224_70096429570060' + +Started POST "/__better_errors/9fdfdbe6a8e20c51/variables" for ::1 at 2019-04-14 16:17:34 -0700 +Started GET "/todos/" for ::1 at 2019-04-14 16:17:38 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.6ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 22ms (Views: 19.2ms | ActiveRecord: 0.6ms) + + +Started GET "/todos/1" for ::1 at 2019-04-14 16:17:41 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.6ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 29ms (Views: 23.4ms | ActiveRecord: 0.6ms) + + +Started GET "/todos/2" for ::1 at 2019-04-14 16:17:45 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (1.0ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 30ms (Views: 24.4ms | ActiveRecord: 1.0ms) + + +Started GET "/todos/2/edit" for ::1 at 2019-04-14 16:17:47 -0700 +Processing by TodosController#edit as HTML + Parameters: {"id"=>"2"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:32 + Rendering todos/edit.html.erb within layouts/application + Rendered todos/_form.html.erb (3.8ms) + Rendered todos/edit.html.erb within layouts/application (7.5ms) +Completed 200 OK in 31ms (Views: 26.5ms | ActiveRecord: 0.2ms) + + +Started GET "/todos/2/update" for ::1 at 2019-04-14 16:17:58 -0700 + +ActionController::RoutingError (No route matches [GET] "/todos/2/update"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/todos/3/update" for ::1 at 2019-04-14 16:18:29 -0700 + +ActionController::RoutingError (No route matches [GET] "/todos/3/update"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/todos/3/edit" for ::1 at 2019-04-14 16:18:35 -0700 +Processing by TodosController#edit as HTML + Parameters: {"id"=>"3"} + Todo Load (0.6ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:32 + Rendering todos/edit.html.erb within layouts/application + Rendered todos/_form.html.erb (2.2ms) + Rendered todos/edit.html.erb within layouts/application (4.3ms) +Completed 200 OK in 27ms (Views: 22.9ms | ActiveRecord: 0.6ms) + + +Started GET "/todos/3/edit" for ::1 at 2019-04-14 16:19:24 -0700 +Processing by TodosController#edit as HTML + Parameters: {"id"=>"3"} + Todo Load (0.5ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:32 + Rendering todos/edit.html.erb within layouts/application + Rendered todos/_form.html.erb (1.6ms) + Rendered todos/edit.html.erb within layouts/application (3.2ms) +Completed 200 OK in 28ms (Views: 23.3ms | ActiveRecord: 0.5ms) + + +Started PATCH "/todos/3" for ::1 at 2019-04-14 16:19:41 -0700 +Processing by TodosController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"TgpWuCKQ9HWBcageSSP9029FlE+Ssje3qkK6Y1EL/oLiNc6WHfe7kOI4DsjlfNwXAmSZrs76cjDtlX25ltbkkA==", "todo"=>{"name"=>"make dinner", "completion_date"=>"", "description"=>"chop and prep to make dinner"}, "commit"=>"Update task", "id"=>"3"} + Todo Load (1.2ms) SELECT "todos".* FROM "todos" + ↳ app/controllers/todos_controller.rb:39 +  (0.2ms) BEGIN + ↳ app/controllers/todos_controller.rb:39 +  (0.2ms) ROLLBACK + ↳ app/controllers/todos_controller.rb:39 +Completed 500 Internal Server Error in 6ms (ActiveRecord: 1.6ms) + + + +ActiveModel::UnknownAttributeError - unknown attribute 'update' for Todo.: + app/controllers/todos_controller.rb:39:in `update' + +Started POST "/__better_errors/c68c7da47c5c85c0/variables" for ::1 at 2019-04-14 16:19:41 -0700 +Started PATCH "/todos/3" for ::1 at 2019-04-14 16:22:50 -0700 +Processing by TodosController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"TgpWuCKQ9HWBcageSSP9029FlE+Ssje3qkK6Y1EL/oLiNc6WHfe7kOI4DsjlfNwXAmSZrs76cjDtlX25ltbkkA==", "todo"=>{"name"=>"make dinner", "completion_date"=>"", "description"=>"chop and prep to make dinner"}, "commit"=>"Update task", "id"=>"3"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/controllers/todos_controller.rb:39 +  (0.1ms) BEGIN + ↳ app/controllers/todos_controller.rb:39 + Todo Update (15.5ms) UPDATE "todos" SET "name" = $1, "description" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "todos"."id" = $5 [["name", "make dinner"], ["description", "chop and prep to make dinner"], ["completion_date", ""], ["updated_at", "2019-04-14 23:22:50.339981"], ["id", 1]] + ↳ app/controllers/todos_controller.rb:39 +  (1.3ms) COMMIT + ↳ app/controllers/todos_controller.rb:39 +  (0.2ms) BEGIN + ↳ app/controllers/todos_controller.rb:39 + Todo Update (0.4ms) UPDATE "todos" SET "name" = $1, "description" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "todos"."id" = $5 [["name", "make dinner"], ["description", "chop and prep to make dinner"], ["completion_date", ""], ["updated_at", "2019-04-14 23:22:50.360351"], ["id", 2]] + ↳ app/controllers/todos_controller.rb:39 +  (0.5ms) COMMIT + ↳ app/controllers/todos_controller.rb:39 +  (0.1ms) BEGIN + ↳ app/controllers/todos_controller.rb:39 + Todo Update (0.3ms) UPDATE "todos" SET "completion_date" = $1, "updated_at" = $2 WHERE "todos"."id" = $3 [["completion_date", ""], ["updated_at", "2019-04-14 23:22:50.363294"], ["id", 3]] + ↳ app/controllers/todos_controller.rb:39 +  (0.5ms) COMMIT + ↳ app/controllers/todos_controller.rb:39 +  (0.1ms) BEGIN + ↳ app/controllers/todos_controller.rb:39 + Todo Update (0.3ms) UPDATE "todos" SET "name" = $1, "description" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "todos"."id" = $5 [["name", "make dinner"], ["description", "chop and prep to make dinner"], ["completion_date", ""], ["updated_at", "2019-04-14 23:22:50.365932"], ["id", 4]] + ↳ app/controllers/todos_controller.rb:39 +  (0.5ms) COMMIT + ↳ app/controllers/todos_controller.rb:39 +  (0.2ms) BEGIN + ↳ app/controllers/todos_controller.rb:39 + Todo Update (0.3ms) UPDATE "todos" SET "name" = $1, "description" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "todos"."id" = $5 [["name", "make dinner"], ["description", "chop and prep to make dinner"], ["completion_date", ""], ["updated_at", "2019-04-14 23:22:50.369070"], ["id", 5]] + ↳ app/controllers/todos_controller.rb:39 +  (0.4ms) COMMIT + ↳ app/controllers/todos_controller.rb:39 +  (0.1ms) BEGIN + ↳ app/controllers/todos_controller.rb:39 + Todo Update (0.3ms) UPDATE "todos" SET "name" = $1, "description" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "todos"."id" = $5 [["name", "make dinner"], ["description", "chop and prep to make dinner"], ["completion_date", ""], ["updated_at", "2019-04-14 23:22:50.371530"], ["id", 6]] + ↳ app/controllers/todos_controller.rb:39 +  (0.5ms) COMMIT + ↳ app/controllers/todos_controller.rb:39 +No template found for TodosController#update, rendering head :no_content +Completed 204 No Content in 166ms (ActiveRecord: 24.5ms) + + +Started PATCH "/todos/3" for ::1 at 2019-04-14 16:22:59 -0700 +Processing by TodosController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"TgpWuCKQ9HWBcageSSP9029FlE+Ssje3qkK6Y1EL/oLiNc6WHfe7kOI4DsjlfNwXAmSZrs76cjDtlX25ltbkkA==", "todo"=>{"name"=>"make dinner", "completion_date"=>"", "description"=>"chop and prep to make dinner"}, "commit"=>"Update task", "id"=>"3"} + Todo Load (0.5ms) SELECT "todos".* FROM "todos" + ↳ app/controllers/todos_controller.rb:39 +  (0.2ms) BEGIN + ↳ app/controllers/todos_controller.rb:39 +  (0.2ms) COMMIT + ↳ app/controllers/todos_controller.rb:39 +  (0.2ms) BEGIN + ↳ app/controllers/todos_controller.rb:39 +  (0.1ms) COMMIT + ↳ app/controllers/todos_controller.rb:39 +  (0.1ms) BEGIN + ↳ app/controllers/todos_controller.rb:39 +  (0.1ms) COMMIT + ↳ app/controllers/todos_controller.rb:39 +  (0.1ms) BEGIN + ↳ app/controllers/todos_controller.rb:39 +  (0.1ms) COMMIT + ↳ app/controllers/todos_controller.rb:39 +  (0.1ms) BEGIN + ↳ app/controllers/todos_controller.rb:39 +  (0.1ms) COMMIT + ↳ app/controllers/todos_controller.rb:39 +  (0.1ms) BEGIN + ↳ app/controllers/todos_controller.rb:39 +  (0.1ms) COMMIT + ↳ app/controllers/todos_controller.rb:39 +No template found for TodosController#update, rendering head :no_content +Completed 204 No Content in 98ms (ActiveRecord: 1.9ms) + + +Started GET "/todos/" for ::1 at 2019-04-14 16:23:13 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 33ms (Views: 29.3ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/1" for ::1 at 2019-04-14 16:23:17 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 40ms (Views: 34.8ms | ActiveRecord: 0.2ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:23:18 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (5.4ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (7.5ms) +Completed 200 OK in 44ms (Views: 34.5ms | ActiveRecord: 5.4ms) + + +Started GET "/todos/2" for ::1 at 2019-04-14 16:23:19 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 40ms (Views: 34.4ms | ActiveRecord: 0.2ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:23:20 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (11.7ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (13.6ms) +Completed 200 OK in 52ms (Views: 36.7ms | ActiveRecord: 11.7ms) + + +Started GET "/todos/3" for ::1 at 2019-04-14 16:23:21 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"3"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 40ms (Views: 36.6ms | ActiveRecord: 0.2ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:23:22 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (14.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (16.5ms) +Completed 200 OK in 52ms (Views: 33.2ms | ActiveRecord: 14.3ms) + + +Started GET "/todos/new" for ::1 at 2019-04-14 16:23:27 -0700 +Processing by TodosController#new as HTML + Rendering todos/new.html.erb within layouts/application + Rendered todos/new.html.erb within layouts/application (3.5ms) +Completed 200 OK in 46ms (Views: 42.0ms | ActiveRecord: 0.0ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:23:29 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (16.8ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (19.3ms) +Completed 200 OK in 57ms (Views: 36.1ms | ActiveRecord: 16.8ms) + + +Started GET "/todos/new" for ::1 at 2019-04-14 16:23:30 -0700 +Processing by TodosController#new as HTML + Rendering todos/new.html.erb within layouts/application + Rendered todos/new.html.erb within layouts/application (2.2ms) +Completed 200 OK in 42ms (Views: 38.6ms | ActiveRecord: 0.0ms) + + +Started POST "/todos" for ::1 at 2019-04-14 16:23:52 -0700 +Processing by TodosController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"B8waupYEINcmPyrBImKK9FmqYLmxPC9C74E+BiqxSka4khfvuuPWFfw/Z2EQErjt0UWeiuXy3ShwsRsJsC5wDQ==", "todo"=>{"name"=>"mina!", "completion_date"=>"4/23/19", "description"=>"kajsdflkasdjfl;kajsf"}, "commit"=>"Save task"} +  (0.2ms) BEGIN + ↳ app/controllers/todos_controller.rb:24 + Todo Create (1.9ms) INSERT INTO "todos" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "mina!"], ["description", "kajsdflkasdjfl;kajsf"], ["completion_date", "4/23/19"], ["created_at", "2019-04-14 23:23:52.961962"], ["updated_at", "2019-04-14 23:23:52.961962"]] + ↳ app/controllers/todos_controller.rb:24 +  (4.9ms) COMMIT + ↳ app/controllers/todos_controller.rb:24 +Redirected to http://localhost:3000/todos +Completed 302 Found in 11ms (ActiveRecord: 6.9ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:23:52 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.4ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 31ms (Views: 28.3ms | ActiveRecord: 0.4ms) + + +Started GET "/todos/new" for ::1 at 2019-04-14 16:23:58 -0700 +Processing by TodosController#new as HTML + Rendering todos/new.html.erb within layouts/application + Rendered todos/new.html.erb within layouts/application (3.3ms) +Completed 200 OK in 38ms (Views: 35.3ms | ActiveRecord: 0.0ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:24:00 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (11.0ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (13.3ms) +Completed 200 OK in 51ms (Views: 36.5ms | ActiveRecord: 11.0ms) + + +Started GET "/todos/7" for ::1 at 2019-04-14 16:24:01 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"7"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 41ms (Views: 35.4ms | ActiveRecord: 0.2ms) + + +Started GET "/todos/6/edit" for ::1 at 2019-04-14 16:24:13 -0700 +Processing by TodosController#edit as HTML + Parameters: {"id"=>"6"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:32 + Rendering todos/edit.html.erb within layouts/application + Rendered todos/_form.html.erb (2.8ms) + Rendered todos/edit.html.erb within layouts/application (5.9ms) +Completed 200 OK in 38ms (Views: 33.2ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/7/edit" for ::1 at 2019-04-14 16:24:21 -0700 +Processing by TodosController#edit as HTML + Parameters: {"id"=>"7"} + Todo Load (2.6ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:32 + Rendering todos/edit.html.erb within layouts/application + Rendered todos/_form.html.erb (2.6ms) + Rendered todos/edit.html.erb within layouts/application (6.1ms) +Completed 200 OK in 36ms (Views: 29.8ms | ActiveRecord: 2.6ms) + + +Started PATCH "/todos/7" for ::1 at 2019-04-14 16:24:29 -0700 +Processing by TodosController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"9J2zxbXtNMDRirSFGfVvk9aQbQ5kxtyD6je7hxRv2n5Yoivriop7JbLDElO1qk5Xu7Fg7ziOmQSt4Hxd07LAbA==", "todo"=>{"name"=>"mina!", "completion_date"=>"4/23/19", "description"=>"lalalala"}, "commit"=>"Update task", "id"=>"7"} + Todo Load (0.4ms) SELECT "todos".* FROM "todos" + ↳ app/controllers/todos_controller.rb:39 +  (0.2ms) BEGIN + ↳ app/controllers/todos_controller.rb:39 + Todo Update (1.8ms) UPDATE "todos" SET "name" = $1, "description" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "todos"."id" = $5 [["name", "mina!"], ["description", "lalalala"], ["completion_date", "4/23/19"], ["updated_at", "2019-04-14 23:24:29.617989"], ["id", 1]] + ↳ app/controllers/todos_controller.rb:39 +  (0.6ms) COMMIT + ↳ app/controllers/todos_controller.rb:39 +  (0.2ms) BEGIN + ↳ app/controllers/todos_controller.rb:39 + Todo Update (0.8ms) UPDATE "todos" SET "name" = $1, "description" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "todos"."id" = $5 [["name", "mina!"], ["description", "lalalala"], ["completion_date", "4/23/19"], ["updated_at", "2019-04-14 23:24:29.623933"], ["id", 2]] + ↳ app/controllers/todos_controller.rb:39 +  (0.8ms) COMMIT + ↳ app/controllers/todos_controller.rb:39 +  (0.1ms) BEGIN + ↳ app/controllers/todos_controller.rb:39 + Todo Update (0.3ms) UPDATE "todos" SET "name" = $1, "description" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "todos"."id" = $5 [["name", "mina!"], ["description", "lalalala"], ["completion_date", "4/23/19"], ["updated_at", "2019-04-14 23:24:29.628556"], ["id", 3]] + ↳ app/controllers/todos_controller.rb:39 +  (0.5ms) COMMIT + ↳ app/controllers/todos_controller.rb:39 +  (0.2ms) BEGIN + ↳ app/controllers/todos_controller.rb:39 + Todo Update (0.4ms) UPDATE "todos" SET "name" = $1, "description" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "todos"."id" = $5 [["name", "mina!"], ["description", "lalalala"], ["completion_date", "4/23/19"], ["updated_at", "2019-04-14 23:24:29.632079"], ["id", 4]] + ↳ app/controllers/todos_controller.rb:39 +  (0.4ms) COMMIT + ↳ app/controllers/todos_controller.rb:39 +  (0.1ms) BEGIN + ↳ app/controllers/todos_controller.rb:39 + Todo Update (0.4ms) UPDATE "todos" SET "name" = $1, "description" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "todos"."id" = $5 [["name", "mina!"], ["description", "lalalala"], ["completion_date", "4/23/19"], ["updated_at", "2019-04-14 23:24:29.635108"], ["id", 5]] + ↳ app/controllers/todos_controller.rb:39 +  (0.5ms) COMMIT + ↳ app/controllers/todos_controller.rb:39 +  (0.1ms) BEGIN + ↳ app/controllers/todos_controller.rb:39 + Todo Update (0.3ms) UPDATE "todos" SET "name" = $1, "description" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "todos"."id" = $5 [["name", "mina!"], ["description", "lalalala"], ["completion_date", "4/23/19"], ["updated_at", "2019-04-14 23:24:29.638366"], ["id", 6]] + ↳ app/controllers/todos_controller.rb:39 +  (0.4ms) COMMIT + ↳ app/controllers/todos_controller.rb:39 +  (0.1ms) BEGIN + ↳ app/controllers/todos_controller.rb:39 + Todo Update (0.5ms) UPDATE "todos" SET "description" = $1, "updated_at" = $2 WHERE "todos"."id" = $3 [["description", "lalalala"], ["updated_at", "2019-04-14 23:24:29.646174"], ["id", 7]] + ↳ app/controllers/todos_controller.rb:39 +  (0.4ms) COMMIT + ↳ app/controllers/todos_controller.rb:39 +No template found for TodosController#update, rendering head :no_content +Completed 204 No Content in 125ms (ActiveRecord: 9.5ms) + + +Started GET "/todos/7/edit" for ::1 at 2019-04-14 16:26:03 -0700 +Processing by TodosController#edit as HTML + Parameters: {"id"=>"7"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:32 + Rendering todos/edit.html.erb within layouts/application + Rendered todos/_form.html.erb (1.8ms) + Rendered todos/edit.html.erb within layouts/application (4.2ms) +Completed 200 OK in 54ms (Views: 40.3ms | ActiveRecord: 4.0ms) + + +Started GET "/todos/" for ::1 at 2019-04-14 16:26:07 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 22ms (Views: 19.1ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/new" for ::1 at 2019-04-14 16:26:10 -0700 +Processing by TodosController#new as HTML + Rendering todos/new.html.erb within layouts/application + Rendered todos/new.html.erb within layouts/application (3.3ms) +Completed 200 OK in 39ms (Views: 35.5ms | ActiveRecord: 0.0ms) + + +Started POST "/todos" for ::1 at 2019-04-14 16:26:58 -0700 +Processing by TodosController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"0EpJtK47PUnsFnYIbBDPn6l1dwNsp/YqtAQlXK7wdvhvFEThgtzLizYWO6heYP2GIZqJMDhpBEArNABTNG9Msw==", "todo"=>{"name"=>"ariiii", "completion_date"=>"04/29/19", "description"=>"we be eating"}, "commit"=>"Save task"} +  (0.2ms) BEGIN + ↳ app/controllers/todos_controller.rb:24 + Todo Create (0.5ms) INSERT INTO "todos" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "ariiii"], ["description", "we be eating"], ["completion_date", "04/29/19"], ["created_at", "2019-04-14 23:26:58.799112"], ["updated_at", "2019-04-14 23:26:58.799112"]] + ↳ app/controllers/todos_controller.rb:24 +  (0.4ms) COMMIT + ↳ app/controllers/todos_controller.rb:24 +Redirected to http://localhost:3000/todos +Completed 302 Found in 5ms (ActiveRecord: 1.1ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:26:58 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 22ms (Views: 18.9ms | ActiveRecord: 0.2ms) + + +Started GET "/todos/8" for ::1 at 2019-04-14 16:27:01 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"8"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 47ms (Views: 42.2ms | ActiveRecord: 0.2ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:27:02 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (11.0ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (13.3ms) +Completed 200 OK in 50ms (Views: 34.2ms | ActiveRecord: 11.0ms) + + +Started GET "/todos/8" for ::1 at 2019-04-14 16:27:04 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"8"} + Todo Load (2.4ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 37ms (Views: 30.5ms | ActiveRecord: 2.4ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:27:07 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (14.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (16.6ms) +Completed 200 OK in 53ms (Views: 34.2ms | ActiveRecord: 14.3ms) + + +Started GET "/todos/8" for ::1 at 2019-04-14 16:27:08 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"8"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 38ms (Views: 33.9ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/8/edit" for ::1 at 2019-04-14 16:27:26 -0700 +Processing by TodosController#edit as HTML + Parameters: {"id"=>"8"} + Todo Load (0.6ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:32 + Rendering todos/edit.html.erb within layouts/application + Rendered todos/_form.html.erb (2.6ms) + Rendered todos/edit.html.erb within layouts/application (4.9ms) +Completed 200 OK in 30ms (Views: 25.5ms | ActiveRecord: 0.6ms) + + +Started GET "/todos/" for ::1 at 2019-04-14 16:30:03 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (276.7ms) +Completed 500 Internal Server Error in 287ms (ActiveRecord: 3.3ms) + + + +NameError - undefined local variable or method `edit_task' for #<#:0x00007f81300c0bf8> +Did you mean? edit_task_url: + app/views/todos/index.html.erb:13:in `_app_views_todos_index_html_erb__3240661906827538305_70096416821000' + +Started POST "/__better_errors/346adeb80fdb5601/variables" for ::1 at 2019-04-14 16:30:04 -0700 +Started GET "/todos/" for ::1 at 2019-04-14 16:30:15 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (4.3ms) +Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.2ms) + + + +ActionController::UrlGenerationError - No route matches {:action=>"edit", :controller=>"todos"}, missing required keys: [:id]: + app/views/todos/index.html.erb:13:in `_app_views_todos_index_html_erb__3240661906827538305_70096388013340' + +Started POST "/__better_errors/74ecd8ae99aa8c97/variables" for ::1 at 2019-04-14 16:30:15 -0700 +Started GET "/todos/" for ::1 at 2019-04-14 16:30:48 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (2.1ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (4.7ms) +Completed 200 OK in 48ms (Views: 42.9ms | ActiveRecord: 2.1ms) + + +Started GET "/todos/8" for ::1 at 2019-04-14 16:30:52 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"8"} + Todo Load (0.4ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 31ms (Views: 25.9ms | ActiveRecord: 0.4ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:30:54 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.8ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 34ms (Views: 30.5ms | ActiveRecord: 0.8ms) + + +Started GET "/todos/7" for ::1 at 2019-04-14 16:31:15 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"7"} + Todo Load (4.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 44ms (Views: 33.1ms | ActiveRecord: 4.3ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:31:26 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (11.8ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (14.1ms) +Completed 200 OK in 53ms (Views: 38.0ms | ActiveRecord: 11.8ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:31:47 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 40ms (Views: 35.3ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/8" for ::1 at 2019-04-14 16:31:49 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"8"} + Todo Load (1.7ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 42ms (Views: 34.9ms | ActiveRecord: 1.7ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:31:51 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (2.9ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (16.6ms) +Completed 200 OK in 75ms (Views: 68.7ms | ActiveRecord: 2.9ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:38:56 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.7ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (10.3ms) +Completed 200 OK in 100ms (Views: 91.4ms | ActiveRecord: 0.7ms) + + +Started GET "/todos/3" for ::1 at 2019-04-14 16:38:58 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"3"} + Todo Load (1.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 48ms (Views: 37.1ms | ActiveRecord: 2.8ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:39:03 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.4ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 48ms (Views: 44.5ms | ActiveRecord: 0.4ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:40:20 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (18.2ms) +Completed 200 OK in 50ms (Views: 35.0ms | ActiveRecord: 7.6ms) + + +Started GET "/todos/8" for ::1 at 2019-04-14 16:40:25 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"8"} + Todo Load (0.4ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 47ms (Views: 18.8ms | ActiveRecord: 3.6ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:46:27 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (1.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 35ms (Views: 31.3ms | ActiveRecord: 1.3ms) + + +Started GET "/todos/6" for ::1 at 2019-04-14 16:48:30 -0700 + +SyntaxError - syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '(' + delete '/todos/:id', to: 'books#destr... + ^ +/Users/cloudylopez/Desktop/adadev/TaskList/config/routes.rb:17: syntax error, unexpected ',', expecting keyword_end + delete '/todos/:id', to: 'books#destroy' + ^ +/Users/cloudylopez/Desktop/adadev/TaskList/config/routes.rb:20: syntax error, unexpected keyword_end, expecting end-of-input: + config/routes.rb:17:in `' + +Started POST "/__better_errors/f6f5ee528efdc9cf/variables" for ::1 at 2019-04-14 16:48:30 -0700 +Started GET "/todos" for ::1 at 2019-04-14 16:48:34 -0700 + +ActionController::RoutingError (No route matches [GET] "/todos"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/todos" for ::1 at 2019-04-14 16:48:44 -0700 + +ActionController::RoutingError (No route matches [GET] "/todos"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/todos" for ::1 at 2019-04-14 16:49:56 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (10.4ms) +Completed 200 OK in 45ms (Views: 34.1ms | ActiveRecord: 3.8ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:51:31 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 29ms (Views: 26.0ms | ActiveRecord: 0.2ms) + + +Started GET "/todos" for ::1 at 2019-04-14 16:51:35 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.4ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 31ms (Views: 28.6ms | ActiveRecord: 0.4ms) + + +Started GET "/todos" for ::1 at 2019-04-14 17:01:25 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.5ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (19.8ms) +Completed 200 OK in 59ms (Views: 47.2ms | ActiveRecord: 6.0ms) + + +Started GET "/todos/8" for ::1 at 2019-04-14 17:01:29 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"8"} + Todo Load (0.5ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 49ms (Views: 20.6ms | ActiveRecord: 12.8ms) + + +Started GET "/todos" for ::1 at 2019-04-14 17:01:31 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (9.4ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (12.0ms) +Completed 200 OK in 50ms (Views: 35.2ms | ActiveRecord: 9.4ms) + + +Started GET "/todos/7" for ::1 at 2019-04-14 17:02:02 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"7"} + Todo Load (12.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 43ms (Views: 27.3ms | ActiveRecord: 12.2ms) + + +Started GET "/todos" for ::1 at 2019-04-14 17:02:07 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (12.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (14.8ms) +Completed 200 OK in 54ms (Views: 38.8ms | ActiveRecord: 12.3ms) + + +Started GET "/todos/2" for ::1 at 2019-04-14 17:02:22 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 27ms (Views: 22.4ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/2/edit" for ::1 at 2019-04-14 17:02:24 -0700 +Processing by TodosController#edit as HTML + Parameters: {"id"=>"2"} + Todo Load (0.4ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:32 + Rendering todos/edit.html.erb within layouts/application + Rendered todos/_form.html.erb (2.5ms) + Rendered todos/edit.html.erb within layouts/application (5.3ms) +Completed 200 OK in 27ms (Views: 22.8ms | ActiveRecord: 0.4ms) + + +Started GET "/todos/2/update" for ::1 at 2019-04-14 17:02:31 -0700 + +ActionController::RoutingError (No route matches [GET] "/todos/2/update"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/todos/2/edit" for ::1 at 2019-04-14 17:02:34 -0700 +Processing by TodosController#edit as HTML + Parameters: {"id"=>"2"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:32 + Rendering todos/edit.html.erb within layouts/application + Rendered todos/_form.html.erb (1.6ms) + Rendered todos/edit.html.erb within layouts/application (3.5ms) +Completed 200 OK in 27ms (Views: 22.7ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/2/edit" for ::1 at 2019-04-14 17:03:31 -0700 +Processing by TodosController#edit as HTML + Parameters: {"id"=>"2"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:32 + Rendering todos/edit.html.erb within layouts/application + Rendered todos/_form.html.erb (2.8ms) + Rendered todos/edit.html.erb within layouts/application (4.8ms) +Completed 200 OK in 31ms (Views: 26.9ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/" for ::1 at 2019-04-14 17:03:36 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 26ms (Views: 22.3ms | ActiveRecord: 0.2ms) + + +Started GET "/todos/4" for ::1 at 2019-04-14 17:03:38 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"4"} + Todo Load (8.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 42ms (Views: 30.1ms | ActiveRecord: 8.2ms) + + +Started GET "/todos/4/edit" for ::1 at 2019-04-14 17:03:39 -0700 +Processing by TodosController#edit as HTML + Parameters: {"id"=>"4"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:32 + Rendering todos/edit.html.erb within layouts/application + Rendered todos/_form.html.erb (4.3ms) + Rendered todos/edit.html.erb within layouts/application (9.0ms) +Completed 200 OK in 44ms (Views: 39.6ms | ActiveRecord: 0.2ms) + + +Started PATCH "/todos/4" for ::1 at 2019-04-14 17:03:41 -0700 +Processing by TodosController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"RIr2ZICIE6vw4DEB4uOQvMybBgR6vFB9s9qcvIFkpzgsBJQbElSseEcegQkRxcyxCJQ6/No+hwnkydW1j9Ht8Q==", "todo"=>{"name"=>"mina!", "completion_date"=>"4/23/19", "description"=>"lalalala"}, "commit"=>"Update task", "id"=>"4"} + Todo Load (1.7ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:39 +  (0.6ms) BEGIN + ↳ app/controllers/todos_controller.rb:40 +  (0.2ms) COMMIT + ↳ app/controllers/todos_controller.rb:40 +No template found for TodosController#update, rendering head :no_content +Completed 204 No Content in 97ms (ActiveRecord: 2.5ms) + + +Started GET "/todos/4/" for ::1 at 2019-04-14 17:04:58 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"4"} + Todo Load (0.4ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 27ms (Views: 22.3ms | ActiveRecord: 0.4ms) + + +Started GET "/todos" for ::1 at 2019-04-14 17:05:01 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (3.1ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (5.4ms) +Completed 200 OK in 42ms (Views: 35.5ms | ActiveRecord: 3.1ms) + + +Started GET "/todos/8" for ::1 at 2019-04-14 17:05:03 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"8"} + Todo Load (2.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (3.0ms) +Completed 200 OK in 37ms (Views: 30.7ms | ActiveRecord: 2.2ms) + + +Started GET "/todos/8/edit" for ::1 at 2019-04-14 17:05:04 -0700 +Processing by TodosController#edit as HTML + Parameters: {"id"=>"8"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:32 + Rendering todos/edit.html.erb within layouts/application + Rendered todos/_form.html.erb (2.8ms) + Rendered todos/edit.html.erb within layouts/application (9.2ms) +Completed 200 OK in 46ms (Views: 40.0ms | ActiveRecord: 0.2ms) + + +Started PATCH "/todos/8" for ::1 at 2019-04-14 17:05:09 -0700 +Processing by TodosController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"UvAbiGAVIEJdVRgeyJIFQ3mGv+Ed8hFDoJoSassw6INP6ggmgEpwVHqoU0mLOfaSm5enSUijZKtC69JZHCimmw==", "todo"=>{"name"=>"ariiii", "completion_date"=>"04/29/19", "description"=>"we be eating all day"}, "commit"=>"Update task", "id"=>"8"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:39 +  (0.9ms) BEGIN + ↳ app/controllers/todos_controller.rb:40 + Todo Update (1.9ms) UPDATE "todos" SET "description" = $1, "updated_at" = $2 WHERE "todos"."id" = $3 [["description", "we be eating all day"], ["updated_at", "2019-04-15 00:05:09.982741"], ["id", 8]] + ↳ app/controllers/todos_controller.rb:40 +  (5.8ms) COMMIT + ↳ app/controllers/todos_controller.rb:40 +No template found for TodosController#update, rendering head :no_content +Completed 204 No Content in 108ms (ActiveRecord: 8.9ms) + + +Started GET "/todos/8/edit" for ::1 at 2019-04-14 17:07:08 -0700 + +SyntaxError - syntax error, unexpected keyword_end, expecting end-of-input: + app/controllers/todos_controller.rb:65:in `' + +Started POST "/__better_errors/6ae8b0235b04e782/variables" for ::1 at 2019-04-14 17:07:08 -0700 +Started GET "/todos/8/edit" for ::1 at 2019-04-14 17:07:33 -0700 + +SyntaxError - syntax error, unexpected keyword_end, expecting end-of-input: + app/controllers/todos_controller.rb:65:in `' + +Started POST "/__better_errors/014f54f99a730148/variables" for ::1 at 2019-04-14 17:07:33 -0700 +Started GET "/todos/8/edit" for ::1 at 2019-04-14 17:08:01 -0700 + +SyntaxError - syntax error, unexpected keyword_end, expecting end-of-input: + app/controllers/todos_controller.rb:66:in `' + +Started POST "/__better_errors/889f3592a6269fa8/variables" for ::1 at 2019-04-14 17:08:01 -0700 +Started GET "/todos/8/edit" for ::1 at 2019-04-14 17:08:21 -0700 + +SyntaxError - syntax error, unexpected keyword_end, expecting end-of-input: + app/controllers/todos_controller.rb:65:in `' + +Started POST "/__better_errors/916e9dbeefbc0f31/variables" for ::1 at 2019-04-14 17:08:22 -0700 +Started GET "/todos/8/edit" for ::1 at 2019-04-14 17:08:42 -0700 + +SyntaxError - syntax error, unexpected keyword_end, expecting end-of-input: + app/controllers/todos_controller.rb:65:in `' + +Started POST "/__better_errors/55b232307993f081/variables" for ::1 at 2019-04-14 17:08:42 -0700 +Started GET "/todos" for ::1 at 2019-04-14 17:08:47 -0700 + +SyntaxError - syntax error, unexpected keyword_end, expecting end-of-input: + app/controllers/todos_controller.rb:65:in `' + +Started POST "/__better_errors/05118a9fb6026d33/variables" for ::1 at 2019-04-14 17:08:47 -0700 +Started GET "/todos" for ::1 at 2019-04-14 17:08:52 -0700 + +SyntaxError - syntax error, unexpected keyword_end, expecting end-of-input: + app/controllers/todos_controller.rb:65:in `' + +Started POST "/__better_errors/cc96ab06c15cfa61/variables" for ::1 at 2019-04-14 17:08:52 -0700 +Started GET "/todos" for ::1 at 2019-04-14 17:09:26 -0700 + +SyntaxError - syntax error, unexpected keyword_end, expecting end-of-input: + app/controllers/todos_controller.rb:65:in `' + +Started POST "/__better_errors/b75c238c0d2623ca/variables" for ::1 at 2019-04-14 17:09:26 -0700 +Started GET "/todos" for ::1 at 2019-04-14 17:10:00 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.6ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (10.7ms) +Completed 200 OK in 37ms (Views: 28.8ms | ActiveRecord: 3.6ms) + + +Started GET "/todos/8" for ::1 at 2019-04-14 17:10:05 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"8"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 36ms (Views: 17.7ms | ActiveRecord: 5.3ms) + + +Started GET "/todos/8/edit" for ::1 at 2019-04-14 17:10:07 -0700 +Processing by TodosController#edit as HTML + Parameters: {"id"=>"8"} + Todo Load (0.8ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:32 + Rendering todos/edit.html.erb within layouts/application + Rendered todos/_form.html.erb (3.8ms) + Rendered todos/edit.html.erb within layouts/application (8.1ms) +Completed 200 OK in 42ms (Views: 36.0ms | ActiveRecord: 0.8ms) + + +Started PATCH "/todos/8" for ::1 at 2019-04-14 17:10:09 -0700 +Processing by TodosController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"KCdpWgX7uO9lVqMCI5wRlof0s7a5Fst+K4DNx5PO9bc1PXr05aTo+UKr6FVgN+JHZeWrHuxHvpbJ8Q30RNa7rw==", "todo"=>{"name"=>"ariiii", "completion_date"=>"04/29/19", "description"=>"we be eating all day"}, "commit"=>"Update task", "id"=>"8"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:39 +  (0.2ms) BEGIN + ↳ app/controllers/todos_controller.rb:40 +  (0.2ms) COMMIT + ↳ app/controllers/todos_controller.rb:40 +  (0.2ms) BEGIN + ↳ app/controllers/todos_controller.rb:41 +  (0.3ms) COMMIT + ↳ app/controllers/todos_controller.rb:41 +Redirected to http://localhost:3000/todos/8 +Completed 302 Found in 7ms (ActiveRecord: 1.1ms) + + +Started GET "/todos/8" for ::1 at 2019-04-14 17:10:09 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"8"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 32ms (Views: 28.1ms | ActiveRecord: 0.2ms) + + +Started GET "/todos/8/edit" for ::1 at 2019-04-14 17:10:14 -0700 +Processing by TodosController#edit as HTML + Parameters: {"id"=>"8"} + Todo Load (4.1ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:32 + Rendering todos/edit.html.erb within layouts/application + Rendered todos/_form.html.erb (3.4ms) + Rendered todos/edit.html.erb within layouts/application (7.1ms) +Completed 200 OK in 43ms (Views: 34.6ms | ActiveRecord: 4.1ms) + + +Started PATCH "/todos/8" for ::1 at 2019-04-14 17:10:20 -0700 +Processing by TodosController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"aRw0QOIXg9cS9ANKIN+YUdyb9jrD+AwXQOdv0Wfre6x0BifuAkjTwTUJSB1jdGuAPorukpapef+ilq/isPM1tA==", "todo"=>{"name"=>"ariiii", "completion_date"=>"04/29/19", "description"=>"we be eating all day and all night"}, "commit"=>"Update task", "id"=>"8"} + Todo Load (3.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:39 +  (0.3ms) BEGIN + ↳ app/controllers/todos_controller.rb:40 + Todo Update (1.1ms) UPDATE "todos" SET "description" = $1, "updated_at" = $2 WHERE "todos"."id" = $3 [["description", "we be eating all day and all night"], ["updated_at", "2019-04-15 00:10:20.895505"], ["id", 8]] + ↳ app/controllers/todos_controller.rb:40 +  (0.6ms) COMMIT + ↳ app/controllers/todos_controller.rb:40 +  (0.2ms) BEGIN + ↳ app/controllers/todos_controller.rb:41 +  (0.1ms) COMMIT + ↳ app/controllers/todos_controller.rb:41 +Redirected to http://localhost:3000/todos/8 +Completed 302 Found in 13ms (ActiveRecord: 5.5ms) + + +Started GET "/todos/8" for ::1 at 2019-04-14 17:10:20 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"8"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 23ms (Views: 19.7ms | ActiveRecord: 0.2ms) + + +Started GET "/todos" for ::1 at 2019-04-14 17:10:23 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (7.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (10.2ms) +Completed 200 OK in 45ms (Views: 33.6ms | ActiveRecord: 7.2ms) + + +Started GET "/todos" for ::1 at 2019-04-14 17:12:56 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 29ms (Views: 26.2ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/6" for ::1 at 2019-04-14 17:13:00 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"6"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 38ms (Views: 34.9ms | ActiveRecord: 0.3ms) + + +Started DELETE "/todos/6" for ::1 at 2019-04-14 17:13:02 -0700 + +NameError - uninitialized constant BooksController: + +Started POST "/__better_errors/57a037570b930a12/variables" for ::1 at 2019-04-14 17:13:02 -0700 +Started DELETE "/todos/6" for ::1 at 2019-04-14 17:13:37 -0700 + +NameError - uninitialized constant BooksController: + +Started POST "/__better_errors/73c2ce9c249a28f9/variables" for ::1 at 2019-04-14 17:13:37 -0700 +Started GET "/todos/" for ::1 at 2019-04-14 17:13:41 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 33ms (Views: 29.6ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/8" for ::1 at 2019-04-14 17:13:43 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"8"} + Todo Load (0.6ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (2.2ms) +Completed 200 OK in 37ms (Views: 30.6ms | ActiveRecord: 0.6ms) + + +Started DELETE "/todos.8" for ::1 at 2019-04-14 17:13:46 -0700 + +ActionController::RoutingError (No route matches [DELETE] "/todos.8"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started DELETE "/todos.8" for ::1 at 2019-04-14 17:15:59 -0700 + +ActionController::RoutingError (No route matches [DELETE] "/todos.8"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/todos." for ::1 at 2019-04-14 17:16:01 -0700 + +ActionController::RoutingError (No route matches [GET] "/todos."): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/todos" for ::1 at 2019-04-14 17:16:06 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (13.7ms) +Completed 200 OK in 54ms (Views: 41.4ms | ActiveRecord: 4.5ms) + + +Started GET "/todos/8" for ::1 at 2019-04-14 17:16:09 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"8"} + Todo Load (1.8ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 47ms (Views: 39.0ms | ActiveRecord: 1.8ms) + + +Started DELETE "/todos.8" for ::1 at 2019-04-14 17:16:10 -0700 + +ActionController::RoutingError (No route matches [DELETE] "/todos.8"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started DELETE "/todos.8" for ::1 at 2019-04-14 17:16:22 -0700 + +ActionController::RoutingError (No route matches [DELETE] "/todos.8"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started DELETE "/todos.8" for ::1 at 2019-04-14 17:17:04 -0700 + +ActionController::RoutingError (No route matches [DELETE] "/todos.8"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/todos" for ::1 at 2019-04-14 17:17:06 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.8ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (13.8ms) +Completed 200 OK in 57ms (Views: 45.5ms | ActiveRecord: 6.1ms) + + +Started GET "/todos/2" for ::1 at 2019-04-14 17:17:14 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (6.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 51ms (Views: 37.4ms | ActiveRecord: 6.2ms) + + +Started DELETE "/todos.2" for ::1 at 2019-04-14 17:17:16 -0700 + +ActionController::RoutingError (No route matches [DELETE] "/todos.2"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started DELETE "/todos.2" for ::1 at 2019-04-14 17:19:37 -0700 + +ActionController::RoutingError (No route matches [DELETE] "/todos.2"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/todos" for ::1 at 2019-04-14 17:19:41 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 37ms (Views: 33.1ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/8" for ::1 at 2019-04-14 17:19:43 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"8"} + Todo Load (4.0ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 41ms (Views: 34.1ms | ActiveRecord: 4.0ms) + + +Started DELETE "/todos/8" for ::1 at 2019-04-14 17:19:45 -0700 +Processing by TodosController#destroy as HTML + Parameters: {"authenticity_token"=>"tRVcKZTv0m7XSDjzDn58+dn9+iCLlNqqTx5jOi5dF8AZKsQHq4idi7QBniWiIV09tNz3wdfcny0IyaTg6YAN0g==", "id"=>"8"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:50 +  (0.2ms) BEGIN + ↳ app/controllers/todos_controller.rb:54 + Todo Destroy (0.3ms) DELETE FROM "todos" WHERE "todos"."id" = $1 [["id", 8]] + ↳ app/controllers/todos_controller.rb:54 +  (0.4ms) COMMIT + ↳ app/controllers/todos_controller.rb:54 +Redirected to http://localhost:3000/todos +Completed 302 Found in 6ms (ActiveRecord: 1.3ms) + + +Started GET "/todos" for ::1 at 2019-04-14 17:19:45 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 23ms (Views: 20.7ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/2" for ::1 at 2019-04-14 17:19:52 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (3.0ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 43ms (Views: 36.8ms | ActiveRecord: 3.0ms) + + +Started GET "/todos/2/edit" for ::1 at 2019-04-14 17:19:55 -0700 +Processing by TodosController#edit as HTML + Parameters: {"id"=>"2"} + Todo Load (3.7ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:32 + Rendering todos/edit.html.erb within layouts/application + Rendered todos/_form.html.erb (3.6ms) + Rendered todos/edit.html.erb within layouts/application (7.6ms) +Completed 200 OK in 46ms (Views: 39.6ms | ActiveRecord: 3.7ms) + + +Started PATCH "/todos/2" for ::1 at 2019-04-14 17:20:00 -0700 +Processing by TodosController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"+EIvIkdUbk7q3q/iGyrtJ6rqo8DuhVXh2rfg9nPo1CNMAxD+6LcfD8NeAlMUX+srNU11ZBqkZ++XyrBQOLZC4w==", "todo"=>{"name"=>"mina!", "completion_date"=>"4/23/19", "description"=>"lalalala"}, "commit"=>"Update task", "id"=>"2"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:39 +  (0.2ms) BEGIN + ↳ app/controllers/todos_controller.rb:40 +  (0.2ms) COMMIT + ↳ app/controllers/todos_controller.rb:40 +  (0.6ms) BEGIN + ↳ app/controllers/todos_controller.rb:41 +  (0.2ms) COMMIT + ↳ app/controllers/todos_controller.rb:41 +Redirected to http://localhost:3000/todos/2 +Completed 302 Found in 8ms (ActiveRecord: 1.5ms) + + +Started GET "/todos/2" for ::1 at 2019-04-14 17:20:00 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"2"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 25ms (Views: 21.6ms | ActiveRecord: 0.3ms) + + +Started DELETE "/todos/2" for ::1 at 2019-04-14 17:20:01 -0700 +Processing by TodosController#destroy as HTML + Parameters: {"authenticity_token"=>"yeT+Fjy4NyX6yOwlajlnIzLc35CUvtdZP/fjbI/42xVl22Y4A994wJmBSvPGZkbnX/3Sccj2kt54ICS2SCXBBw==", "id"=>"2"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:50 +  (0.1ms) BEGIN + ↳ app/controllers/todos_controller.rb:54 + Todo Destroy (0.4ms) DELETE FROM "todos" WHERE "todos"."id" = $1 [["id", 2]] + ↳ app/controllers/todos_controller.rb:54 +  (0.6ms) COMMIT + ↳ app/controllers/todos_controller.rb:54 +Redirected to http://localhost:3000/todos +Completed 302 Found in 5ms (ActiveRecord: 1.3ms) + + +Started GET "/todos" for ::1 at 2019-04-14 17:20:01 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.5ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 20ms (Views: 17.4ms | ActiveRecord: 0.5ms) + + +Started GET "/todos" for ::1 at 2019-04-14 17:22:12 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 61ms (Views: 58.4ms | ActiveRecord: 0.2ms) + + +Started GET "/todos" for ::1 at 2019-04-14 17:22:17 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 23ms (Views: 20.0ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/6" for ::1 at 2019-04-14 17:22:20 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"6"} + Todo Load (4.9ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 39ms (Views: 29.3ms | ActiveRecord: 4.9ms) + + +Started DELETE "/todos/6" for ::1 at 2019-04-14 17:22:28 -0700 +Processing by TodosController#destroy as HTML + Parameters: {"authenticity_token"=>"y+SceXWqj58jOdNXmLwbyX60q6914oocpqnaP7m2L2hn2wRXSs3AekBwdYE04zoNE5WmTimqz5vhfh3lfms1eg==", "id"=>"6"} + Todo Load (0.5ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:50 +  (0.2ms) BEGIN + ↳ app/controllers/todos_controller.rb:54 + Todo Destroy (0.3ms) DELETE FROM "todos" WHERE "todos"."id" = $1 [["id", 6]] + ↳ app/controllers/todos_controller.rb:54 +  (0.8ms) COMMIT + ↳ app/controllers/todos_controller.rb:54 +Redirected to http://localhost:3000/todos +Completed 302 Found in 5ms (ActiveRecord: 1.8ms) + + +Started GET "/todos" for ::1 at 2019-04-14 17:22:28 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 27ms (Views: 24.2ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/5" for ::1 at 2019-04-14 17:22:38 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"5"} + Todo Load (1.4ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (3.3ms) +Completed 200 OK in 38ms (Views: 32.4ms | ActiveRecord: 1.4ms) + + +Started DELETE "/todos/5" for ::1 at 2019-04-14 17:22:40 -0700 +Processing by TodosController#destroy as HTML + Parameters: {"authenticity_token"=>"IIs/gidR4SH0WkRLXvzbZhHXhQa3ZWVVIpuLiI8AVT6MtKesGDauxJcT4p3yo/qifPaI5+stINJlTExSSN1PLA==", "id"=>"5"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:50 +  (0.1ms) BEGIN + ↳ app/controllers/todos_controller.rb:54 + Todo Destroy (0.4ms) DELETE FROM "todos" WHERE "todos"."id" = $1 [["id", 5]] + ↳ app/controllers/todos_controller.rb:54 +  (1.7ms) COMMIT + ↳ app/controllers/todos_controller.rb:54 +Redirected to http://localhost:3000/todos +Completed 302 Found in 6ms (ActiveRecord: 2.4ms) + + +Started GET "/todos" for ::1 at 2019-04-14 17:22:40 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 28ms (Views: 25.6ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/1" for ::1 at 2019-04-14 17:27:13 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.1ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 43ms (Views: 28.6ms | ActiveRecord: 3.0ms) + + +Started GET "/todos/1/edit" for ::1 at 2019-04-14 17:27:16 -0700 +Processing by TodosController#edit as HTML + Parameters: {"id"=>"1"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:32 + Rendering todos/edit.html.erb within layouts/application + Rendered todos/_form.html.erb (3.6ms) + Rendered todos/edit.html.erb within layouts/application (8.6ms) +Completed 200 OK in 42ms (Views: 36.4ms | ActiveRecord: 0.2ms) + + +Started PATCH "/todos/1" for ::1 at 2019-04-14 17:27:22 -0700 +Processing by TodosController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"HEmGrJOydp5Q31r5nGHu1CZ4L0x6xwDVgnO2NBql8u6I41PlySCPDulpDxzLOXC9oyk2VGo1QLWusoLe98KloQ==", "todo"=>{"name"=>"mina!", "completion_date"=>"4/23/19", "description"=>"tralalala"}, "commit"=>"Update task", "id"=>"1"} + Todo Load (0.6ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:39 +  (0.4ms) BEGIN + ↳ app/controllers/todos_controller.rb:40 + Todo Update (0.4ms) UPDATE "todos" SET "description" = $1, "updated_at" = $2 WHERE "todos"."id" = $3 [["description", "tralalala"], ["updated_at", "2019-04-15 00:27:22.285868"], ["id", 1]] + ↳ app/controllers/todos_controller.rb:40 +  (0.5ms) COMMIT + ↳ app/controllers/todos_controller.rb:40 +  (0.1ms) BEGIN + ↳ app/controllers/todos_controller.rb:41 +  (0.2ms) COMMIT + ↳ app/controllers/todos_controller.rb:41 +Redirected to http://localhost:3000/todos/1 +Completed 302 Found in 11ms (ActiveRecord: 2.2ms) + + +Started GET "/todos/1" for ::1 at 2019-04-14 17:27:22 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"1"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 22ms (Views: 19.7ms | ActiveRecord: 0.2ms) + + +Started DELETE "/todos/1" for ::1 at 2019-04-14 17:27:26 -0700 +Processing by TodosController#destroy as HTML + Parameters: {"authenticity_token"=>"c8PLuACrQWzurkUrUDgY/e3sTvCjXQyhHBnUnwWv8oXf/FOWP8wOiY3n4/38Zzk5gM1DEf8VSSZbzhNFwnLolw==", "id"=>"1"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:50 +  (0.1ms) BEGIN + ↳ app/controllers/todos_controller.rb:54 + Todo Destroy (0.3ms) DELETE FROM "todos" WHERE "todos"."id" = $1 [["id", 1]] + ↳ app/controllers/todos_controller.rb:54 +  (2.1ms) COMMIT + ↳ app/controllers/todos_controller.rb:54 +Redirected to http://localhost:3000/todos +Completed 302 Found in 6ms (ActiveRecord: 2.7ms) + + +Started GET "/todos" for ::1 at 2019-04-14 17:27:26 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 23ms (Views: 20.5ms | ActiveRecord: 0.2ms) + + +Started GET "/todos/new" for ::1 at 2019-04-14 17:37:09 -0700 +Processing by TodosController#new as HTML + Rendering todos/new.html.erb within layouts/application + Rendered todos/new.html.erb within layouts/application (2.3ms) +Completed 200 OK in 64ms (Views: 46.1ms | ActiveRecord: 5.9ms) + + +Started GET "/todos" for ::1 at 2019-04-14 17:37:12 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (16.5ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (19.1ms) +Completed 200 OK in 52ms (Views: 31.4ms | ActiveRecord: 16.5ms) + + +Started GET "/todos/7" for ::1 at 2019-04-14 17:37:16 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"7"} + Todo Load (0.3ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 43ms (Views: 35.0ms | ActiveRecord: 1.2ms) + + +Started GET "/todos" for ::1 at 2019-04-14 17:37:19 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (2.0ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 47ms (Views: 41.0ms | ActiveRecord: 2.0ms) + + +Started GET "/todos" for ::1 at 2019-04-14 17:41:35 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.4ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (11.7ms) +Completed 200 OK in 55ms (Views: 43.8ms | ActiveRecord: 5.1ms) + + +Started GET "/todos" for ::1 at 2019-04-14 17:41:53 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (12.5ms) +Completed 200 OK in 56ms (Views: 46.7ms | ActiveRecord: 3.1ms) + + +Started GET "/todos" for ::1 at 2019-04-14 17:41:57 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (10.3ms) +Completed 200 OK in 29ms (Views: 23.4ms | ActiveRecord: 2.4ms) + + +Started GET "/todos" for ::1 at 2019-04-14 17:42:12 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.6ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (11.1ms) +Completed 200 OK in 39ms (Views: 30.8ms | ActiveRecord: 2.9ms) + + +Started GET "/todos" for ::1 at 2019-04-14 17:42:16 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.6ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (11.8ms) +Completed 200 OK in 33ms (Views: 25.4ms | ActiveRecord: 4.2ms) + + +Started GET "/todos" for ::1 at 2019-04-14 17:42:25 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (9.2ms) +Completed 200 OK in 30ms (Views: 24.1ms | ActiveRecord: 2.8ms) + + +Started GET "/todos" for ::1 at 2019-04-14 17:42:29 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 22ms (Views: 18.7ms | ActiveRecord: 0.2ms) + + +Started GET "/todos" for ::1 at 2019-04-14 17:42:42 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 28ms (Views: 24.8ms | ActiveRecord: 0.3ms) + + +Started GET "/todos/7" for ::1 at 2019-04-14 17:42:49 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"7"} + Todo Load (16.5ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 52ms (Views: 27.9ms | ActiveRecord: 16.5ms) + + +Started GET "/todos" for ::1 at 2019-04-14 17:42:55 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (3.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 54ms (Views: 47.6ms | ActiveRecord: 3.2ms) + + +Started GET "/todos/3" for ::1 at 2019-04-14 17:42:56 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"3"} + Todo Load (12.0ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 42ms (Views: 26.2ms | ActiveRecord: 12.0ms) + + +Started GET "/todos" for ::1 at 2019-04-14 17:42:58 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (12.6ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (15.6ms) +Completed 200 OK in 53ms (Views: 38.1ms | ActiveRecord: 12.6ms) + + diff --git a/log/test.log b/log/test.log index 8c20c2be5..fdbb7c634 100644 --- a/log/test.log +++ b/log/test.log @@ -64,3 +64,47 @@ TodosController: test_0001_should get index TodosController: test_0001_should get index -------------------------------------------  (0.2ms) ROLLBACK +  (1.6ms) 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.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (223.6ms) DROP DATABASE IF EXISTS "TaskList_test" +  (667.1ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' + SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (1.5ms) DROP TABLE IF EXISTS "todos" CASCADE +  (17.9ms) CREATE TABLE "todos" ("id" bigserial primary key, "name" character varying, "description" character varying, "completion_date" character varying, "date" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (4.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20190409221826) +  (2.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (0.1ms) BEGIN + ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2019-04-12 22:54:35.019673"], ["updated_at", "2019-04-12 22:54:35.019673"]] +  (0.4ms) COMMIT + ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (0.2ms) BEGIN +  (0.1ms) COMMIT +  (0.5ms) 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.5ms) 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 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.7ms) 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 +  (0.7ms) 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 +  (0.5ms) 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 +  (1.0ms) 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.5ms) 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 +  (1.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 +  (0.5ms) 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 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC diff --git a/test/controllers/tasks_controller_test.rb b/test/controllers/tasks_controller_test.rb index 129d3dafa..b2c1430bd 100644 --- a/test/controllers/tasks_controller_test.rb +++ b/test/controllers/tasks_controller_test.rb @@ -1,128 +1,134 @@ -# require "test_helper" - -# describe TasksController do -# let (:task) { -# Task.create name: "sample task", description: "this is an example for a test", -# completion_date: Time.now + 5.days -# } - -# # Tests for Wave 1 -# describe "index" do -# it "can get the index path" do -# # Act -# get tasks_path - -# # Assert -# must_respond_with :success -# end - -# it "can get the root path" do -# # Act -# get root_path - -# # Assert -# must_respond_with :success -# end -# end - -# # Unskip these tests for Wave 2 -# describe "show" do -# it "can get a valid task" do -# skip -# # Act -# get task_path(task.id) - -# # Assert -# must_respond_with :success -# end - -# it "will redirect for an invalid task" do -# skip -# # Act -# get task_path(-1) - -# # Assert -# must_respond_with :redirect -# expect(flash[:error]).must_equal "Could not find task with id: -1" -# end -# end - -# describe "new" do -# it "can get the new task page" do -# skip - -# # Act -# get new_task_path - -# # Assert -# must_respond_with :success -# end -# end +# frozen_string_literal: true -# describe "create" do -# it "can create a new task" do -# skip - -# # Arrange -# task_hash = { -# task: { -# name: "new task", -# description: "new task description", -# completion_date: nil, -# }, -# } - -# # Act-Assert -# expect { -# post tasks_path, params: task_hash -# }.must_change "Task.count", 1 - -# new_task = Task.find_by(name: task_hash[:task][:name]) -# expect(new_task.description).must_equal task_hash[:task][:description] -# expect(new_task.due_date.to_time.to_i).must_equal task_hash[:task][:due_date].to_i -# expect(new_task.completed).must_equal task_hash[:task][:completed] - -# must_respond_with :redirect -# must_redirect_to task_path(new_task.id) -# end -# end - -# # Unskip and complete these tests for Wave 3 -# describe "edit" do -# it "can get the edit page for an existing task" do -# skip -# # Your code here -# end - -# it "will respond with redirect when attempting to edit a nonexistant task" do -# skip -# # Your code here -# end -# end - -# # Uncomment and complete these tests for Wave 3 -# describe "update" do -# # Note: If there was a way to fail to save the changes to a task, that would be a great -# # thing to test. -# it "can update an existing task" do -# skip -# # Your code here -# end - -# it "will redirect to the root page if given an invalid id" do -# skip -# # Your code here -# end -# end - -# # Complete these tests for Wave 4 -# describe "destroy" do -# # Your tests go here +# require "test_helper" +# describe TodosController do +# it "should get index" do +# get todos_index_url +# value(response).must_be :success? # end -# # Complete for Wave 4 -# describe "toggle_complete" do -# # Your tests go here -# end # end +require 'test_helper' + +describe TodosController do + # Note to students: Your todo model **may** be different and + # you may need to modify this. + let (:todo) do + Todo.create name: 'sample todo', description: 'this is an example for a test', + completed: false + end + + # Tests for Wave 1 + describe 'index' do + it 'can get the index path' do + # Act + get todos_path + + # Assert + must_respond_with :success + end + + it 'can get the root path' do + # Act + get root_path + + # Assert + must_respond_with :success + end + end + + # Unskip these tests for Wave 2 + describe 'show' do + it 'can get a valid todo' do + # Act + get todo_path(todo.id) + + # Assert + must_respond_with :success + end + + it 'will redirect for an invalid todo' do + # Act + get todo_path(-1) + + # Assert + must_respond_with :redirect + end + end + + describe 'new' do + it 'can get the new todo page' do + # Act + get new_todo_path + + # Assert + must_respond_with :success + end + end + + describe 'create' do + it 'can create a new todo' do + # Arrange + # Note to students: Your todo model **may** be different and + # you may need to modify this. + todo_hash = { + todo: { + name: 'new todo', + description: 'new todo description', + completed: false + } + } + + # Act-Assert + expect do + post todos_path, params: todo_hash + end.must_change 'todo.count', 1 + + new_todo = Todo.find_by(name: todo_hash[:todo][:name]) + expect(new_todo.description).must_equal todo_hash[:todo][:description] + expect(new_todo.completed).must_equal todo_hash[:todo][:completed] + + must_respond_with :redirect + must_redirect_to todos_path + end + end + + # Unskip and complete these tests for Wave 3 + describe 'edit' do + it 'can get the edit page for an existing todo' do + skip + # Your code here + end + + it 'will respond with redirect when attempting to edit a nonexistant todo' do + skip + # Your code here + end + end + + # Uncomment and complete these tests for Wave 3 + describe 'update' do + # Note: If there was a way to fail to save the changes to a todo, that would be a great + # thing to test. + it 'can update an existing todo' do + skip + # Your code here + end + + it 'will redirect to the root page if given an invalid id' do + skip + # Your code here + end + end + + # Complete these tests for Wave 4 + describe 'destroy' do + # Your tests go here + end + + # Complete for Wave 4 + describe 'toggle_complete' do + # Your tests go here + end +end diff --git a/test/controllers/todos_controller_test.rb b/test/controllers/todos_controller_test.rb index 536b44428..b2c1430bd 100644 --- a/test/controllers/todos_controller_test.rb +++ b/test/controllers/todos_controller_test.rb @@ -1,9 +1,134 @@ -require "test_helper" +# frozen_string_literal: true + +# require "test_helper" + +# describe TodosController do +# it "should get index" do +# get todos_index_url +# value(response).must_be :success? +# end + +# end +require 'test_helper' describe TodosController do - it "should get index" do - get todos_index_url - value(response).must_be :success? + # Note to students: Your todo model **may** be different and + # you may need to modify this. + let (:todo) do + Todo.create name: 'sample todo', description: 'this is an example for a test', + completed: false + end + + # Tests for Wave 1 + describe 'index' do + it 'can get the index path' do + # Act + get todos_path + + # Assert + must_respond_with :success + end + + it 'can get the root path' do + # Act + get root_path + + # Assert + must_respond_with :success + end + end + + # Unskip these tests for Wave 2 + describe 'show' do + it 'can get a valid todo' do + # Act + get todo_path(todo.id) + + # Assert + must_respond_with :success + end + + it 'will redirect for an invalid todo' do + # Act + get todo_path(-1) + + # Assert + must_respond_with :redirect + end + end + + describe 'new' do + it 'can get the new todo page' do + # Act + get new_todo_path + + # Assert + must_respond_with :success + end + end + + describe 'create' do + it 'can create a new todo' do + # Arrange + # Note to students: Your todo model **may** be different and + # you may need to modify this. + todo_hash = { + todo: { + name: 'new todo', + description: 'new todo description', + completed: false + } + } + + # Act-Assert + expect do + post todos_path, params: todo_hash + end.must_change 'todo.count', 1 + + new_todo = Todo.find_by(name: todo_hash[:todo][:name]) + expect(new_todo.description).must_equal todo_hash[:todo][:description] + expect(new_todo.completed).must_equal todo_hash[:todo][:completed] + + must_respond_with :redirect + must_redirect_to todos_path + end end + # Unskip and complete these tests for Wave 3 + describe 'edit' do + it 'can get the edit page for an existing todo' do + skip + # Your code here + end + + it 'will respond with redirect when attempting to edit a nonexistant todo' do + skip + # Your code here + end + end + + # Uncomment and complete these tests for Wave 3 + describe 'update' do + # Note: If there was a way to fail to save the changes to a todo, that would be a great + # thing to test. + it 'can update an existing todo' do + skip + # Your code here + end + + it 'will redirect to the root page if given an invalid id' do + skip + # Your code here + end + end + + # Complete these tests for Wave 4 + describe 'destroy' do + # Your tests go here + end + + # Complete for Wave 4 + describe 'toggle_complete' do + # Your tests go here + end end From 87e30b2c38c19acc47a7e67d6289756df37cd645 Mon Sep 17 00:00:00 2001 From: Cloudy Lopez Date: Sun, 14 Apr 2019 18:15:51 -0700 Subject: [PATCH 7/7] got as far as i'm gonna get --- app/controllers/todos_controller.rb | 4 ++- log/development.log | 43 +++++++++++++++++++++++ test/controllers/todos_controller_test.rb | 19 +++++++++- 3 files changed, 64 insertions(+), 2 deletions(-) diff --git a/app/controllers/todos_controller.rb b/app/controllers/todos_controller.rb index 4231b8952..71a1d45c1 100644 --- a/app/controllers/todos_controller.rb +++ b/app/controllers/todos_controller.rb @@ -56,7 +56,9 @@ def destroy end end - # def mark_completed_task; end + # def mark_completed_task + # scope :completed, -> { where(completed: true) } + # end private diff --git a/log/development.log b/log/development.log index 76cd80bf8..02c513a88 100644 --- a/log/development.log +++ b/log/development.log @@ -6849,3 +6849,46 @@ Processing by TodosController#index as HTML Completed 200 OK in 53ms (Views: 38.1ms | ActiveRecord: 12.6ms) +Started GET "/todos" for ::1 at 2019-04-14 17:46:55 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.2ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (14.9ms) +Completed 200 OK in 95ms (Views: 86.6ms | ActiveRecord: 2.4ms) + + +Started GET "/todos/7" for ::1 at 2019-04-14 17:47:01 -0700 +Processing by TodosController#show as HTML + Parameters: {"id"=>"7"} + Todo Load (2.9ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:11 + Rendering todos/show.html.erb within layouts/application + Rendered todos/show.html.erb within layouts/application (2.9ms) +Completed 200 OK in 53ms (Views: 45.3ms | ActiveRecord: 2.9ms) + + +Started DELETE "/todos/7" for ::1 at 2019-04-14 17:48:37 -0700 +Processing by TodosController#destroy as HTML + Parameters: {"authenticity_token"=>"/Qf3Pe0KSfD0DbkQ24npiCSn6p739j+SUIzMyDU7gupROG8T0m0GFZdEH8Z31shMSYbnf6u+ehUXWwsS8uaY+A==", "id"=>"7"} + Todo Load (0.2ms) SELECT "todos".* FROM "todos" WHERE "todos"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/todos_controller.rb:50 +  (0.2ms) BEGIN + ↳ app/controllers/todos_controller.rb:54 + Todo Destroy (0.3ms) DELETE FROM "todos" WHERE "todos"."id" = $1 [["id", 7]] + ↳ app/controllers/todos_controller.rb:54 +  (1.4ms) COMMIT + ↳ app/controllers/todos_controller.rb:54 +Redirected to http://localhost:3000/todos +Completed 302 Found in 19ms (ActiveRecord: 5.1ms) + + +Started GET "/todos" for ::1 at 2019-04-14 17:48:37 -0700 +Processing by TodosController#index as HTML + Rendering todos/index.html.erb within layouts/application + Todo Load (0.3ms) SELECT "todos".* FROM "todos" + ↳ app/views/todos/index.html.erb:6 + Rendered todos/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 34ms (Views: 30.9ms | ActiveRecord: 0.3ms) + + diff --git a/test/controllers/todos_controller_test.rb b/test/controllers/todos_controller_test.rb index b2c1430bd..ae2f07cff 100644 --- a/test/controllers/todos_controller_test.rb +++ b/test/controllers/todos_controller_test.rb @@ -124,7 +124,24 @@ # Complete these tests for Wave 4 describe 'destroy' do - # Your tests go here + it 'will redirect if ID is invalid' do + invalid_id = 'NOT A VALID ID' + + delete todo_path(invalid_id) + + must_respond_with :redirect + end + + it 'can delete a task' do + new_todo = Todo.create(name: 'start code hw') + + expect do + delete todo_path(new_todo) + end.must_change 'Todo.count', -1 + + must_respond_with :redirect + must_redirect_to root_path + end end # Complete for Wave 4