From 72ba82a07aeb00b6c74a50754738347ce3d5ceac Mon Sep 17 00:00:00 2001 From: Haby Randall Date: Mon, 20 Mar 2017 15:47:19 -0700 Subject: [PATCH 01/20] Baseline 1 completed --- Gemfile | 53 ++++++ Gemfile.lock | 174 ++++++++++++++++++ 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/tasks.coffee | 3 + app/assets/stylesheets/application.css | 15 ++ app/assets/stylesheets/tasks.scss | 3 + app/channels/application_cable/channel.rb | 4 + app/channels/application_cable/connection.rb | 4 + app/controllers/application_controller.rb | 3 + app/controllers/concerns/.keep | 0 app/controllers/tasks_controller.rb | 9 + app/helpers/application_helper.rb | 2 + app/helpers/tasks_helper.rb | 2 + app/jobs/application_job.rb | 2 + app/mailers/application_mailer.rb | 4 + app/models/application_record.rb | 3 + app/models/concerns/.keep | 0 app/views/layouts/application.html.erb | 14 ++ app/views/layouts/mailer.html.erb | 13 ++ app/views/layouts/mailer.text.erb | 1 + app/views/tasks/index.html.erb | 8 + bin/bundle | 3 + bin/rails | 9 + bin/rake | 9 + bin/setup | 34 ++++ bin/spring | 17 ++ bin/update | 29 +++ config.ru | 5 + config/application.rb | 15 ++ config/boot.rb | 3 + config/cable.yml | 9 + config/database.yml | 25 +++ config/environment.rb | 5 + config/environments/development.rb | 54 ++++++ config/environments/production.rb | 86 +++++++++ config/environments/test.rb | 42 +++++ .../application_controller_renderer.rb | 6 + config/initializers/assets.rb | 11 ++ config/initializers/backtrace_silencers.rb | 7 + config/initializers/cookies_serializer.rb | 5 + .../initializers/filter_parameter_logging.rb | 4 + config/initializers/inflections.rb | 16 ++ config/initializers/mime_types.rb | 4 + config/initializers/new_framework_defaults.rb | 24 +++ config/initializers/session_store.rb | 3 + config/initializers/wrap_parameters.rb | 14 ++ config/locales/en.yml | 23 +++ config/puma.rb | 47 +++++ config/routes.rb | 5 + config/secrets.yml | 22 +++ config/spring.rb | 6 + db/development.sqlite3 | 0 db/seeds.rb | 7 + lib/assets/.keep | 0 lib/tasks/.keep | 0 log/.keep | 0 log/development.log | 155 ++++++++++++++++ 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 | 5 + test/controllers/.keep | 0 test/controllers/tasks_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/test_helper.rb | 10 + vendor/assets/javascripts/.keep | 0 vendor/assets/stylesheets/.keep | 0 80 files changed, 1283 insertions(+) create mode 100644 Gemfile create mode 100644 Gemfile.lock create mode 100644 Rakefile create mode 100644 app/assets/config/manifest.js create mode 100644 app/assets/images/.keep create mode 100644 app/assets/javascripts/application.js create mode 100644 app/assets/javascripts/cable.js create mode 100644 app/assets/javascripts/channels/.keep create mode 100644 app/assets/javascripts/tasks.coffee create mode 100644 app/assets/stylesheets/application.css create mode 100644 app/assets/stylesheets/tasks.scss create mode 100644 app/channels/application_cable/channel.rb create mode 100644 app/channels/application_cable/connection.rb create mode 100644 app/controllers/application_controller.rb create mode 100644 app/controllers/concerns/.keep create mode 100644 app/controllers/tasks_controller.rb create mode 100644 app/helpers/application_helper.rb create mode 100644 app/helpers/tasks_helper.rb create mode 100644 app/jobs/application_job.rb create mode 100644 app/mailers/application_mailer.rb create mode 100644 app/models/application_record.rb create mode 100644 app/models/concerns/.keep create mode 100644 app/views/layouts/application.html.erb create mode 100644 app/views/layouts/mailer.html.erb create mode 100644 app/views/layouts/mailer.text.erb create mode 100644 app/views/tasks/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 100644 config.ru create mode 100644 config/application.rb create mode 100644 config/boot.rb create mode 100644 config/cable.yml create mode 100644 config/database.yml create mode 100644 config/environment.rb create mode 100644 config/environments/development.rb create mode 100644 config/environments/production.rb create mode 100644 config/environments/test.rb create mode 100644 config/initializers/application_controller_renderer.rb create mode 100644 config/initializers/assets.rb create mode 100644 config/initializers/backtrace_silencers.rb create mode 100644 config/initializers/cookies_serializer.rb create mode 100644 config/initializers/filter_parameter_logging.rb create mode 100644 config/initializers/inflections.rb create mode 100644 config/initializers/mime_types.rb create mode 100644 config/initializers/new_framework_defaults.rb create mode 100644 config/initializers/session_store.rb create mode 100644 config/initializers/wrap_parameters.rb create mode 100644 config/locales/en.yml create mode 100644 config/puma.rb create mode 100644 config/routes.rb create mode 100644 config/secrets.yml create mode 100644 config/spring.rb create mode 100644 db/development.sqlite3 create mode 100644 db/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 public/404.html create mode 100644 public/422.html create mode 100644 public/500.html create mode 100644 public/apple-touch-icon-precomposed.png create mode 100644 public/apple-touch-icon.png create mode 100644 public/favicon.ico create mode 100644 public/robots.txt create mode 100644 test/controllers/.keep create mode 100644 test/controllers/tasks_controller_test.rb create mode 100644 test/fixtures/.keep create mode 100644 test/fixtures/files/.keep create mode 100644 test/helpers/.keep create mode 100644 test/integration/.keep create mode 100644 test/mailers/.keep create mode 100644 test/models/.keep create mode 100644 test/test_helper.rb create mode 100644 vendor/assets/javascripts/.keep create mode 100644 vendor/assets/stylesheets/.keep diff --git a/Gemfile b/Gemfile new file mode 100644 index 000000000..b5fbf94e0 --- /dev/null +++ b/Gemfile @@ -0,0 +1,53 @@ +source 'https://rubygems.org' + +git_source(:github) do |repo_name| + repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") + "https://github.com/#{repo_name}.git" +end + + +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '~> 5.0.2' +# Use sqlite3 as the database for Active Record +gem 'sqlite3' +# Use Puma as the app server +gem 'puma', '~> 3.0' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 5.0' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# Use CoffeeScript for .coffee assets and views +gem 'coffee-rails', '~> 4.2' +# See https://github.com/rails/execjs#readme for more supported runtimes +# gem 'therubyracer', platforms: :ruby + +# Use jquery as the JavaScript library +gem 'jquery-rails' +# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks +gem 'turbolinks', '~> 5' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.5' +# Use Redis adapter to run Action Cable in production +# gem 'redis', '~> 3.0' +# Use ActiveModel has_secure_password +# gem 'bcrypt', '~> 3.1.7' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +group :development, :test do + # Call 'byebug' anywhere in the code to stop execution and get a debugger console + gem 'byebug', platform: :mri +end + +group :development do + # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. + gem 'web-console', '>= 3.3.0' + gem 'listen', '~> 3.0.5' + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' + gem 'spring-watcher-listen', '~> 2.0.0' +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 000000000..559a4476d --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,174 @@ +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.0.2) + actionpack (= 5.0.2) + nio4r (>= 1.2, < 3.0) + websocket-driver (~> 0.6.1) + actionmailer (5.0.2) + actionpack (= 5.0.2) + actionview (= 5.0.2) + activejob (= 5.0.2) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.0.2) + actionview (= 5.0.2) + activesupport (= 5.0.2) + rack (~> 2.0) + rack-test (~> 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.0.2) + activesupport (= 5.0.2) + builder (~> 3.1) + erubis (~> 2.7.0) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.0.2) + activesupport (= 5.0.2) + globalid (>= 0.3.6) + activemodel (5.0.2) + activesupport (= 5.0.2) + activerecord (5.0.2) + activemodel (= 5.0.2) + activesupport (= 5.0.2) + arel (~> 7.0) + activesupport (5.0.2) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (~> 0.7) + minitest (~> 5.1) + tzinfo (~> 1.1) + arel (7.1.4) + builder (3.2.3) + byebug (9.0.6) + coffee-rails (4.2.1) + coffee-script (>= 2.2.0) + railties (>= 4.0.0, < 5.2.x) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + concurrent-ruby (1.0.5) + debug_inspector (0.0.2) + erubis (2.7.0) + execjs (2.7.0) + ffi (1.9.18) + globalid (0.3.7) + activesupport (>= 4.1.0) + i18n (0.8.1) + jbuilder (2.6.3) + activesupport (>= 3.0.0, < 5.2) + multi_json (~> 1.2) + jquery-rails (4.2.2) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + listen (3.0.8) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + loofah (2.0.3) + nokogiri (>= 1.5.9) + mail (2.6.4) + mime-types (>= 1.16, < 4) + method_source (0.8.2) + mime-types (3.1) + mime-types-data (~> 3.2015) + mime-types-data (3.2016.0521) + mini_portile2 (2.1.0) + minitest (5.10.1) + multi_json (1.12.1) + nio4r (2.0.0) + nokogiri (1.7.1) + mini_portile2 (~> 2.1.0) + puma (3.8.2) + rack (2.0.1) + rack-test (0.6.3) + rack (>= 1.0) + rails (5.0.2) + actioncable (= 5.0.2) + actionmailer (= 5.0.2) + actionpack (= 5.0.2) + actionview (= 5.0.2) + activejob (= 5.0.2) + activemodel (= 5.0.2) + activerecord (= 5.0.2) + activesupport (= 5.0.2) + bundler (>= 1.3.0, < 2.0) + railties (= 5.0.2) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.2) + activesupport (>= 4.2.0, < 6.0) + nokogiri (~> 1.6) + rails-html-sanitizer (1.0.3) + loofah (~> 2.0) + railties (5.0.2) + actionpack (= 5.0.2) + activesupport (= 5.0.2) + method_source + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (12.0.0) + rb-fsevent (0.9.8) + rb-inotify (0.9.8) + ffi (>= 0.5.0) + sass (3.4.23) + sass-rails (5.0.6) + railties (>= 4.0.0, < 6) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + spring (2.0.1) + activesupport (>= 4.2) + spring-watcher-listen (2.0.1) + listen (>= 2.7, < 4.0) + spring (>= 1.2, < 3.0) + sprockets (3.7.1) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.0) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + sqlite3 (1.3.13) + thor (0.19.4) + thread_safe (0.3.6) + tilt (2.0.7) + turbolinks (5.0.1) + turbolinks-source (~> 5) + turbolinks-source (5.0.0) + tzinfo (1.2.2) + thread_safe (~> 0.1) + uglifier (3.1.9) + execjs (>= 0.3.0, < 3) + web-console (3.4.0) + actionview (>= 5.0) + activemodel (>= 5.0) + debug_inspector + railties (>= 5.0) + websocket-driver (0.6.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.2) + +PLATFORMS + ruby + +DEPENDENCIES + byebug + coffee-rails (~> 4.2) + jbuilder (~> 2.5) + jquery-rails + listen (~> 3.0.5) + puma (~> 3.0) + rails (~> 5.0.2) + sass-rails (~> 5.0) + spring + spring-watcher-listen (~> 2.0.0) + sqlite3 + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +BUNDLED WITH + 1.14.6 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..b12018d09 --- /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, vendor/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 jquery +//= require jquery_ujs +//= require turbolinks +//= require_tree . diff --git a/app/assets/javascripts/cable.js b/app/assets/javascripts/cable.js new file mode 100644 index 000000000..71ee1e66d --- /dev/null +++ b/app/assets/javascripts/cable.js @@ -0,0 +1,13 @@ +// Action Cable provides the framework to deal with WebSockets in Rails. +// You can generate new channels where WebSocket features live using the rails generate channel command. +// +//= require action_cable +//= require_self +//= require_tree ./channels + +(function() { + this.App || (this.App = {}); + + App.cable = ActionCable.createConsumer(); + +}).call(this); diff --git a/app/assets/javascripts/channels/.keep b/app/assets/javascripts/channels/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/app/assets/javascripts/tasks.coffee b/app/assets/javascripts/tasks.coffee new file mode 100644 index 000000000..24f83d18b --- /dev/null +++ b/app/assets/javascripts/tasks.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css new file mode 100644 index 000000000..0ebd7fe82 --- /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, vendor/assets/stylesheets, + * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path. + * + * You're free to add application-wide styles to this file and they'll appear at the bottom of the + * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS + * files in this directory. Styles in this file should be added after the last require_* statement. + * It is generally better to create a new file per style scope. + * + *= require_tree . + *= require_self + */ diff --git a/app/assets/stylesheets/tasks.scss b/app/assets/stylesheets/tasks.scss new file mode 100644 index 000000000..c5e7712d4 --- /dev/null +++ b/app/assets/stylesheets/tasks.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Tasks controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/channels/application_cable/channel.rb b/app/channels/application_cable/channel.rb new file mode 100644 index 000000000..d67269728 --- /dev/null +++ b/app/channels/application_cable/channel.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Channel < ActionCable::Channel::Base + end +end diff --git a/app/channels/application_cable/connection.rb b/app/channels/application_cable/connection.rb new file mode 100644 index 000000000..0ff5442f4 --- /dev/null +++ b/app/channels/application_cable/connection.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Connection < ActionCable::Connection::Base + end +end diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb new file mode 100644 index 000000000..1c07694e9 --- /dev/null +++ b/app/controllers/application_controller.rb @@ -0,0 +1,3 @@ +class ApplicationController < ActionController::Base + protect_from_forgery with: :exception +end diff --git a/app/controllers/concerns/.keep b/app/controllers/concerns/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb new file mode 100644 index 000000000..0726a562e --- /dev/null +++ b/app/controllers/tasks_controller.rb @@ -0,0 +1,9 @@ +class TasksController < ApplicationController + def index + @tasks = [ + { description: "Run", assigned: "Haby"}, + { description: "Groceries", assigned: "Janice"}, + { description: "Dinner", assigned: "Olivia"} + ] + end +end diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb new file mode 100644 index 000000000..de6be7945 --- /dev/null +++ b/app/helpers/application_helper.rb @@ -0,0 +1,2 @@ +module ApplicationHelper +end diff --git a/app/helpers/tasks_helper.rb b/app/helpers/tasks_helper.rb new file mode 100644 index 000000000..ce894d00c --- /dev/null +++ b/app/helpers/tasks_helper.rb @@ -0,0 +1,2 @@ +module TasksHelper +end diff --git a/app/jobs/application_job.rb b/app/jobs/application_job.rb new file mode 100644 index 000000000..a009ace51 --- /dev/null +++ b/app/jobs/application_job.rb @@ -0,0 +1,2 @@ +class ApplicationJob < ActiveJob::Base +end diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb new file mode 100644 index 000000000..286b2239d --- /dev/null +++ b/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' +end diff --git a/app/models/application_record.rb b/app/models/application_record.rb new file mode 100644 index 000000000..10a4cba84 --- /dev/null +++ b/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/app/models/concerns/.keep b/app/models/concerns/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb new file mode 100644 index 000000000..be7a9f069 --- /dev/null +++ b/app/views/layouts/application.html.erb @@ -0,0 +1,14 @@ + + + + TaskList + <%= csrf_meta_tags %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + + <%= yield %> + + diff --git a/app/views/layouts/mailer.html.erb b/app/views/layouts/mailer.html.erb new file mode 100644 index 000000000..cbd34d2e9 --- /dev/null +++ b/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/app/views/layouts/mailer.text.erb b/app/views/layouts/mailer.text.erb new file mode 100644 index 000000000..37f0bddbd --- /dev/null +++ b/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb new file mode 100644 index 000000000..d581ce57e --- /dev/null +++ b/app/views/tasks/index.html.erb @@ -0,0 +1,8 @@ +

Tasks#index

+

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

+ + diff --git a/bin/bundle b/bin/bundle new file mode 100755 index 000000000..66e9889e8 --- /dev/null +++ b/bin/bundle @@ -0,0 +1,3 @@ +#!/usr/bin/env ruby +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) +load Gem.bin_path('bundler', 'bundle') diff --git a/bin/rails b/bin/rails new file mode 100755 index 000000000..5badb2fde --- /dev/null +++ b/bin/rails @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +APP_PATH = File.expand_path('../config/application', __dir__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/bin/rake b/bin/rake new file mode 100755 index 000000000..d87d5f578 --- /dev/null +++ b/bin/rake @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +require_relative '../config/boot' +require 'rake' +Rake.application.run diff --git a/bin/setup b/bin/setup new file mode 100755 index 000000000..e620b4dad --- /dev/null +++ b/bin/setup @@ -0,0 +1,34 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # puts "\n== Copying sample files ==" + # unless File.exist?('config/database.yml') + # cp 'config/database.yml.sample', 'config/database.yml' + # end + + puts "\n== Preparing database ==" + system! 'bin/rails db:setup' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/bin/spring b/bin/spring new file mode 100755 index 000000000..fb2ec2ebb --- /dev/null +++ b/bin/spring @@ -0,0 +1,17 @@ +#!/usr/bin/env ruby + +# This file loads spring without using Bundler, in order to be fast. +# It gets overwritten when you run the `spring binstub` command. + +unless defined?(Spring) + require 'rubygems' + require 'bundler' + + lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) + spring = lockfile.specs.detect { |spec| spec.name == "spring" } + if spring + Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path + gem 'spring', spring.version + require 'spring/binstub' + end +end diff --git a/bin/update b/bin/update new file mode 100755 index 000000000..a8e4462f2 --- /dev/null +++ b/bin/update @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a way to update your development environment automatically. + # Add necessary update steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + puts "\n== Updating database ==" + system! 'bin/rails db:migrate' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/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..25ee0e0e3 --- /dev/null +++ b/config/application.rb @@ -0,0 +1,15 @@ +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 + # Settings in config/environments/* take precedence over those specified here. + # Application configuration should go into files in config/initializers + # -- all .rb files in that directory are automatically loaded. + end +end diff --git a/config/boot.rb b/config/boot.rb new file mode 100644 index 000000000..30f5120df --- /dev/null +++ b/config/boot.rb @@ -0,0 +1,3 @@ +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) + +require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/config/cable.yml b/config/cable.yml new file mode 100644 index 000000000..0bbde6f74 --- /dev/null +++ b/config/cable.yml @@ -0,0 +1,9 @@ +development: + adapter: async + +test: + adapter: async + +production: + adapter: redis + url: redis://localhost:6379/1 diff --git a/config/database.yml b/config/database.yml new file mode 100644 index 000000000..1c1a37ca8 --- /dev/null +++ b/config/database.yml @@ -0,0 +1,25 @@ +# SQLite version 3.x +# gem install sqlite3 +# +# Ensure the SQLite 3 gem is defined in your Gemfile +# gem 'sqlite3' +# +default: &default + adapter: sqlite3 + pool: 5 + timeout: 5000 + +development: + <<: *default + database: db/development.sqlite3 + +# Warning: The database defined as "test" will be erased and +# re-generated from your development database when you run "rake". +# Do not set this db to the same as development or production. +test: + <<: *default + database: db/test.sqlite3 + +production: + <<: *default + database: db/production.sqlite3 diff --git a/config/environment.rb b/config/environment.rb new file mode 100644 index 000000000..426333bb4 --- /dev/null +++ b/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require_relative 'application' + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/config/environments/development.rb b/config/environments/development.rb new file mode 100644 index 000000000..6f7197045 --- /dev/null +++ b/config/environments/development.rb @@ -0,0 +1,54 @@ +Rails.application.configure do + # Settings specified here will take precedence over those in config/application.rb. + + # In the development environment your application's code is reloaded on + # every request. This slows down response time but is perfect for development + # since you don't have to restart the web server when you make code changes. + config.cache_classes = false + + # Do not eager load code on boot. + config.eager_load = false + + # Show full error reports. + config.consider_all_requests_local = true + + # Enable/disable caching. By default caching is disabled. + if Rails.root.join('tmp/caching-dev.txt').exist? + config.action_controller.perform_caching = true + + config.cache_store = :memory_store + config.public_file_server.headers = { + 'Cache-Control' => 'public, max-age=172800' + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + end + + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + config.action_mailer.perform_caching = false + + # Print deprecation notices to the Rails logger. + config.active_support.deprecation = :log + + # Raise an error on page load if there are pending migrations. + config.active_record.migration_error = :page_load + + # Debug mode disables concatenation and preprocessing of assets. + # This option may cause significant delays in view rendering with a large + # number of complex assets. + config.assets.debug = true + + # Suppress logger output for asset requests. + config.assets.quiet = true + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true + + # Use an evented file watcher to asynchronously detect changes in source code, + # routes, locales, etc. This feature depends on the listen gem. + config.file_watcher = ActiveSupport::EventedFileUpdateChecker +end diff --git a/config/environments/production.rb b/config/environments/production.rb new file mode 100644 index 000000000..29a40f265 --- /dev/null +++ b/config/environments/production.rb @@ -0,0 +1,86 @@ +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 + + # Disable serving static files from the `/public` folder by default since + # Apache or NGINX already handles this. + config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + + # Compress JavaScripts and CSS. + config.assets.js_compressor = :uglifier + # config.assets.css_compressor = :sass + + # Do not fallback to assets pipeline if a precompiled asset is missed. + config.assets.compile = false + + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb + + # Enable serving of images, stylesheets, and JavaScripts from an asset server. + # config.action_controller.asset_host = 'http://assets.example.com' + + # Specifies the header that your server uses for sending files. + # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache + # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX + + # Mount Action Cable outside main process or domain + # config.action_cable.mount_path = nil + # config.action_cable.url = 'wss://example.com/cable' + # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. + # config.force_ssl = true + + # Use the lowest log level to ensure availability of diagnostic information + # when problems arise. + config.log_level = :debug + + # Prepend all log lines with the following tags. + config.log_tags = [ :request_id ] + + # Use a different cache store in production. + # config.cache_store = :mem_cache_store + + # Use a real queuing backend for Active Job (and separate queues per environment) + # config.active_job.queue_adapter = :resque + # config.active_job.queue_name_prefix = "TaskList_#{Rails.env}" + config.action_mailer.perform_caching = false + + # Ignore bad email addresses and do not raise email delivery errors. + # Set this to true and configure the email server for immediate delivery to raise delivery errors. + # config.action_mailer.raise_delivery_errors = false + + # Enable locale fallbacks for I18n (makes lookups for any locale fall back to + # the I18n.default_locale when a translation cannot be found). + config.i18n.fallbacks = true + + # Send deprecation notices to registered listeners. + config.active_support.deprecation = :notify + + # Use default logging formatter so that PID and timestamp are not suppressed. + config.log_formatter = ::Logger::Formatter.new + + # Use a different logger for distributed setups. + # require 'syslog/logger' + # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') + + if ENV["RAILS_LOG_TO_STDOUT"].present? + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false +end diff --git a/config/environments/test.rb b/config/environments/test.rb new file mode 100644 index 000000000..30587ef6d --- /dev/null +++ b/config/environments/test.rb @@ -0,0 +1,42 @@ +Rails.application.configure do + # Settings specified here will take precedence over those in config/application.rb. + + # The test environment is used exclusively to run your application's + # test suite. You never need to work with it otherwise. Remember that + # your test database is "scratch space" for the test suite and is wiped + # and recreated between test runs. Don't rely on the data there! + config.cache_classes = true + + # Do not eager load code on boot. This avoids loading your whole application + # just for the purpose of running a single test. If you are using a tool that + # preloads Rails for running tests, you may have to set it to true. + config.eager_load = false + + # Configure public file server for tests with Cache-Control for performance. + config.public_file_server.enabled = true + config.public_file_server.headers = { + 'Cache-Control' => 'public, max-age=3600' + } + + # Show full error reports and disable caching. + config.consider_all_requests_local = true + config.action_controller.perform_caching = false + + # Raise exceptions instead of rendering exception templates. + config.action_dispatch.show_exceptions = false + + # Disable request forgery protection in test environment. + config.action_controller.allow_forgery_protection = false + config.action_mailer.perform_caching = false + + # Tell Action Mailer not to deliver emails to the real world. + # The :test delivery method accumulates sent emails in the + # ActionMailer::Base.deliveries array. + config.action_mailer.delivery_method = :test + + # Print deprecation notices to the stderr. + config.active_support.deprecation = :stderr + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true +end diff --git a/config/initializers/application_controller_renderer.rb b/config/initializers/application_controller_renderer.rb new file mode 100644 index 000000000..51639b67a --- /dev/null +++ b/config/initializers/application_controller_renderer.rb @@ -0,0 +1,6 @@ +# Be sure to restart your server when you modify this file. + +# ApplicationController.renderer.defaults.merge!( +# http_host: 'example.org', +# https: false +# ) diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb new file mode 100644 index 000000000..01ef3e663 --- /dev/null +++ b/config/initializers/assets.rb @@ -0,0 +1,11 @@ +# 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 + +# Precompile additional assets. +# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. +# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/config/initializers/backtrace_silencers.rb b/config/initializers/backtrace_silencers.rb new file mode 100644 index 000000000..59385cdf3 --- /dev/null +++ b/config/initializers/backtrace_silencers.rb @@ -0,0 +1,7 @@ +# Be sure to restart your server when you modify this file. + +# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. +# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } + +# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code. +# Rails.backtrace_cleaner.remove_silencers! diff --git a/config/initializers/cookies_serializer.rb b/config/initializers/cookies_serializer.rb new file mode 100644 index 000000000..5a6a32d37 --- /dev/null +++ b/config/initializers/cookies_serializer.rb @@ -0,0 +1,5 @@ +# Be sure to restart your server when you modify this file. + +# Specify a serializer for the signed and encrypted cookie jars. +# Valid options are :json, :marshal, and :hybrid. +Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/config/initializers/filter_parameter_logging.rb b/config/initializers/filter_parameter_logging.rb new file mode 100644 index 000000000..4a994e1e7 --- /dev/null +++ b/config/initializers/filter_parameter_logging.rb @@ -0,0 +1,4 @@ +# Be sure to restart your server when you modify this file. + +# Configure sensitive parameters which will be filtered from the log file. +Rails.application.config.filter_parameters += [:password] diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb new file mode 100644 index 000000000..ac033bf9d --- /dev/null +++ b/config/initializers/inflections.rb @@ -0,0 +1,16 @@ +# Be sure to restart your server when you modify this file. + +# Add new inflection rules using the following format. Inflections +# are locale specific, and you may define rules for as many different +# locales as you wish. All of these examples are active by default: +# ActiveSupport::Inflector.inflections(:en) do |inflect| +# inflect.plural /^(ox)$/i, '\1en' +# inflect.singular /^(ox)en/i, '\1' +# inflect.irregular 'person', 'people' +# inflect.uncountable %w( fish sheep ) +# end + +# These inflection rules are supported but not enabled by default: +# ActiveSupport::Inflector.inflections(:en) do |inflect| +# inflect.acronym 'RESTful' +# end diff --git a/config/initializers/mime_types.rb b/config/initializers/mime_types.rb new file mode 100644 index 000000000..dc1899682 --- /dev/null +++ b/config/initializers/mime_types.rb @@ -0,0 +1,4 @@ +# Be sure to restart your server when you modify this file. + +# Add new mime types for use in respond_to blocks: +# Mime::Type.register "text/richtext", :rtf diff --git a/config/initializers/new_framework_defaults.rb b/config/initializers/new_framework_defaults.rb new file mode 100644 index 000000000..671abb69a --- /dev/null +++ b/config/initializers/new_framework_defaults.rb @@ -0,0 +1,24 @@ +# Be sure to restart your server when you modify this file. +# +# This file contains migration options to ease your Rails 5.0 upgrade. +# +# Read the Guide for Upgrading Ruby on Rails for more info on each option. + +# Enable per-form CSRF tokens. Previous versions had false. +Rails.application.config.action_controller.per_form_csrf_tokens = true + +# Enable origin-checking CSRF mitigation. Previous versions had false. +Rails.application.config.action_controller.forgery_protection_origin_check = true + +# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`. +# Previous versions had false. +ActiveSupport.to_time_preserves_timezone = true + +# Require `belongs_to` associations by default. Previous versions had false. +Rails.application.config.active_record.belongs_to_required_by_default = true + +# Do not halt callback chains when a callback returns false. Previous versions had true. +ActiveSupport.halt_callback_chains_on_return_false = false + +# Configure SSL options to enable HSTS with subdomains. Previous versions had false. +Rails.application.config.ssl_options = { hsts: { subdomains: true } } diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb new file mode 100644 index 000000000..80e157130 --- /dev/null +++ b/config/initializers/session_store.rb @@ -0,0 +1,3 @@ +# Be sure to restart your server when you modify this file. + +Rails.application.config.session_store :cookie_store, key: '_TaskList_session' 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..065395716 --- /dev/null +++ b/config/locales/en.yml @@ -0,0 +1,23 @@ +# 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. +# +# 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..c7f311f81 --- /dev/null +++ b/config/puma.rb @@ -0,0 +1,47 @@ +# 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 }.to_i +threads threads_count, threads_count + +# Specifies the `port` that Puma will listen on to receive requests, default is 3000. +# +port ENV.fetch("PORT") { 3000 } + +# Specifies the `environment` that Puma will run in. +# +environment ENV.fetch("RAILS_ENV") { "development" } + +# Specifies the number of `workers` to boot in clustered mode. +# Workers are forked webserver processes. If using threads and workers together +# the concurrency of the application would be max `threads` * `workers`. +# Workers do not work on JRuby or Windows (both of which do not support +# processes). +# +# workers ENV.fetch("WEB_CONCURRENCY") { 2 } + +# Use the `preload_app!` method when specifying a `workers` number. +# This directive tells Puma to first boot the application and load code +# before forking the application. This takes advantage of Copy On Write +# process behavior so workers use less memory. If you use this option +# you need to make sure to reconnect any threads in the `on_worker_boot` +# block. +# +# preload_app! + +# The code in the `on_worker_boot` will be called if you are using +# clustered mode by specifying a number of `workers`. After each worker +# process is booted this block will be run, if you are using `preload_app!` +# option you will want to use this block to reconnect to any threads +# or connections that may have been created at application boot, Ruby +# cannot share connections between processes. +# +# on_worker_boot do +# ActiveRecord::Base.establish_connection if defined?(ActiveRecord) +# end + +# Allow puma to be restarted by `rails restart` command. +plugin :tmp_restart diff --git a/config/routes.rb b/config/routes.rb new file mode 100644 index 000000000..45a71b38f --- /dev/null +++ b/config/routes.rb @@ -0,0 +1,5 @@ +Rails.application.routes.draw do + + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html + get "/tasks", to: "tasks#index" +end diff --git a/config/secrets.yml b/config/secrets.yml new file mode 100644 index 000000000..201c7bde6 --- /dev/null +++ b/config/secrets.yml @@ -0,0 +1,22 @@ +# Be sure to restart your server when you modify this file. + +# Your secret key is used for verifying the integrity of signed cookies. +# If you change this key, all old signed cookies will become invalid! + +# Make sure the secret is at least 30 characters and all random, +# no regular words or you'll be exposed to dictionary attacks. +# You can use `rails secret` to generate a secure secret key. + +# Make sure the secrets in this file are kept private +# if you're sharing your code publicly. + +development: + secret_key_base: c0d1a2264803d4f8eca26024add968a39728d3dc7034d6c792277452fb24a1cf950187314d9882d1a7290cc9e09379c0bc2c23c626b96307c59108fd75ea2044 + +test: + secret_key_base: 94684b479e2e0d16afd42238cac817f2b5d5fbf86fb66d3b76d186a28575359a7773f7d1934c9a23d4df2dcc72e094dd1b4183ec5fb5f5453043acebe8aef83c + +# Do not keep production secrets in the repository, +# instead read values from the environment. +production: + secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> diff --git a/config/spring.rb b/config/spring.rb new file mode 100644 index 000000000..c9119b40c --- /dev/null +++ b/config/spring.rb @@ -0,0 +1,6 @@ +%w( + .ruby-version + .rbenv-vars + tmp/restart.txt + tmp/caching-dev.txt +).each { |path| Spring.watch(path) } diff --git a/db/development.sqlite3 b/db/development.sqlite3 new file mode 100644 index 000000000..e69de29bb 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..dc668c39f --- /dev/null +++ b/log/development.log @@ -0,0 +1,155 @@ +Started GET "/tasks" for ::1 at 2017-03-20 15:12:49 -0700 + +ArgumentError (Missing :controller key on routes definition, please check your routes.): + +config/routes.rb:3:in `block in ' +config/routes.rb:1:in `' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (3.8ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (64.8ms) +Started GET "/tasks" for ::1 at 2017-03-20 15:13:34 -0700 + +ActionController::RoutingError (uninitialized constant TasksController): + +activesupport (5.0.2) lib/active_support/inflector/methods.rb:268:in `const_get' +activesupport (5.0.2) lib/active_support/inflector/methods.rb:268:in `block in constantize' +activesupport (5.0.2) lib/active_support/inflector/methods.rb:266:in `each' +activesupport (5.0.2) lib/active_support/inflector/methods.rb:266:in `inject' +activesupport (5.0.2) lib/active_support/inflector/methods.rb:266:in `constantize' +actionpack (5.0.2) lib/action_dispatch/http/request.rb:81:in `controller_class' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:44:in `controller' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:30:in `serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:39:in `block in serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `each' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `serve' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:725:in `call' +rack (2.0.1) lib/rack/etag.rb:25:in `call' +rack (2.0.1) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.1) lib/rack/head.rb:12:in `call' +rack (2.0.1) lib/rack/session/abstract/id.rb:222:in `context' +rack (2.0.1) lib/rack/session/abstract/id.rb:216:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/cookies.rb:613:in `call' +activerecord (5.0.2) lib/active_record/migration.rb:553:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:38:in `block in call' +activesupport (5.0.2) lib/active_support/callbacks.rb:97:in `__run_callbacks__' +activesupport (5.0.2) lib/active_support/callbacks.rb:750:in `_run_call_callbacks' +activesupport (5.0.2) lib/active_support/callbacks.rb:90:in `run_callbacks' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:36:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call' +web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.4.0) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.0.2) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/request_id.rb:24:in `call' +rack (2.0.1) lib/rack/method_override.rb:22:in `call' +rack (2.0.1) lib/rack/runtime.rb:22:in `call' +activesupport (5.0.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/static.rb:136:in `call' +rack (2.0.1) lib/rack/sendfile.rb:111:in `call' +railties (5.0.2) lib/rails/engine.rb:522:in `call' +puma (3.8.2) lib/puma/configuration.rb:224:in `call' +puma (3.8.2) lib/puma/server.rb:600:in `handle_request' +puma (3.8.2) lib/puma/server.rb:435:in `process_client' +puma (3.8.2) lib/puma/server.rb:299:in `block in run' +puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms) + Rendered collection of /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [1 times] (6.5ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (9.0ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (15.2ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (102.5ms) +Started GET "/tasks" for ::1 at 2017-03-20 15:16:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.3ms) +Completed 200 OK in 459ms (Views: 451.7ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-20 15:37:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 26ms (Views: 23.2ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-20 15:38:50 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 23ms (Views: 20.9ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-20 15:42:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms) + + + +SyntaxError (/Users/habsr/ada/rails/TaskList/app/views/tasks/index.html.erb:9: syntax error, unexpected keyword_ensure, expecting keyword_end + ensure + ^): + +app/views/tasks/index.html.erb:9: syntax error, unexpected keyword_ensure, expecting keyword_end + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (7.0ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.5ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (68.8ms) +Started GET "/tasks" for ::1 at 2017-03-20 15:43:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 27ms (Views: 25.7ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-20 15:43:37 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 21ms (Views: 19.1ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-20 15:43:40 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 23ms (Views: 20.7ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-20 15:44:11 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 19ms (Views: 16.8ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-20 15:44:26 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 16ms (Views: 14.7ms | ActiveRecord: 0.0ms) + + diff --git a/public/404.html b/public/404.html new file mode 100644 index 000000000..b612547fc --- /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..a21f82b3b --- /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..061abc587 --- /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..3c9c7c01f --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,5 @@ +# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file +# +# To ban all spiders from the entire site uncomment the next two lines: +# User-agent: * +# Disallow: / diff --git a/test/controllers/.keep b/test/controllers/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/controllers/tasks_controller_test.rb b/test/controllers/tasks_controller_test.rb new file mode 100644 index 000000000..67683c951 --- /dev/null +++ b/test/controllers/tasks_controller_test.rb @@ -0,0 +1,9 @@ +require 'test_helper' + +class TasksControllerTest < ActionDispatch::IntegrationTest + test "should get index" do + get tasks_index_url + assert_response :success + end + +end diff --git a/test/fixtures/.keep b/test/fixtures/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/fixtures/files/.keep b/test/fixtures/files/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/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/test_helper.rb b/test/test_helper.rb new file mode 100644 index 000000000..92e39b2d7 --- /dev/null +++ b/test/test_helper.rb @@ -0,0 +1,10 @@ +ENV['RAILS_ENV'] ||= 'test' +require File.expand_path('../../config/environment', __FILE__) +require 'rails/test_help' + +class ActiveSupport::TestCase + # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. + fixtures :all + + # Add more helper methods to be used by all tests here... +end diff --git a/vendor/assets/javascripts/.keep b/vendor/assets/javascripts/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/vendor/assets/stylesheets/.keep b/vendor/assets/stylesheets/.keep new file mode 100644 index 000000000..e69de29bb From ad936a4008a00a84d59ef8b0cabc91c8b62b221c Mon Sep 17 00:00:00 2001 From: Haby Randall Date: Wed, 22 Mar 2017 16:33:44 -0700 Subject: [PATCH 02/20] Added updates and links to #show --- Gemfile | 2 +- Gemfile.lock | 2 + app/assets/stylesheets/tasks.scss | 22 + app/controllers/tasks_controller.rb | 45 +- app/models/task.rb | 2 + app/views/tasks/index.html.erb | 13 +- app/views/tasks/new.html.erb | 38 + app/views/tasks/show.html.erb | 11 + config/routes.rb | 7 + db/development.sqlite3 | Bin 0 -> 28672 bytes db/migrate/20170321210002_create_tasks.rb | 11 + .../20170321212932_add_columns_to_tasks.rb | 6 + db/schema.rb | 24 + log/development.log | 1909 +++++++++++++++++ test/fixtures/tasks.yml | 11 + test/models/task_test.rb | 7 + 16 files changed, 2101 insertions(+), 9 deletions(-) create mode 100644 app/models/task.rb create mode 100644 app/views/tasks/new.html.erb create mode 100644 app/views/tasks/show.html.erb create mode 100644 db/migrate/20170321210002_create_tasks.rb create mode 100644 db/migrate/20170321212932_add_columns_to_tasks.rb create mode 100644 db/schema.rb create mode 100644 test/fixtures/tasks.yml create mode 100644 test/models/task_test.rb diff --git a/Gemfile b/Gemfile index b5fbf94e0..568a39f6a 100644 --- a/Gemfile +++ b/Gemfile @@ -5,7 +5,7 @@ git_source(:github) do |repo_name| "https://github.com/#{repo_name}.git" end - +gem 'awesome_print' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '~> 5.0.2' # Use sqlite3 as the database for Active Record diff --git a/Gemfile.lock b/Gemfile.lock index 559a4476d..d0a32a07d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -39,6 +39,7 @@ GEM minitest (~> 5.1) tzinfo (~> 1.1) arel (7.1.4) + awesome_print (1.7.0) builder (3.2.3) byebug (9.0.6) coffee-rails (4.2.1) @@ -154,6 +155,7 @@ PLATFORMS ruby DEPENDENCIES + awesome_print byebug coffee-rails (~> 4.2) jbuilder (~> 2.5) diff --git a/app/assets/stylesheets/tasks.scss b/app/assets/stylesheets/tasks.scss index c5e7712d4..8820ffe98 100644 --- a/app/assets/stylesheets/tasks.scss +++ b/app/assets/stylesheets/tasks.scss @@ -1,3 +1,25 @@ // Place all the styles related to the Tasks controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ + +h3 { + color: blue; +} + +li { + list-style: none; +} + +#index h2 { + font-family: monospace; + text-align: center; + color: white; +} + +section { + width: 100%; + background-color: purple; + border-style: groove; + border-color: blue; + border-radius: 10%; +} diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index 0726a562e..07d779674 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -1,9 +1,44 @@ class TasksController < ApplicationController def index - @tasks = [ - { description: "Run", assigned: "Haby"}, - { description: "Groceries", assigned: "Janice"}, - { description: "Dinner", assigned: "Olivia"} - ] + @tasks = Task.all + # @tasks = [ + # { description: "Run", assigned: "Haby"}, + # { description: "Groceries", assigned: "Janice"}, + # { description: "Dinner", assigned: "Olivia"} + # ] end + + + def show + @result_task = Task.find(params[:id]) + end + + def new + @task = Task.new + end + + def create + # task = Task.new + # task.description = params[:description] + # task.assignee = params[:assignee] + # task.completed = params[:completed] + # task.duration = params[:duration] + # + # if task.save + # redirect_to tasks_path + # end + task = Task.create task_params + + unless task.id == nil + redirect_to tasks_path + end + end + + private + + def task_params + params.require(:task).permit(:description, :assignee, :completed, :duration) + end + + end diff --git a/app/models/task.rb b/app/models/task.rb new file mode 100644 index 000000000..3c2342421 --- /dev/null +++ b/app/models/task.rb @@ -0,0 +1,2 @@ +class Task < ApplicationRecord +end diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb index d581ce57e..838a30fff 100644 --- a/app/views/tasks/index.html.erb +++ b/app/views/tasks/index.html.erb @@ -1,8 +1,15 @@ -

Tasks#index

-

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

+
+

Tasks

+

Let's Get Organized!

+

A list of all tasks:

    <% @tasks.each do |task| %> -
  • <%= task[:description] %>: <%= task[:assigned] %>
  • +
  • The task to do is: <%= link_to task.description, task_path(task.id) %>
  • <% end %>
+

*Click on each task for more information*

+ + +

<%= link_to "New Task", new_task_path %>

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

Add New Task

+ + + + + + <%= form_for @task do |f| %> + <%= f.label :description %> + <%= f.text_field :description %> + <%= f.label :assignee %> + <%= f.text_field :assignee %> + <%= f.label :completed %> + <%= f.text_field :completed %> + <%= f.label :duration %> + <%= f.text_field :duration %> + + <%= f.submit %> + + <% end %> + +

<%= link_to "Home", tasks_path%>

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

List of Tasks:

+ +
    +
  • The task to do is: <%= @result_task.description %>.
  • +
  • The assigned person is <%= @result_task.assignee %>.
  • +
  • This should be completed by <%= @result_task.completed %>
  • +
  • The duration of the task is <%= @result_task.duration %> hour(s).
  • +
+ + +

<%= link_to "Home", tasks_path %>

diff --git a/config/routes.rb b/config/routes.rb index 45a71b38f..8a4e880d7 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,12 @@ Rails.application.routes.draw do # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html + + get "/tasks/new", to: "tasks#new", as: "new_task" + post "/tasks", to: "tasks#create" + get "/tasks", to: "tasks#index" + get "/tasks/:id", to: "tasks#show", as:'task' + + end diff --git a/db/development.sqlite3 b/db/development.sqlite3 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..202e6e460fe9d9fd661aefeaf5cbdb150ad0939f 100644 GIT binary patch literal 28672 zcmeI*T~FIq7zgm<1Ol`rrmK)u?V@hbq(&{__$7($i*?=k((UAYT|(H zpmNFffhJ9wwCw}*OLP~z+U2xq>a>eV-QzI8F-dQxNdx_zI5_9=b9~P49FWZ6<=N+J zek|18e%SM3)nE%ulGsP8${4#(`wZ=8+Y}un``IR)9lYb?eYX7bjrsWoE8Kj`G}r;N$KQxXApX)7x#l$?1`}av`|nUK9qKbJ&q2$bpO+e#Nj{$ZIO99Gop|Q zJ_x*?ctn|H`7idEB|I%l%Gr$lrO3h^Mj6f`OmO=gSbC@-x}A@mNu?* z`lU3ZtgJ{U_f98MdtdatR?pu%opVu?Ey#_MT#6?iM z=nGQ1gmbRnpkC$V*UA0=>nqnmG#CO9fB*y_009U<00Izz00bZaf%o!dY4r9#cROF6 zyC_QT|C9B9N&cGA6B`5|009U<00Izz00bZa0SG_<0{;(z4QYC5$#q3=_=?Ja4{yH|>a;jFvs@rvqXX;HwDEphS*>#5-6-(DGGt+Y| z6`|~SY>tHN>X7I4?4%sVy}IiscyJt zUo{-VO4?`J=6TC6MRKdsEW5Kv)y;*2;8W^suOFnFcAB9%)mp_c4Wq7Q>PkgUfByds oli!dmHV8lf0uX=z1Rwwb2tWV=5P$##u8+W+lvkwTzw}u68-l|}QUCw| literal 0 HcmV?d00001 diff --git a/db/migrate/20170321210002_create_tasks.rb b/db/migrate/20170321210002_create_tasks.rb new file mode 100644 index 000000000..31167189f --- /dev/null +++ b/db/migrate/20170321210002_create_tasks.rb @@ -0,0 +1,11 @@ +class CreateTasks < ActiveRecord::Migration[5.0] + def change + create_table :tasks do |t| + t.string :description + t.string :assignee + t.string :completed + + t.timestamps + end + end +end diff --git a/db/migrate/20170321212932_add_columns_to_tasks.rb b/db/migrate/20170321212932_add_columns_to_tasks.rb new file mode 100644 index 000000000..c9e81dbc3 --- /dev/null +++ b/db/migrate/20170321212932_add_columns_to_tasks.rb @@ -0,0 +1,6 @@ +class AddColumnsToTasks < ActiveRecord::Migration[5.0] + def change + add_column :tasks, + :duration, :integer + end +end diff --git a/db/schema.rb b/db/schema.rb new file mode 100644 index 000000000..05a5fdd06 --- /dev/null +++ b/db/schema.rb @@ -0,0 +1,24 @@ +# 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: 20170321212932) do + + create_table "tasks", force: :cascade do |t| + t.string "description" + t.string "assignee" + t.string "completed" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "duration" + end + +end diff --git a/log/development.log b/log/development.log index dc668c39f..79bcbfdd5 100644 --- a/log/development.log +++ b/log/development.log @@ -153,3 +153,1912 @@ Processing by TasksController#index as HTML Completed 200 OK in 16ms (Views: 14.7ms | ActiveRecord: 0.0ms) +  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) +  (0.8ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +Migrating to CreateTasks (20170321210002) +  (0.1ms) begin transaction +  (0.5ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "description" varchar, "assignee" varchar, "completed" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170321210002"]] +  (0.7ms) commit transaction + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", 2017-03-21 21:04:16 UTC], ["updated_at", 2017-03-21 21:04:16 UTC]] +  (0.6ms) commit transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" +Migrating to AddColumnsToTasks (20170321212932) +  (0.1ms) begin transaction +  (0.5ms) ALTER TABLE "tasks" ADD "duration" integer + SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170321212932"]] +  (0.6ms) commit transaction + ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]] +  (0.1ms) begin transaction +  (0.1ms) commit transaction + ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" +  (0.1ms) begin transaction + SQL (0.5ms) INSERT INTO "tasks" ("description", "assignee", "completed", "created_at", "updated_at", "duration") VALUES (?, ?, ?, ?, ?, ?) [["description", "run"], ["assignee", "Haby"], ["completed", "monday"], ["created_at", 2017-03-21 21:51:56 UTC], ["updated_at", 2017-03-21 21:51:56 UTC], ["duration", 1]] +  (0.9ms) commit transaction +  (0.3ms) begin transaction + SQL (1.4ms) INSERT INTO "tasks" ("description", "assignee", "completed", "created_at", "updated_at", "duration") VALUES (?, ?, ?, ?, ?, ?) [["description", "study"], ["assignee", "Stacy"], ["completed", "friday"], ["created_at", 2017-03-21 21:53:38 UTC], ["updated_at", 2017-03-21 21:53:38 UTC], ["duration", 2]] +  (1.0ms) commit transaction + Task Load (1.7ms) SELECT "tasks".* FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] +Started GET "/tasks" for ::1 at 2017-03-21 14:57:32 -0700 + ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (9.9ms) +Completed 200 OK in 272ms (Views: 252.6ms | ActiveRecord: 1.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-21 14:57:36 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 26ms (Views: 22.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-21 16:02:23 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 406 Not Acceptable in 70ms (ActiveRecord: 2.0ms) + + + +ActionController::UnknownFormat (TasksController#show is missing a template for this request format and variant. + +request.formats: ["text/html"] +request.variant: [] + +NOTE! For XHR/Ajax or API requests, this action would normally respond with 204 No Content: an empty white screen. Since you're loading it in a web browser, we assume that you expected to actually render a template, not nothing, so we're showing an error to be extra-clear. If you expect 204 No Content, carry on. That's what you'll get from an XHR or API request. Give it a shot.): + +actionpack (5.0.2) lib/action_controller/metal/implicit_render.rb:56:in `default_render' +actionpack (5.0.2) lib/action_controller/metal/basic_implicit_render.rb:4:in `block in send_action' +actionpack (5.0.2) lib/action_controller/metal/basic_implicit_render.rb:4:in `tap' +actionpack (5.0.2) lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action' +actionpack (5.0.2) lib/abstract_controller/base.rb:188:in `process_action' +actionpack (5.0.2) lib/action_controller/metal/rendering.rb:30:in `process_action' +actionpack (5.0.2) lib/abstract_controller/callbacks.rb:20:in `block in process_action' +activesupport (5.0.2) lib/active_support/callbacks.rb:126:in `call' +activesupport (5.0.2) lib/active_support/callbacks.rb:506:in `block (2 levels) in compile' +activesupport (5.0.2) lib/active_support/callbacks.rb:455:in `call' +activesupport (5.0.2) lib/active_support/callbacks.rb:101:in `__run_callbacks__' +activesupport (5.0.2) lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks' +activesupport (5.0.2) lib/active_support/callbacks.rb:90:in `run_callbacks' +actionpack (5.0.2) lib/abstract_controller/callbacks.rb:19:in `process_action' +actionpack (5.0.2) lib/action_controller/metal/rescue.rb:20:in `process_action' +actionpack (5.0.2) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' +activesupport (5.0.2) lib/active_support/notifications.rb:164:in `block in instrument' +activesupport (5.0.2) lib/active_support/notifications/instrumenter.rb:21:in `instrument' +activesupport (5.0.2) lib/active_support/notifications.rb:164:in `instrument' +actionpack (5.0.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action' +actionpack (5.0.2) lib/action_controller/metal/params_wrapper.rb:248:in `process_action' +activerecord (5.0.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action' +actionpack (5.0.2) lib/abstract_controller/base.rb:126:in `process' +actionview (5.0.2) lib/action_view/rendering.rb:30:in `process' +actionpack (5.0.2) lib/action_controller/metal.rb:190:in `dispatch' +actionpack (5.0.2) lib/action_controller/metal.rb:262:in `dispatch' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:50:in `dispatch' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:32:in `serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:39:in `block in serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `each' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `serve' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:725:in `call' +rack (2.0.1) lib/rack/etag.rb:25:in `call' +rack (2.0.1) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.1) lib/rack/head.rb:12:in `call' +rack (2.0.1) lib/rack/session/abstract/id.rb:222:in `context' +rack (2.0.1) lib/rack/session/abstract/id.rb:216:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/cookies.rb:613:in `call' +activerecord (5.0.2) lib/active_record/migration.rb:553:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:38:in `block in call' +activesupport (5.0.2) lib/active_support/callbacks.rb:97:in `__run_callbacks__' +activesupport (5.0.2) lib/active_support/callbacks.rb:750:in `_run_call_callbacks' +activesupport (5.0.2) lib/active_support/callbacks.rb:90:in `run_callbacks' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:36:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call' +web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.4.0) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.0.2) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/request_id.rb:24:in `call' +rack (2.0.1) lib/rack/method_override.rb:22:in `call' +rack (2.0.1) lib/rack/runtime.rb:22:in `call' +activesupport (5.0.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/static.rb:136:in `call' +rack (2.0.1) lib/rack/sendfile.rb:111:in `call' +railties (5.0.2) lib/rails/engine.rb:522:in `call' +puma (3.8.2) lib/puma/configuration.rb:224:in `call' +puma (3.8.2) lib/puma/server.rb:600:in `handle_request' +puma (3.8.2) lib/puma/server.rb:435:in `process_client' +puma (3.8.2) lib/puma/server.rb:299:in `block in run' +puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.3ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (72.6ms) +Started GET "/tasks/1" for ::1 at 2017-03-21 16:06:31 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 39ms (Views: 33.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/" for ::1 at 2017-03-21 16:11:39 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (27.3ms) +Completed 500 Internal Server Error in 42ms (ActiveRecord: 0.6ms) + + + +ActionView::Template::Error (undefined method `assigned' for # +Did you mean? assignee + assignee= + assignee?): + 3: + 4:
    + 5: <% @tasks.each do |task| %> + 6:
  • The task is: <%= task.description %> <%= task.assigned %>: <% task.completed %>
  • + 7: <% end %> + 8:
+ +app/views/tasks/index.html.erb:6:in `block in _app_views_tasks_index_html_erb__1636849574275946198_70240954385740' +app/views/tasks/index.html.erb:5:in `_app_views_tasks_index_html_erb__1636849574275946198_70240954385740' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (5.6ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.5ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (62.0ms) +Started GET "/tasks/" for ::1 at 2017-03-21 16:11:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 32ms (Views: 29.8ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/" for ::1 at 2017-03-21 16:14:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 32ms (Views: 29.3ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/" for ::1 at 2017-03-21 16:14:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 50ms (Views: 47.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/" for ::1 at 2017-03-21 16:23:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (9.7ms) +Completed 200 OK in 60ms (Views: 51.6ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-21 16:23:09 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.5ms) +Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 2: + 3: + 4:
    + 5: <% @tasks.each do |task| %> + 6:
  • The task to do is: <%= @result_task.description %>. The assigned person is <%= @result_task.assignee %>. This should be completed by <%= @result_task.completed %> and should last <%= @result_task.duration %> hour.
  • + 7: <% end %> + 8:
+ +app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1649717209101643041_70240955420340' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.7ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.1ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.4ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (63.1ms) +Started GET "/tasks/1" for ::1 at 2017-03-21 16:24:07 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.6ms) +Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.1ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 2: + 3: + 4:
    + 5: <% @tasks.each do |task| %> + 6:
  • The task to do is: <%= @result_task.description %>. The assigned person is <%= @result_task.assignee %>. This should be completed by <%= @result_task.completed %> and should last <%= @result_task.duration %> hour.
  • + 7: <% end %> + 8:
+ +app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1649717209101643041_70240932500400' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.9ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.3ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (59.6ms) +Started GET "/tasks/1" for ::1 at 2017-03-21 16:24:29 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.4ms) +Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.1ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 2: + 3: + 4:
    + 5: + 6:
  • The task to do is: <%= @result_task.description %>. The assigned person is <%= @result_task.assignee %>. This should be completed by <%= @result_task.completed %> and should last <%= @result_task.duration %> hour.
  • + 7: <% end %> + 8:
+ +app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1649717209101643041_70240962275720' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.6ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (61.2ms) +Started GET "/tasks/1" for ::1 at 2017-03-21 16:24:41 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.1ms) +Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.1ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 2: + 3: + 4:
    + 5: + 6:
  • The task to do is: <%= @result_task.description %>. The assigned person is <%= @result_task.assignee %>. This should be completed by <%= @result_task.completed %> and should last <%= @result_task.duration %> hour.
  • + 7: + 8:
+ +app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1649717209101643041_70240954894220' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.5ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (55.1ms) +Started GET "/tasks/1" for ::1 at 2017-03-21 16:26:25 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.3ms) +Completed 500 Internal Server Error in 20ms (ActiveRecord: 0.7ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 2: + 3: + 4: + 5: + 6:

The task to do is: <%= @result_task.description %>. The assigned person is <%= @result_task.assignee %>. This should be completed by <%= @result_task.completed %> and should last <%= @result_task.duration %> hour.

+ 7: + +app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1649717209101643041_70240932101580' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.8ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (58.7ms) +Started GET "/tasks/1" for ::1 at 2017-03-21 16:27:02 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 32ms (Views: 30.3ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-21 16:27:11 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 18ms (Views: 15.7ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/3" for ::1 at 2017-03-21 16:27:16 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"3"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] +Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms) + + + +ActiveRecord::RecordNotFound (Couldn't find Task with 'id'=3): + +app/controllers/tasks_controller.rb:13:in `show' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (3.8ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (58.9ms) +Started GET "/tasks/2" for ::1 at 2017-03-21 16:27:23 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 32ms (Views: 29.2ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-21 16:33:14 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 26ms (Views: 23.5ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/" for ::1 at 2017-03-21 16:33:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 20ms (Views: 17.6ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-21 16:55:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (9.7ms) +Completed 200 OK in 69ms (Views: 55.1ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks" for ::1 at 2017-03-21 16:55:21 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 56ms (Views: 53.1ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2017-03-21 16:58:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (11.3ms) +Completed 200 OK in 94ms (Views: 86.5ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks" for ::1 at 2017-03-21 16:58:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 37ms (Views: 35.7ms | ActiveRecord: 0.2ms) + + + ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]] +  (0.1ms) begin transaction +  (0.0ms) commit transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +Started GET "/tasks" for ::1 at 2017-03-22 12:45:19 -0700 + ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" + +AbstractController::ActionNotFound (The action 'new' could not be found for TasksController): + +actionpack (5.0.2) lib/abstract_controller/base.rb:121:in `process' +actionview (5.0.2) lib/action_view/rendering.rb:30:in `process' +actionpack (5.0.2) lib/action_controller/metal.rb:190:in `dispatch' +actionpack (5.0.2) lib/action_controller/metal.rb:262:in `dispatch' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:50:in `dispatch' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:32:in `serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:39:in `block in serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `each' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `serve' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:725:in `call' +rack (2.0.1) lib/rack/etag.rb:25:in `call' +rack (2.0.1) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.1) lib/rack/head.rb:12:in `call' +rack (2.0.1) lib/rack/session/abstract/id.rb:222:in `context' +rack (2.0.1) lib/rack/session/abstract/id.rb:216:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/cookies.rb:613:in `call' +activerecord (5.0.2) lib/active_record/migration.rb:553:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:38:in `block in call' +activesupport (5.0.2) lib/active_support/callbacks.rb:97:in `__run_callbacks__' +activesupport (5.0.2) lib/active_support/callbacks.rb:750:in `_run_call_callbacks' +activesupport (5.0.2) lib/active_support/callbacks.rb:90:in `run_callbacks' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:36:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call' +web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.4.0) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.0.2) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/request_id.rb:24:in `call' +rack (2.0.1) lib/rack/method_override.rb:22:in `call' +rack (2.0.1) lib/rack/runtime.rb:22:in `call' +activesupport (5.0.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/static.rb:136:in `call' +rack (2.0.1) lib/rack/sendfile.rb:111:in `call' +railties (5.0.2) lib/rails/engine.rb:522:in `call' +puma (3.8.2) lib/puma/configuration.rb:224:in `call' +puma (3.8.2) lib/puma/server.rb:600:in `handle_request' +puma (3.8.2) lib/puma/server.rb:435:in `process_client' +puma (3.8.2) lib/puma/server.rb:299:in `block in run' +puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/unknown_action.html.erb within rescues/layout + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/unknown_action.html.erb within rescues/layout (5.0ms) +Started GET "/tasks" for ::1 at 2017-03-22 12:45:37 -0700 +Processing by TasksController#new as HTML +Completed 406 Not Acceptable in 56ms (ActiveRecord: 0.0ms) + + + +ActionController::UnknownFormat (TasksController#new is missing a template for this request format and variant. + +request.formats: ["text/html"] +request.variant: [] + +NOTE! For XHR/Ajax or API requests, this action would normally respond with 204 No Content: an empty white screen. Since you're loading it in a web browser, we assume that you expected to actually render a template, not nothing, so we're showing an error to be extra-clear. If you expect 204 No Content, carry on. That's what you'll get from an XHR or API request. Give it a shot.): + +actionpack (5.0.2) lib/action_controller/metal/implicit_render.rb:56:in `default_render' +actionpack (5.0.2) lib/action_controller/metal/basic_implicit_render.rb:4:in `block in send_action' +actionpack (5.0.2) lib/action_controller/metal/basic_implicit_render.rb:4:in `tap' +actionpack (5.0.2) lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action' +actionpack (5.0.2) lib/abstract_controller/base.rb:188:in `process_action' +actionpack (5.0.2) lib/action_controller/metal/rendering.rb:30:in `process_action' +actionpack (5.0.2) lib/abstract_controller/callbacks.rb:20:in `block in process_action' +activesupport (5.0.2) lib/active_support/callbacks.rb:126:in `call' +activesupport (5.0.2) lib/active_support/callbacks.rb:506:in `block (2 levels) in compile' +activesupport (5.0.2) lib/active_support/callbacks.rb:455:in `call' +activesupport (5.0.2) lib/active_support/callbacks.rb:101:in `__run_callbacks__' +activesupport (5.0.2) lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks' +activesupport (5.0.2) lib/active_support/callbacks.rb:90:in `run_callbacks' +actionpack (5.0.2) lib/abstract_controller/callbacks.rb:19:in `process_action' +actionpack (5.0.2) lib/action_controller/metal/rescue.rb:20:in `process_action' +actionpack (5.0.2) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' +activesupport (5.0.2) lib/active_support/notifications.rb:164:in `block in instrument' +activesupport (5.0.2) lib/active_support/notifications/instrumenter.rb:21:in `instrument' +activesupport (5.0.2) lib/active_support/notifications.rb:164:in `instrument' +actionpack (5.0.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action' +actionpack (5.0.2) lib/action_controller/metal/params_wrapper.rb:248:in `process_action' +activerecord (5.0.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action' +actionpack (5.0.2) lib/abstract_controller/base.rb:126:in `process' +actionview (5.0.2) lib/action_view/rendering.rb:30:in `process' +actionpack (5.0.2) lib/action_controller/metal.rb:190:in `dispatch' +actionpack (5.0.2) lib/action_controller/metal.rb:262:in `dispatch' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:50:in `dispatch' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:32:in `serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:39:in `block in serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `each' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `serve' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:725:in `call' +rack (2.0.1) lib/rack/etag.rb:25:in `call' +rack (2.0.1) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.1) lib/rack/head.rb:12:in `call' +rack (2.0.1) lib/rack/session/abstract/id.rb:222:in `context' +rack (2.0.1) lib/rack/session/abstract/id.rb:216:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/cookies.rb:613:in `call' +activerecord (5.0.2) lib/active_record/migration.rb:553:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:38:in `block in call' +activesupport (5.0.2) lib/active_support/callbacks.rb:97:in `__run_callbacks__' +activesupport (5.0.2) lib/active_support/callbacks.rb:750:in `_run_call_callbacks' +activesupport (5.0.2) lib/active_support/callbacks.rb:90:in `run_callbacks' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:36:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call' +web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.4.0) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.0.2) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/request_id.rb:24:in `call' +rack (2.0.1) lib/rack/method_override.rb:22:in `call' +rack (2.0.1) lib/rack/runtime.rb:22:in `call' +activesupport (5.0.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/static.rb:136:in `call' +rack (2.0.1) lib/rack/sendfile.rb:111:in `call' +railties (5.0.2) lib/rails/engine.rb:522:in `call' +puma (3.8.2) lib/puma/configuration.rb:224:in `call' +puma (3.8.2) lib/puma/server.rb:600:in `handle_request' +puma (3.8.2) lib/puma/server.rb:435:in `process_client' +puma (3.8.2) lib/puma/server.rb:299:in `block in run' +puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (8.0ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.7ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.5ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (65.4ms) +Started GET "/tasks" for ::1 at 2017-03-22 12:45:48 -0700 +Processing by TasksController#new as HTML +Completed 406 Not Acceptable in 43ms (ActiveRecord: 0.0ms) + + + +ActionController::UnknownFormat (TasksController#new is missing a template for this request format and variant. + +request.formats: ["text/html"] +request.variant: [] + +NOTE! For XHR/Ajax or API requests, this action would normally respond with 204 No Content: an empty white screen. Since you're loading it in a web browser, we assume that you expected to actually render a template, not nothing, so we're showing an error to be extra-clear. If you expect 204 No Content, carry on. That's what you'll get from an XHR or API request. Give it a shot.): + +actionpack (5.0.2) lib/action_controller/metal/implicit_render.rb:56:in `default_render' +actionpack (5.0.2) lib/action_controller/metal/basic_implicit_render.rb:4:in `block in send_action' +actionpack (5.0.2) lib/action_controller/metal/basic_implicit_render.rb:4:in `tap' +actionpack (5.0.2) lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action' +actionpack (5.0.2) lib/abstract_controller/base.rb:188:in `process_action' +actionpack (5.0.2) lib/action_controller/metal/rendering.rb:30:in `process_action' +actionpack (5.0.2) lib/abstract_controller/callbacks.rb:20:in `block in process_action' +activesupport (5.0.2) lib/active_support/callbacks.rb:126:in `call' +activesupport (5.0.2) lib/active_support/callbacks.rb:506:in `block (2 levels) in compile' +activesupport (5.0.2) lib/active_support/callbacks.rb:455:in `call' +activesupport (5.0.2) lib/active_support/callbacks.rb:101:in `__run_callbacks__' +activesupport (5.0.2) lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks' +activesupport (5.0.2) lib/active_support/callbacks.rb:90:in `run_callbacks' +actionpack (5.0.2) lib/abstract_controller/callbacks.rb:19:in `process_action' +actionpack (5.0.2) lib/action_controller/metal/rescue.rb:20:in `process_action' +actionpack (5.0.2) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' +activesupport (5.0.2) lib/active_support/notifications.rb:164:in `block in instrument' +activesupport (5.0.2) lib/active_support/notifications/instrumenter.rb:21:in `instrument' +activesupport (5.0.2) lib/active_support/notifications.rb:164:in `instrument' +actionpack (5.0.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action' +actionpack (5.0.2) lib/action_controller/metal/params_wrapper.rb:248:in `process_action' +activerecord (5.0.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action' +actionpack (5.0.2) lib/abstract_controller/base.rb:126:in `process' +actionview (5.0.2) lib/action_view/rendering.rb:30:in `process' +actionpack (5.0.2) lib/action_controller/metal.rb:190:in `dispatch' +actionpack (5.0.2) lib/action_controller/metal.rb:262:in `dispatch' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:50:in `dispatch' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:32:in `serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:39:in `block in serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `each' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `serve' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:725:in `call' +rack (2.0.1) lib/rack/etag.rb:25:in `call' +rack (2.0.1) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.1) lib/rack/head.rb:12:in `call' +rack (2.0.1) lib/rack/session/abstract/id.rb:222:in `context' +rack (2.0.1) lib/rack/session/abstract/id.rb:216:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/cookies.rb:613:in `call' +activerecord (5.0.2) lib/active_record/migration.rb:553:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:38:in `block in call' +activesupport (5.0.2) lib/active_support/callbacks.rb:97:in `__run_callbacks__' +activesupport (5.0.2) lib/active_support/callbacks.rb:750:in `_run_call_callbacks' +activesupport (5.0.2) lib/active_support/callbacks.rb:90:in `run_callbacks' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:36:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call' +web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.4.0) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.0.2) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/request_id.rb:24:in `call' +rack (2.0.1) lib/rack/method_override.rb:22:in `call' +rack (2.0.1) lib/rack/runtime.rb:22:in `call' +activesupport (5.0.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/static.rb:136:in `call' +rack (2.0.1) lib/rack/sendfile.rb:111:in `call' +railties (5.0.2) lib/rails/engine.rb:522:in `call' +puma (3.8.2) lib/puma/configuration.rb:224:in `call' +puma (3.8.2) lib/puma/server.rb:600:in `handle_request' +puma (3.8.2) lib/puma/server.rb:435:in `process_client' +puma (3.8.2) lib/puma/server.rb:299:in `block in run' +puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (3.4ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.5ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (54.9ms) +Started GET "/tasks/new" for ::1 at 2017-03-22 12:45:53 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"new"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 0], ["LIMIT", 1]] +Completed 404 Not Found in 14ms (ActiveRecord: 1.0ms) + + + +ActiveRecord::RecordNotFound (Couldn't find Task with 'id'=new): + +app/controllers/tasks_controller.rb:13:in `show' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (3.1ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.5ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (53.8ms) +Started GET "/tasks/new" for ::1 at 2017-03-22 12:47:07 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"new"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 0], ["LIMIT", 1]] +Completed 404 Not Found in 17ms (ActiveRecord: 1.1ms) + + + +ActiveRecord::RecordNotFound (Couldn't find Task with 'id'=new): + +app/controllers/tasks_controller.rb:13:in `show' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.1ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (58.5ms) +Started GET "/tasks/new" for ::1 at 2017-03-22 12:47:40 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"new"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 0], ["LIMIT", 1]] +Completed 404 Not Found in 10ms (ActiveRecord: 0.7ms) + + + +ActiveRecord::RecordNotFound (Couldn't find Task with 'id'=new): + +app/controllers/tasks_controller.rb:15:in `show' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (3.5ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (58.0ms) +Started GET "/tasks/" for ::1 at 2017-03-22 12:48:49 -0700 +Processing by TasksController#new as HTML +Completed 406 Not Acceptable in 41ms (ActiveRecord: 0.0ms) + + + +ActionController::UnknownFormat (TasksController#new is missing a template for this request format and variant. + +request.formats: ["text/html"] +request.variant: [] + +NOTE! For XHR/Ajax or API requests, this action would normally respond with 204 No Content: an empty white screen. Since you're loading it in a web browser, we assume that you expected to actually render a template, not nothing, so we're showing an error to be extra-clear. If you expect 204 No Content, carry on. That's what you'll get from an XHR or API request. Give it a shot.): + +actionpack (5.0.2) lib/action_controller/metal/implicit_render.rb:56:in `default_render' +actionpack (5.0.2) lib/action_controller/metal/basic_implicit_render.rb:4:in `block in send_action' +actionpack (5.0.2) lib/action_controller/metal/basic_implicit_render.rb:4:in `tap' +actionpack (5.0.2) lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action' +actionpack (5.0.2) lib/abstract_controller/base.rb:188:in `process_action' +actionpack (5.0.2) lib/action_controller/metal/rendering.rb:30:in `process_action' +actionpack (5.0.2) lib/abstract_controller/callbacks.rb:20:in `block in process_action' +activesupport (5.0.2) lib/active_support/callbacks.rb:126:in `call' +activesupport (5.0.2) lib/active_support/callbacks.rb:506:in `block (2 levels) in compile' +activesupport (5.0.2) lib/active_support/callbacks.rb:455:in `call' +activesupport (5.0.2) lib/active_support/callbacks.rb:101:in `__run_callbacks__' +activesupport (5.0.2) lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks' +activesupport (5.0.2) lib/active_support/callbacks.rb:90:in `run_callbacks' +actionpack (5.0.2) lib/abstract_controller/callbacks.rb:19:in `process_action' +actionpack (5.0.2) lib/action_controller/metal/rescue.rb:20:in `process_action' +actionpack (5.0.2) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' +activesupport (5.0.2) lib/active_support/notifications.rb:164:in `block in instrument' +activesupport (5.0.2) lib/active_support/notifications/instrumenter.rb:21:in `instrument' +activesupport (5.0.2) lib/active_support/notifications.rb:164:in `instrument' +actionpack (5.0.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action' +actionpack (5.0.2) lib/action_controller/metal/params_wrapper.rb:248:in `process_action' +activerecord (5.0.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action' +actionpack (5.0.2) lib/abstract_controller/base.rb:126:in `process' +actionview (5.0.2) lib/action_view/rendering.rb:30:in `process' +actionpack (5.0.2) lib/action_controller/metal.rb:190:in `dispatch' +actionpack (5.0.2) lib/action_controller/metal.rb:262:in `dispatch' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:50:in `dispatch' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:32:in `serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:39:in `block in serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `each' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `serve' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:725:in `call' +rack (2.0.1) lib/rack/etag.rb:25:in `call' +rack (2.0.1) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.1) lib/rack/head.rb:12:in `call' +rack (2.0.1) lib/rack/session/abstract/id.rb:222:in `context' +rack (2.0.1) lib/rack/session/abstract/id.rb:216:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/cookies.rb:613:in `call' +activerecord (5.0.2) lib/active_record/migration.rb:553:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:38:in `block in call' +activesupport (5.0.2) lib/active_support/callbacks.rb:97:in `__run_callbacks__' +activesupport (5.0.2) lib/active_support/callbacks.rb:750:in `_run_call_callbacks' +activesupport (5.0.2) lib/active_support/callbacks.rb:90:in `run_callbacks' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:36:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call' +web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.4.0) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.0.2) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/request_id.rb:24:in `call' +rack (2.0.1) lib/rack/method_override.rb:22:in `call' +rack (2.0.1) lib/rack/runtime.rb:22:in `call' +activesupport (5.0.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/static.rb:136:in `call' +rack (2.0.1) lib/rack/sendfile.rb:111:in `call' +railties (5.0.2) lib/rails/engine.rb:522:in `call' +puma (3.8.2) lib/puma/configuration.rb:224:in `call' +puma (3.8.2) lib/puma/server.rb:600:in `handle_request' +puma (3.8.2) lib/puma/server.rb:435:in `process_client' +puma (3.8.2) lib/puma/server.rb:299:in `block in run' +puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (3.6ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (56.4ms) +Started GET "/tasks/new" for ::1 at 2017-03-22 12:50:23 -0700 +Processing by TasksController#new as HTML +Completed 406 Not Acceptable in 39ms (ActiveRecord: 0.0ms) + + + +ActionController::UnknownFormat (TasksController#new is missing a template for this request format and variant. + +request.formats: ["text/html"] +request.variant: [] + +NOTE! For XHR/Ajax or API requests, this action would normally respond with 204 No Content: an empty white screen. Since you're loading it in a web browser, we assume that you expected to actually render a template, not nothing, so we're showing an error to be extra-clear. If you expect 204 No Content, carry on. That's what you'll get from an XHR or API request. Give it a shot.): + +actionpack (5.0.2) lib/action_controller/metal/implicit_render.rb:56:in `default_render' +actionpack (5.0.2) lib/action_controller/metal/basic_implicit_render.rb:4:in `block in send_action' +actionpack (5.0.2) lib/action_controller/metal/basic_implicit_render.rb:4:in `tap' +actionpack (5.0.2) lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action' +actionpack (5.0.2) lib/abstract_controller/base.rb:188:in `process_action' +actionpack (5.0.2) lib/action_controller/metal/rendering.rb:30:in `process_action' +actionpack (5.0.2) lib/abstract_controller/callbacks.rb:20:in `block in process_action' +activesupport (5.0.2) lib/active_support/callbacks.rb:126:in `call' +activesupport (5.0.2) lib/active_support/callbacks.rb:506:in `block (2 levels) in compile' +activesupport (5.0.2) lib/active_support/callbacks.rb:455:in `call' +activesupport (5.0.2) lib/active_support/callbacks.rb:101:in `__run_callbacks__' +activesupport (5.0.2) lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks' +activesupport (5.0.2) lib/active_support/callbacks.rb:90:in `run_callbacks' +actionpack (5.0.2) lib/abstract_controller/callbacks.rb:19:in `process_action' +actionpack (5.0.2) lib/action_controller/metal/rescue.rb:20:in `process_action' +actionpack (5.0.2) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' +activesupport (5.0.2) lib/active_support/notifications.rb:164:in `block in instrument' +activesupport (5.0.2) lib/active_support/notifications/instrumenter.rb:21:in `instrument' +activesupport (5.0.2) lib/active_support/notifications.rb:164:in `instrument' +actionpack (5.0.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action' +actionpack (5.0.2) lib/action_controller/metal/params_wrapper.rb:248:in `process_action' +activerecord (5.0.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action' +actionpack (5.0.2) lib/abstract_controller/base.rb:126:in `process' +actionview (5.0.2) lib/action_view/rendering.rb:30:in `process' +actionpack (5.0.2) lib/action_controller/metal.rb:190:in `dispatch' +actionpack (5.0.2) lib/action_controller/metal.rb:262:in `dispatch' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:50:in `dispatch' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:32:in `serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:39:in `block in serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `each' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `serve' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:725:in `call' +rack (2.0.1) lib/rack/etag.rb:25:in `call' +rack (2.0.1) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.1) lib/rack/head.rb:12:in `call' +rack (2.0.1) lib/rack/session/abstract/id.rb:222:in `context' +rack (2.0.1) lib/rack/session/abstract/id.rb:216:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/cookies.rb:613:in `call' +activerecord (5.0.2) lib/active_record/migration.rb:553:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:38:in `block in call' +activesupport (5.0.2) lib/active_support/callbacks.rb:97:in `__run_callbacks__' +activesupport (5.0.2) lib/active_support/callbacks.rb:750:in `_run_call_callbacks' +activesupport (5.0.2) lib/active_support/callbacks.rb:90:in `run_callbacks' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:36:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call' +web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.4.0) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.0.2) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/request_id.rb:24:in `call' +rack (2.0.1) lib/rack/method_override.rb:22:in `call' +rack (2.0.1) lib/rack/runtime.rb:22:in `call' +activesupport (5.0.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/static.rb:136:in `call' +rack (2.0.1) lib/rack/sendfile.rb:111:in `call' +railties (5.0.2) lib/rails/engine.rb:522:in `call' +puma (3.8.2) lib/puma/configuration.rb:224:in `call' +puma (3.8.2) lib/puma/server.rb:600:in `handle_request' +puma (3.8.2) lib/puma/server.rb:435:in `process_client' +puma (3.8.2) lib/puma/server.rb:299:in `block in run' +puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (3.9ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (55.8ms) +Started GET "/tasks/new" for ::1 at 2017-03-22 12:51:14 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (0.5ms) +Completed 200 OK in 254ms (Views: 252.2ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-22 12:57:48 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (3.3ms) +Completed 200 OK in 55ms (Views: 43.2ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-22 12:59:43 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (0.5ms) +Completed 200 OK in 31ms (Views: 29.5ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-22 13:00:43 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (0.8ms) +Completed 200 OK in 92ms (Views: 90.3ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-22 13:00:46 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks"): + +actionpack (5.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:53:in `call' +web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.4.0) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.0.2) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/request_id.rb:24:in `call' +rack (2.0.1) lib/rack/method_override.rb:22:in `call' +rack (2.0.1) lib/rack/runtime.rb:22:in `call' +activesupport (5.0.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/static.rb:136:in `call' +rack (2.0.1) lib/rack/sendfile.rb:111:in `call' +railties (5.0.2) lib/rails/engine.rb:522:in `call' +puma (3.8.2) lib/puma/configuration.rb:224:in `call' +puma (3.8.2) lib/puma/server.rb:600:in `handle_request' +puma (3.8.2) lib/puma/server.rb:435:in `process_client' +puma (3.8.2) lib/puma/server.rb:299:in `block in run' +puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) + Rendered collection of /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [3 times] (9.0ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (11.8ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (92.5ms) +Started GET "/tasks/new" for ::1 at 2017-03-22 13:01:38 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (1.1ms) +Completed 200 OK in 26ms (Views: 23.8ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-22 13:01:41 -0700 + +AbstractController::ActionNotFound (The action 'create' could not be found for TasksController): + +actionpack (5.0.2) lib/abstract_controller/base.rb:121:in `process' +actionview (5.0.2) lib/action_view/rendering.rb:30:in `process' +actionpack (5.0.2) lib/action_controller/metal.rb:190:in `dispatch' +actionpack (5.0.2) lib/action_controller/metal.rb:262:in `dispatch' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:50:in `dispatch' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:32:in `serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:39:in `block in serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `each' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `serve' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:725:in `call' +rack (2.0.1) lib/rack/etag.rb:25:in `call' +rack (2.0.1) lib/rack/conditional_get.rb:38:in `call' +rack (2.0.1) lib/rack/head.rb:12:in `call' +rack (2.0.1) lib/rack/session/abstract/id.rb:222:in `context' +rack (2.0.1) lib/rack/session/abstract/id.rb:216:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/cookies.rb:613:in `call' +activerecord (5.0.2) lib/active_record/migration.rb:553:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:38:in `block in call' +activesupport (5.0.2) lib/active_support/callbacks.rb:97:in `__run_callbacks__' +activesupport (5.0.2) lib/active_support/callbacks.rb:750:in `_run_call_callbacks' +activesupport (5.0.2) lib/active_support/callbacks.rb:90:in `run_callbacks' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:36:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call' +web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.4.0) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.0.2) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/request_id.rb:24:in `call' +rack (2.0.1) lib/rack/method_override.rb:22:in `call' +rack (2.0.1) lib/rack/runtime.rb:22:in `call' +activesupport (5.0.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/static.rb:136:in `call' +rack (2.0.1) lib/rack/sendfile.rb:111:in `call' +railties (5.0.2) lib/rails/engine.rb:522:in `call' +puma (3.8.2) lib/puma/configuration.rb:224:in `call' +puma (3.8.2) lib/puma/server.rb:600:in `handle_request' +puma (3.8.2) lib/puma/server.rb:435:in `process_client' +puma (3.8.2) lib/puma/server.rb:299:in `block in run' +puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/unknown_action.html.erb within rescues/layout + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/unknown_action.html.erb within rescues/layout (0.5ms) +Started GET "/tasks/new" for ::1 at 2017-03-22 13:01:58 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (0.5ms) +Completed 200 OK in 22ms (Views: 20.1ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-22 13:01:59 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"NGIj5AIV7JKlKUc0TA1JxouKnmgqtztfdoi2Af4MTzRzdKlBh/kxBxoJ/V+y3/kVmGdfnYeHln95Apf0YFOnsg==", "title"=>"", "author"=>""} +No template found for TasksController#create, rendering head :no_content +Completed 204 No Content in 44ms (ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 13:05:07 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (12.1ms) +Completed 200 OK in 54ms (Views: 37.2ms | ActiveRecord: 1.2ms) + + + Task Load (2.0ms) SELECT "tasks".* FROM "tasks" +Started GET "/tasks/new" for ::1 at 2017-03-22 13:06:37 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (0.7ms) +Completed 200 OK in 30ms (Views: 28.0ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-22 13:06:44 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"IgEWzt72OgqYgs3ACFgA3rX804Wze1FJao6BMc9VWQNlF5xrWxrnnyeid6v2irANphEScB5L/GllBKDEUQqxhQ==", "title"=>"as", "author"=>"as"} +  (0.2ms) begin transaction + SQL (0.6ms) INSERT INTO "tasks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-22 20:06:44 UTC], ["updated_at", 2017-03-22 20:06:44 UTC]] +  (0.7ms) commit transaction +No template found for TasksController#create, rendering head :no_content +Completed 204 No Content in 67ms (ActiveRecord: 2.6ms) + + +Started POST "/tasks" for ::1 at 2017-03-22 13:08:30 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"IgEWzt72OgqYgs3ACFgA3rX804Wze1FJao6BMc9VWQNlF5xrWxrnnyeid6v2irANphEScB5L/GllBKDEUQqxhQ==", "title"=>"as", "author"=>"as"} +  (0.0ms) begin transaction + SQL (1.2ms) INSERT INTO "tasks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-22 20:08:30 UTC], ["updated_at", 2017-03-22 20:08:30 UTC]] +  (0.6ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 20ms (ActiveRecord: 3.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 13:08:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 25ms (Views: 23.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-22 13:08:44 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (0.7ms) +Completed 200 OK in 32ms (Views: 30.0ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-22 13:08:44 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.1ms) +Completed 200 OK in 27ms (Views: 23.9ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-22 13:08:58 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"maHd4QqR4Y2dpShdEMOJQO0pDF8W8PhYrm5bwv0Bt57et1dEj308GCKFkjbuETmT/sTNqrvAVXih5Ho3Y15fGA==", "title"=>"The Beginning", "author"=>"Randall Josh"} +  (0.2ms) begin transaction + SQL (0.4ms) INSERT INTO "tasks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-22 20:08:58 UTC], ["updated_at", 2017-03-22 20:08:58 UTC]] +  (1.2ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 6ms (ActiveRecord: 1.9ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 13:08:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 28ms (Views: 25.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-22 13:11:04 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (1.7ms) +Started GET "/tasks/new" for ::1 at 2017-03-22 13:11:05 -0700 +Completed 200 OK in 69ms (Views: 65.6ms | ActiveRecord: 0.0ms) + + +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (0.9ms) +Completed 200 OK in 28ms (Views: 25.4ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-22 13:11:12 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"LdA+7XjlDLDSlx41q3anJDWsoJHHcSPOv90L/YSSLiRqxrRI/QnRJW23pF5VpBf3JkFhZGpBju6wVyoIGs3Gog==", "title"=>"haha", "author"=>"haha"} +  (0.1ms) begin transaction + SQL (0.5ms) INSERT INTO "tasks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-22 20:11:12 UTC], ["updated_at", 2017-03-22 20:11:12 UTC]] +  (0.9ms) commit transaction +Completed 500 Internal Server Error in 164ms (ActiveRecord: 2.4ms) + + + +NameError (undefined local variable or method `new_task' for # +Did you mean? new_task_url): + +app/controllers/tasks_controller.rb:27:in `create' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (3.8ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (115.6ms) +Started POST "/tasks" for ::1 at 2017-03-22 13:11:28 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"LdA+7XjlDLDSlx41q3anJDWsoJHHcSPOv90L/YSSLiRqxrRI/QnRJW23pF5VpBf3JkFhZGpBju6wVyoIGs3Gog==", "title"=>"haha", "author"=>"haha"} +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "tasks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-22 20:11:28 UTC], ["updated_at", 2017-03-22 20:11:28 UTC]] +  (0.7ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 34ms (ActiveRecord: 2.5ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 13:11:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 35ms (Views: 32.7ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 13:15:55 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (12.8ms) +Completed 200 OK in 113ms (Views: 96.3ms | ActiveRecord: 0.8ms) + + +Started POST "/tasks" for ::1 at 2017-03-22 13:16:00 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"LdA+7XjlDLDSlx41q3anJDWsoJHHcSPOv90L/YSSLiRqxrRI/QnRJW23pF5VpBf3JkFhZGpBju6wVyoIGs3Gog==", "title"=>"haha", "author"=>"haha"} +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "tasks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-22 20:16:00 UTC], ["updated_at", 2017-03-22 20:16:00 UTC]] +  (1.5ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 2.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 13:16:00 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 27ms (Views: 25.0ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks" for ::1 at 2017-03-22 13:17:03 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"LdA+7XjlDLDSlx41q3anJDWsoJHHcSPOv90L/YSSLiRqxrRI/QnRJW23pF5VpBf3JkFhZGpBju6wVyoIGs3Gog==", "title"=>"haha", "author"=>"haha"} +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "tasks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-22 20:17:03 UTC], ["updated_at", 2017-03-22 20:17:03 UTC]] +  (0.7ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 26ms (ActiveRecord: 2.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 13:17:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 28ms (Views: 26.0ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks" for ::1 at 2017-03-22 13:18:58 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"LdA+7XjlDLDSlx41q3anJDWsoJHHcSPOv90L/YSSLiRqxrRI/QnRJW23pF5VpBf3JkFhZGpBju6wVyoIGs3Gog==", "title"=>"haha", "author"=>"haha"} +  (0.1ms) begin transaction + SQL (0.6ms) INSERT INTO "tasks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-22 20:18:58 UTC], ["updated_at", 2017-03-22 20:18:58 UTC]] +  (0.8ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 5ms (ActiveRecord: 1.6ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 13:18:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 27ms (Views: 25.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-22 13:19:07 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (0.6ms) +Completed 200 OK in 26ms (Views: 23.8ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-22 13:19:09 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (0.5ms) +Completed 200 OK in 24ms (Views: 22.8ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-22 13:19:15 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"kkvRCeIVexigdiB+zpty+KhKD5SXZYN4+GTnC6/ClPXVXVusZ/mmjR9WmhUwScIru6fOYTpVLlj37sb+MZ18cw==", "title"=>"haha", "description"=>"shs"} +  (0.2ms) begin transaction + SQL (0.7ms) INSERT INTO "tasks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-03-22 20:19:15 UTC], ["updated_at", 2017-03-22 20:19:15 UTC]] +  (1.2ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 6ms (ActiveRecord: 2.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 13:19:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 22ms (Views: 20.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-22 13:20:40 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.4ms) +Started GET "/tasks/new" for ::1 at 2017-03-22 13:20:40 -0700 +Completed 200 OK in 49ms (Views: 44.4ms | ActiveRecord: 0.0ms) + + +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (0.9ms) +Completed 200 OK in 28ms (Views: 26.3ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-22 13:20:45 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"N9bLFvc+gHifD9KsgwdH462mmmRqLKRH+2Kd9mOPzblwwEGzctJd7SAvaMd91fcwvktbkcccCWf06LwD/dAlPw==", "title"=>"da", "description"=>"da"} +  (0.1ms) begin transaction + SQL (0.5ms) INSERT INTO "tasks" ("description", "created_at", "updated_at") VALUES (?, ?, ?) [["description", "da"], ["created_at", 2017-03-22 20:20:45 UTC], ["updated_at", 2017-03-22 20:20:45 UTC]] +  (1.2ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 29ms (ActiveRecord: 3.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 13:20:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 43ms (Views: 37.2ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks" for ::1 at 2017-03-22 13:21:10 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"N9bLFvc+gHifD9KsgwdH462mmmRqLKRH+2Kd9mOPzblwwEGzctJd7SAvaMd91fcwvktbkcccCWf06LwD/dAlPw==", "title"=>"da", "description"=>"da"} +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "tasks" ("description", "created_at", "updated_at") VALUES (?, ?, ?) [["description", "da"], ["created_at", 2017-03-22 20:21:10 UTC], ["updated_at", 2017-03-22 20:21:10 UTC]] +  (0.8ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 4ms (ActiveRecord: 1.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 13:21:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 33ms (Views: 30.9ms | ActiveRecord: 0.3ms) + + + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" IN (3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13) + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" IN (3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13) + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] +  (0.3ms) begin transaction + SQL (0.8ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 3]] +  (0.7ms) commit transaction + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Task Load (1.4ms) SELECT "tasks".* FROM "tasks" WHERE ("tasks"."id" BETWEEN ? AND ?) [["id", 4], ["id", 13]] +  (0.2ms) begin transaction + SQL (0.8ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 4]] +  (1.9ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 5]] +  (0.7ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 6]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 7]] +  (0.6ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 8]] +  (0.7ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 9]] +  (1.5ms) commit transaction +  (0.2ms) begin transaction + SQL (0.6ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 10]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 11]] +  (0.6ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 12]] +  (2.1ms) commit transaction +  (0.1ms) begin transaction + SQL (1.6ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 13]] +  (0.9ms) commit transaction + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" +Started GET "/tasks" for ::1 at 2017-03-22 15:09:42 -0700 + ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (8.6ms) +Completed 200 OK in 244ms (Views: 226.9ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-22 15:09:43 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (0.5ms) +Completed 200 OK in 24ms (Views: 22.2ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-22 15:09:43 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (0.6ms) +Completed 200 OK in 36ms (Views: 34.1ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-22 15:10:25 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"TjTRjuaKM+Qk2735BpUJiIFAKrVrXOVYdGjhL93qhZYJIlsrY2bucZv7B5L4R7lbkq3rQMZsSHh74sDaQ7VtEA==", "description"=>"groceries", "assignee"=>"mom", "completed"=>"friday", "duration"=>"2"} +  (0.2ms) begin transaction + SQL (0.8ms) INSERT INTO "tasks" ("description", "assignee", "completed", "created_at", "updated_at", "duration") VALUES (?, ?, ?, ?, ?, ?) [["description", "groceries"], ["assignee", "mom"], ["completed", "friday"], ["created_at", 2017-03-22 22:10:25 UTC], ["updated_at", 2017-03-22 22:10:25 UTC], ["duration", 2]] +  (0.7ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 6ms (ActiveRecord: 1.7ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 15:10:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 56ms (Views: 53.8ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 15:20:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (391.3ms) +Completed 500 Internal Server Error in 410ms (ActiveRecord: 0.8ms) + + + +ActionView::Template::Error (undefined local variable or method `new_task' for #<#:0x007fca208b2558> +Did you mean? new_task_url): + 9:

Click on each task for more information

+ 10: + 11: + 12:

<%= link_to "New Task", new_task %>

+ +app/views/tasks/index.html.erb:12:in `_app_views_tasks_index_html_erb__2278073149646781409_70253053058980' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (5.5ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (63.7ms) +Started GET "/tasks" for ::1 at 2017-03-22 15:21:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 31ms (Views: 29.1ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-22 15:21:18 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (0.8ms) +Completed 200 OK in 42ms (Views: 39.5ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-22 15:25:12 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (0.9ms) +Completed 200 OK in 34ms (Views: 32.4ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-22 15:25:16 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 29ms (Views: 16.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-22 15:25:16 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 26ms (Views: 22.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 15:25:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 41ms (Views: 37.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 15:26:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 23ms (Views: 20.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-22 15:26:36 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (0.7ms) +Completed 200 OK in 41ms (Views: 39.5ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-22 15:26:41 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (211.6ms) +Completed 500 Internal Server Error in 217ms (ActiveRecord: 0.1ms) + + + +ActionView::Template::Error (undefined local variable or method `task' for #<#:0x007fca1ebe2f90>): + 1:

List of Tasks:

+ 2: + 3:
    + 4:
  • The task to do is: <%= link_to @result_task.description, task_path(task.id) %>.
  • + 5:
  • The assigned person is <%= @result_task.assignee %>.
  • + 6:
  • This should be completed by <%= @result_task.completed %>
  • + 7:
  • The duration of the task is <%= @result_task.duration %> hour(s).
  • + +app/views/tasks/show.html.erb:4:in `_app_views_tasks_show_html_erb__2538337488364236502_70253037963360' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (5.2ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.5ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (59.6ms) +Started GET "/tasks/1" for ::1 at 2017-03-22 15:27:59 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (181.5ms) +Completed 500 Internal Server Error in 187ms (ActiveRecord: 0.3ms) + + + +ActionView::Template::Error (undefined local variable or method `task' for #<#:0x007fca20a511c0>): + 1:

    List of Tasks:

    + 2: + 3:
      + 4:
    • The task to do is: <%= link_to task.description, task_path(task.id) %>.
    • + 5:
    • The assigned person is <%= @result_task.assignee %>.
    • + 6:
    • This should be completed by <%= @result_task.completed %>
    • + 7:
    • The duration of the task is <%= @result_task.duration %> hour(s).
    • + +app/views/tasks/show.html.erb:4:in `_app_views_tasks_show_html_erb__2538337488364236502_70253053909320' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (5.1ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (58.9ms) +Started GET "/tasks/1" for ::1 at 2017-03-22 15:28:57 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 24ms (Views: 22.2ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 15:28:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 36ms (Views: 33.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 15:30:14 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 33ms (Views: 31.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-22 15:30:16 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 29ms (Views: 25.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 15:30:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 41ms (Views: 38.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-22 15:33:18 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (0.7ms) +Completed 200 OK in 33ms (Views: 31.1ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-22 15:33:18 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (0.6ms) +Completed 200 OK in 30ms (Views: 27.6ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-22 15:33:41 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"GGnkDOuOKiyl7fn8mPuYEosHdMeTlw2EVCLjhOdaLPZff26pbmL3uRrNQ5dmKSjBmOq1Mj6noKRbqMJxeQXEcA==", "description"=>"Study", "assignee"=>"Stacey", "completed"=>"Monday", "duration"=>"2"} +  (0.2ms) begin transaction + SQL (0.9ms) INSERT INTO "tasks" ("description", "assignee", "completed", "created_at", "updated_at", "duration") VALUES (?, ?, ?, ?, ?, ?) [["description", "Study"], ["assignee", "Stacey"], ["completed", "Monday"], ["created_at", 2017-03-22 22:33:41 UTC], ["updated_at", 2017-03-22 22:33:41 UTC], ["duration", 2]] +  (0.7ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 1.8ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 15:33:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 34ms (Views: 32.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-22 15:33:47 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 41ms (Views: 37.1ms | ActiveRecord: 0.2ms) + + + Task Load (2.1ms) SELECT "tasks".* FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 15], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 15]] +  (4.2ms) commit transaction +Started GET "/tasks/new" for ::1 at 2017-03-22 15:57:02 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (48.9ms) +Completed 200 OK in 139ms (Views: 107.3ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-22 15:57:03 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (4.2ms) +Completed 200 OK in 37ms (Views: 33.4ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-22 15:58:03 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.9ms) +Completed 200 OK in 41ms (Views: 39.8ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-22 16:00:29 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (16.1ms) +Completed 200 OK in 68ms (Views: 56.1ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-22 16:06:29 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (8.7ms) +Completed 200 OK in 69ms (Views: 46.3ms | ActiveRecord: 0.7ms) + + +Started POST "/tasks" for ::1 at 2017-03-22 16:07:07 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"B+7P9g9wfEw7+dx6/xgE4onYWnO+/rcAlyXK1HvXjxFA+EVTipyh2YTZZhEByrQxmjWbhhPOGiCYr+sh5Yhnlw==", "task"=>{"description"=>"class", "assignee"=>"haby", "completed"=>"tuesday", "duration"=>"3"}, "commit"=>"Create Task"} +  (0.2ms) begin transaction + SQL (0.4ms) INSERT INTO "tasks" ("description", "assignee", "completed", "created_at", "updated_at", "duration") VALUES (?, ?, ?, ?, ?, ?) [["description", "class"], ["assignee", "haby"], ["completed", "tuesday"], ["created_at", 2017-03-22 23:07:07 UTC], ["updated_at", 2017-03-22 23:07:07 UTC], ["duration", 3]] +  (0.7ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 1.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:07:07 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 44ms (Views: 41.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:07:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 29ms (Views: 27.2ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-22 16:07:38 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (6.4ms) +Completed 200 OK in 39ms (Views: 36.6ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-22 16:08:50 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.3ms) +Completed 200 OK in 24ms (Views: 22.0ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:08:52 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 44ms (Views: 40.6ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:09:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 28ms (Views: 26.4ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:19:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (12.1ms) +Completed 200 OK in 75ms (Views: 64.0ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:20:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 68ms (Views: 66.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:20:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 47ms (Views: 43.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:21:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 58ms (Views: 55.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:23:47 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 49ms (Views: 45.7ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:23:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 69ms (Views: 67.3ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:24:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 65ms (Views: 62.7ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:24:39 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 39ms (Views: 35.9ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:25:00 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 40ms (Views: 36.9ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:25:48 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 43ms (Views: 41.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:26:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 42ms (Views: 40.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:26:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 40ms (Views: 37.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:26:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 25ms (Views: 23.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:26:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 44ms (Views: 42.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:27:26 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 37ms (Views: 34.2ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:27:36 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 37ms (Views: 35.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:27:50 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 37ms (Views: 35.2ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:27:57 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 43ms (Views: 41.1ms | ActiveRecord: 0.3ms) + + diff --git a/test/fixtures/tasks.yml b/test/fixtures/tasks.yml new file mode 100644 index 000000000..36006bbfb --- /dev/null +++ b/test/fixtures/tasks.yml @@ -0,0 +1,11 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + description: MyString + assignee: MyString + completed: MyString + +two: + description: MyString + assignee: MyString + completed: MyString diff --git a/test/models/task_test.rb b/test/models/task_test.rb new file mode 100644 index 000000000..3ca215970 --- /dev/null +++ b/test/models/task_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class TaskTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end From 37f2ddd16e97cf6449fa9ec0da9a00d08d2654e7 Mon Sep 17 00:00:00 2001 From: Haby Randall Date: Thu, 23 Mar 2017 16:01:51 -0700 Subject: [PATCH 03/20] Added an edit and update route to routes.rb, and updated the controller accordingly --- app/assets/stylesheets/tasks.scss | 6 +- app/controllers/tasks_controller.rb | 16 + app/views/tasks/edit.html.erb | 17 + app/views/tasks/new.html.erb | 4 +- config/routes.rb | 2 + db/development.sqlite3 | Bin 28672 -> 28672 bytes log/development.log | 668 ++++++++++++++++++++++++++++ 7 files changed, 708 insertions(+), 5 deletions(-) create mode 100644 app/views/tasks/edit.html.erb diff --git a/app/assets/stylesheets/tasks.scss b/app/assets/stylesheets/tasks.scss index 8820ffe98..a4a4b8cbc 100644 --- a/app/assets/stylesheets/tasks.scss +++ b/app/assets/stylesheets/tasks.scss @@ -13,13 +13,13 @@ li { #index h2 { font-family: monospace; text-align: center; - color: white; + // color: white; } section { width: 100%; - background-color: purple; - border-style: groove; + // background-color: purple; + // border-style: groove; border-color: blue; border-radius: 10%; } diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index 07d779674..4d51c0e59 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -13,6 +13,22 @@ def show @result_task = Task.find(params[:id]) end + def edit + @task = Task.find(params[:id]) + end + + def update + task = Task.find(params[:id]) + task.description = task_params[:description] + task.assignee = task_params[:assignee] + task.completed = task_params[:completed] + task.duration = task_params[:duration] + + if task.save + redirect_to task_path(task.id) + end + end + def new @task = Task.new end diff --git a/app/views/tasks/edit.html.erb b/app/views/tasks/edit.html.erb new file mode 100644 index 000000000..f096b33f4 --- /dev/null +++ b/app/views/tasks/edit.html.erb @@ -0,0 +1,17 @@ +

      Edit a Task

      + + +<%= form_for @task, method: :put do |f| %> +<%= f.label :description %> +<%= f.text_field :description %> +<%= f.label :assignee %> +<%= f.text_field :assignee %> +<%= f.label :completed %> +<%= f.text_field :completed %> +<%= f.label :duration %> +<%= f.text_field :duration %> +<%= f.submit %> +<% end %> + +<%= link_to "Home", tasks_path %> +<%= link_to "New Task", new_task_path %> diff --git a/app/views/tasks/new.html.erb b/app/views/tasks/new.html.erb index 71fd68ea4..75b18b366 100644 --- a/app/views/tasks/new.html.erb +++ b/app/views/tasks/new.html.erb @@ -1,6 +1,6 @@

      Add New Task

      - + - + <%= form_for @task do |f| %> <%= f.label :description %> <%= f.text_field :description %> diff --git a/config/routes.rb b/config/routes.rb index 8a4e880d7..4b695c525 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -8,5 +8,7 @@ get "/tasks", to: "tasks#index" get "/tasks/:id", to: "tasks#show", as:'task' + get "/tasks/:id/edit", to: "tasks#edit", as: 'edit_task' + put "/tasks/:id", to: "tasks#update" end diff --git a/db/development.sqlite3 b/db/development.sqlite3 index 202e6e460fe9d9fd661aefeaf5cbdb150ad0939f..d8eebbfdfbb11dd83d747176547cfe2df7cad479 100644 GIT binary patch delta 51 zcmZp8z}WDBae_3X(nJ|&Mx~7jg7GXlsi_5%OXKwfjTMZHtV~Ucg72D-V*O4008#y4KM%z diff --git a/log/development.log b/log/development.log index 79bcbfdd5..763b84670 100644 --- a/log/development.log +++ b/log/development.log @@ -2062,3 +2062,671 @@ Processing by TasksController#index as HTML Completed 200 OK in 43ms (Views: 41.1ms | ActiveRecord: 0.3ms) +Started GET "/tasks" for ::1 at 2017-03-23 15:02:54 -0700 + ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (16.2ms) +Completed 200 OK in 269ms (Views: 251.0ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-23 15:03:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 39ms (Views: 36.6ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks" for ::1 at 2017-03-23 15:03:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 48ms (Views: 46.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-23 15:03:26 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 42ms (Views: 40.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/edit" for ::1 at 2017-03-23 15:05:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"edit"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 0], ["LIMIT", 1]] +Completed 404 Not Found in 12ms (ActiveRecord: 1.1ms) + + + +ActiveRecord::RecordNotFound (Couldn't find Task with 'id'=edit): + +app/controllers/tasks_controller.rb:13:in `show' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (3.4ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (60.7ms) +Started GET "/tasks/1/edit" for ::1 at 2017-03-23 15:06:16 -0700 + +AbstractController::ActionNotFound (The action 'edit' could not be found for TasksController): + +actionpack (5.0.2) lib/abstract_controller/base.rb:121:in `process' +actionview (5.0.2) lib/action_view/rendering.rb:30:in `process' +actionpack (5.0.2) lib/action_controller/metal.rb:190:in `dispatch' +actionpack (5.0.2) lib/action_controller/metal.rb:262:in `dispatch' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:50:in `dispatch' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:32:in `serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:39:in `block in serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `each' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `serve' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:725:in `call' +rack (2.0.1) lib/rack/etag.rb:25:in `call' +rack (2.0.1) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.1) lib/rack/head.rb:12:in `call' +rack (2.0.1) lib/rack/session/abstract/id.rb:222:in `context' +rack (2.0.1) lib/rack/session/abstract/id.rb:216:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/cookies.rb:613:in `call' +activerecord (5.0.2) lib/active_record/migration.rb:553:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:38:in `block in call' +activesupport (5.0.2) lib/active_support/callbacks.rb:97:in `__run_callbacks__' +activesupport (5.0.2) lib/active_support/callbacks.rb:750:in `_run_call_callbacks' +activesupport (5.0.2) lib/active_support/callbacks.rb:90:in `run_callbacks' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:36:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call' +web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.4.0) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.0.2) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/request_id.rb:24:in `call' +rack (2.0.1) lib/rack/method_override.rb:22:in `call' +rack (2.0.1) lib/rack/runtime.rb:22:in `call' +activesupport (5.0.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/static.rb:136:in `call' +rack (2.0.1) lib/rack/sendfile.rb:111:in `call' +railties (5.0.2) lib/rails/engine.rb:522:in `call' +puma (3.8.2) lib/puma/configuration.rb:224:in `call' +puma (3.8.2) lib/puma/server.rb:600:in `handle_request' +puma (3.8.2) lib/puma/server.rb:435:in `process_client' +puma (3.8.2) lib/puma/server.rb:299:in `block in run' +puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/unknown_action.html.erb within rescues/layout + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/unknown_action.html.erb within rescues/layout (0.4ms) +Started GET "/tasks/1/edit" for ::1 at 2017-03-23 15:06:42 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} +Completed 406 Not Acceptable in 40ms (ActiveRecord: 0.0ms) + + + +ActionController::UnknownFormat (TasksController#edit is missing a template for this request format and variant. + +request.formats: ["text/html"] +request.variant: [] + +NOTE! For XHR/Ajax or API requests, this action would normally respond with 204 No Content: an empty white screen. Since you're loading it in a web browser, we assume that you expected to actually render a template, not nothing, so we're showing an error to be extra-clear. If you expect 204 No Content, carry on. That's what you'll get from an XHR or API request. Give it a shot.): + +actionpack (5.0.2) lib/action_controller/metal/implicit_render.rb:56:in `default_render' +actionpack (5.0.2) lib/action_controller/metal/basic_implicit_render.rb:4:in `block in send_action' +actionpack (5.0.2) lib/action_controller/metal/basic_implicit_render.rb:4:in `tap' +actionpack (5.0.2) lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action' +actionpack (5.0.2) lib/abstract_controller/base.rb:188:in `process_action' +actionpack (5.0.2) lib/action_controller/metal/rendering.rb:30:in `process_action' +actionpack (5.0.2) lib/abstract_controller/callbacks.rb:20:in `block in process_action' +activesupport (5.0.2) lib/active_support/callbacks.rb:126:in `call' +activesupport (5.0.2) lib/active_support/callbacks.rb:506:in `block (2 levels) in compile' +activesupport (5.0.2) lib/active_support/callbacks.rb:455:in `call' +activesupport (5.0.2) lib/active_support/callbacks.rb:101:in `__run_callbacks__' +activesupport (5.0.2) lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks' +activesupport (5.0.2) lib/active_support/callbacks.rb:90:in `run_callbacks' +actionpack (5.0.2) lib/abstract_controller/callbacks.rb:19:in `process_action' +actionpack (5.0.2) lib/action_controller/metal/rescue.rb:20:in `process_action' +actionpack (5.0.2) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' +activesupport (5.0.2) lib/active_support/notifications.rb:164:in `block in instrument' +activesupport (5.0.2) lib/active_support/notifications/instrumenter.rb:21:in `instrument' +activesupport (5.0.2) lib/active_support/notifications.rb:164:in `instrument' +actionpack (5.0.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action' +actionpack (5.0.2) lib/action_controller/metal/params_wrapper.rb:248:in `process_action' +activerecord (5.0.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action' +actionpack (5.0.2) lib/abstract_controller/base.rb:126:in `process' +actionview (5.0.2) lib/action_view/rendering.rb:30:in `process' +actionpack (5.0.2) lib/action_controller/metal.rb:190:in `dispatch' +actionpack (5.0.2) lib/action_controller/metal.rb:262:in `dispatch' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:50:in `dispatch' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:32:in `serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:39:in `block in serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `each' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `serve' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:725:in `call' +rack (2.0.1) lib/rack/etag.rb:25:in `call' +rack (2.0.1) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.1) lib/rack/head.rb:12:in `call' +rack (2.0.1) lib/rack/session/abstract/id.rb:222:in `context' +rack (2.0.1) lib/rack/session/abstract/id.rb:216:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/cookies.rb:613:in `call' +activerecord (5.0.2) lib/active_record/migration.rb:553:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:38:in `block in call' +activesupport (5.0.2) lib/active_support/callbacks.rb:97:in `__run_callbacks__' +activesupport (5.0.2) lib/active_support/callbacks.rb:750:in `_run_call_callbacks' +activesupport (5.0.2) lib/active_support/callbacks.rb:90:in `run_callbacks' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:36:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call' +web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.4.0) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.0.2) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/request_id.rb:24:in `call' +rack (2.0.1) lib/rack/method_override.rb:22:in `call' +rack (2.0.1) lib/rack/runtime.rb:22:in `call' +activesupport (5.0.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/static.rb:136:in `call' +rack (2.0.1) lib/rack/sendfile.rb:111:in `call' +railties (5.0.2) lib/rails/engine.rb:522:in `call' +puma (3.8.2) lib/puma/configuration.rb:224:in `call' +puma (3.8.2) lib/puma/server.rb:600:in `handle_request' +puma (3.8.2) lib/puma/server.rb:435:in `process_client' +puma (3.8.2) lib/puma/server.rb:299:in `block in run' +puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (3.4ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (57.2ms) +Started GET "/tasks/1/edit" for ::1 at 2017-03-23 15:15:59 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.7ms) +Completed 200 OK in 50ms (Views: 46.7ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/1/edit" for ::1 at 2017-03-23 15:30:23 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (5.9ms) +Completed 500 Internal Server Error in 27ms (ActiveRecord: 0.0ms) + + + +SyntaxError (/Users/habsr/ada/rails/TaskList/app/views/tasks/edit.html.erb:4: syntax error, unexpected ':', expecting keyword_end +nd= form_for @book, :method :put do |f| @output_buffer.safe + ^): + +app/views/tasks/edit.html.erb:4: syntax error, unexpected ':', expecting keyword_end + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.9ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (60.8ms) +Started GET "/tasks/1/edit" for ::1 at 2017-03-23 15:33:44 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (0.8ms) +Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms) + + + +SyntaxError (/Users/habsr/ada/rails/TaskList/app/views/tasks/edit.html.erb:4: syntax error, unexpected ':', expecting keyword_end +nd= form_for @task, :method :put do |f| @output_buffer.safe + ^): + +app/views/tasks/edit.html.erb:4: syntax error, unexpected ':', expecting keyword_end + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (5.1ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.1ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (57.6ms) +Started GET "/tasks/1/edit" for ::1 at 2017-03-23 15:33:47 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (0.8ms) +Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms) + + + +SyntaxError (/Users/habsr/ada/rails/TaskList/app/views/tasks/edit.html.erb:4: syntax error, unexpected ':', expecting keyword_end +nd= form_for @task, :method :put do |f| @output_buffer.safe + ^): + +app/views/tasks/edit.html.erb:4: syntax error, unexpected ':', expecting keyword_end + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (5.3ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (57.5ms) +Started GET "/tasks/1/edit" for ::1 at 2017-03-23 15:34:06 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.5ms) +Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms) + + + +ActionView::Template::Error (First argument in form cannot contain nil or be empty): + 1:

      Edit a Task

      + 2: + 3: + 4: <%= form_for @task, method: :put do |f| %> + 5: <%= f.label :description %> + 6: <%= f.text_field :description %> + 7: <%= f.label :assignee %> + +app/views/tasks/edit.html.erb:4:in `_app_views_tasks_edit_html_erb___3560534829731156564_70185133563060' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.5ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (55.7ms) +Started GET "/tasks/1/edit" for ::1 at 2017-03-23 15:34:43 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.0ms) +Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms) + + + +ActionView::Template::Error (First argument in form cannot contain nil or be empty): + 1:

      Edit a Task

      + 2: + 3: + 4: <%= form_for @task, method: :put do |f| %> + 5: <%= f.label :description %> + 6: <%= f.text_field :description %> + 7: <%= f.label :assignee %> + +app/views/tasks/edit.html.erb:4:in `_app_views_tasks_edit_html_erb___3560534829731156564_70185143980900' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (5.4ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.5ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.4ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (59.3ms) +Started GET "/tasks/1/edit" for ::1 at 2017-03-23 15:42:55 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (27.2ms) +Completed 200 OK in 86ms (Views: 56.5ms | ActiveRecord: 1.5ms) + + +Started PUT "/tasks/1" for ::1 at 2017-03-23 15:43:11 -0700 + +ActionController::RoutingError (No route matches [PUT] "/tasks/1"): + +actionpack (5.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:53:in `call' +web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.4.0) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.0.2) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/request_id.rb:24:in `call' +rack (2.0.1) lib/rack/method_override.rb:22:in `call' +rack (2.0.1) lib/rack/runtime.rb:22:in `call' +activesupport (5.0.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/static.rb:136:in `call' +rack (2.0.1) lib/rack/sendfile.rb:111:in `call' +railties (5.0.2) lib/rails/engine.rb:522:in `call' +puma (3.8.2) lib/puma/configuration.rb:224:in `call' +puma (3.8.2) lib/puma/server.rb:600:in `handle_request' +puma (3.8.2) lib/puma/server.rb:435:in `process_client' +puma (3.8.2) lib/puma/server.rb:299:in `block in run' +puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) + Rendered collection of /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [5 times] (9.6ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.6ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.9ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (89.1ms) +Started PUT "/tasks/1" for ::1 at 2017-03-23 15:44:59 -0700 + +AbstractController::ActionNotFound (The action 'update' could not be found for TasksController): + +actionpack (5.0.2) lib/abstract_controller/base.rb:121:in `process' +actionview (5.0.2) lib/action_view/rendering.rb:30:in `process' +actionpack (5.0.2) lib/action_controller/metal.rb:190:in `dispatch' +actionpack (5.0.2) lib/action_controller/metal.rb:262:in `dispatch' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:50:in `dispatch' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:32:in `serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:39:in `block in serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `each' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `serve' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:725:in `call' +rack (2.0.1) lib/rack/etag.rb:25:in `call' +rack (2.0.1) lib/rack/conditional_get.rb:38:in `call' +rack (2.0.1) lib/rack/head.rb:12:in `call' +rack (2.0.1) lib/rack/session/abstract/id.rb:222:in `context' +rack (2.0.1) lib/rack/session/abstract/id.rb:216:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/cookies.rb:613:in `call' +activerecord (5.0.2) lib/active_record/migration.rb:553:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:38:in `block in call' +activesupport (5.0.2) lib/active_support/callbacks.rb:97:in `__run_callbacks__' +activesupport (5.0.2) lib/active_support/callbacks.rb:750:in `_run_call_callbacks' +activesupport (5.0.2) lib/active_support/callbacks.rb:90:in `run_callbacks' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:36:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call' +web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.4.0) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.0.2) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/request_id.rb:24:in `call' +rack (2.0.1) lib/rack/method_override.rb:22:in `call' +rack (2.0.1) lib/rack/runtime.rb:22:in `call' +activesupport (5.0.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/static.rb:136:in `call' +rack (2.0.1) lib/rack/sendfile.rb:111:in `call' +railties (5.0.2) lib/rails/engine.rb:522:in `call' +puma (3.8.2) lib/puma/configuration.rb:224:in `call' +puma (3.8.2) lib/puma/server.rb:600:in `handle_request' +puma (3.8.2) lib/puma/server.rb:435:in `process_client' +puma (3.8.2) lib/puma/server.rb:299:in `block in run' +puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/unknown_action.html.erb within rescues/layout + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/unknown_action.html.erb within rescues/layout (0.6ms) +Started GET "/tasks/1" for ::1 at 2017-03-23 15:48:36 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 42ms (Views: 24.8ms | ActiveRecord: 1.3ms) + + +Started GET "/tasks/1/edit" for ::1 at 2017-03-23 15:48:44 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.2ms) +Completed 200 OK in 37ms (Views: 34.7ms | ActiveRecord: 0.1ms) + + +Started PUT "/tasks/1" for ::1 at 2017-03-23 15:48:55 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"OzlVhgHNGLMJnhK8L+G9FxYZtqZIn4l8NpbzFcFc2IJ8L98jhCHFJra+qNfRMw3EBfR3U+WvJFw5HNLgXwMwBA==", "task"=>{"description"=>"walk ", "assignee"=>"Haby", "completed"=>"monday", "duration"=>"1"}, "commit"=>"Update Task", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +No template found for TasksController#update, rendering head :no_content +Completed 204 No Content in 48ms (ActiveRecord: 0.1ms) + + +Started GET "/tasks/2/edit" for ::1 at 2017-03-23 15:51:15 -0700 + +SyntaxError (/Users/habsr/ada/rails/TaskList/app/controllers/tasks_controller.rb:59: syntax error, unexpected end-of-input, expecting keyword_end): + +app/controllers/tasks_controller.rb:59: syntax error, unexpected end-of-input, expecting keyword_end + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (17.5ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.5ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (73.7ms) +Started GET "/tasks/2/edit" for ::1 at 2017-03-23 15:51:31 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.2ms) +Completed 200 OK in 37ms (Views: 24.2ms | ActiveRecord: 0.9ms) + + +Started PUT "/tasks/2" for ::1 at 2017-03-23 15:51:38 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"DmcsDqd3Ob/0XzILxDZ6DuVEyoD+V8rKa99RAWV5TxRJcaarIpvkKkt/iGA65Mrd9qkLdVNnZ+pkVXD0+yankg==", "task"=>{"description"=>"sleep", "assignee"=>"Stacy", "completed"=>"friday", "duration"=>"2"}, "commit"=>"Update Task", "id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] +Redirected to http://localhost:3000/tasks/2 +Completed 302 Found in 2ms (ActiveRecord: 0.1ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-23 15:51:39 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 24ms (Views: 21.8ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/edit/2" for ::1 at 2017-03-23 15:55:10 -0700 + +ActionController::RoutingError (No route matches [GET] "/tasks/edit/2"): + +actionpack (5.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:53:in `call' +web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.4.0) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.0.2) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/request_id.rb:24:in `call' +rack (2.0.1) lib/rack/method_override.rb:22:in `call' +rack (2.0.1) lib/rack/runtime.rb:22:in `call' +activesupport (5.0.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/static.rb:136:in `call' +rack (2.0.1) lib/rack/sendfile.rb:111:in `call' +railties (5.0.2) lib/rails/engine.rb:522:in `call' +puma (3.8.2) lib/puma/configuration.rb:224:in `call' +puma (3.8.2) lib/puma/server.rb:600:in `handle_request' +puma (3.8.2) lib/puma/server.rb:435:in `process_client' +puma (3.8.2) lib/puma/server.rb:299:in `block in run' +puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (6.9ms) + Rendered collection of /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [6 times] (2.4ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.4ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (79.0ms) +Started GET "/tasks/2" for ::1 at 2017-03-23 15:55:23 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 43ms (Views: 23.2ms | ActiveRecord: 1.3ms) + + +Started GET "/tasks/2/edit" for ::1 at 2017-03-23 15:55:27 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.3ms) +Completed 200 OK in 27ms (Views: 24.1ms | ActiveRecord: 0.1ms) + + +Started PUT "/tasks/2" for ::1 at 2017-03-23 15:55:34 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"t6lxsJg7A4HU57D1PCUQL9S0vw+c8LFIqIvNFUTpWWHwv/sVHdfeFGvHCp7C96D8x1l++jHAHGinAezg2rax5w==", "task"=>{"description"=>"sleep", "assignee"=>"Stacy", "completed"=>"friday", "duration"=>"2"}, "commit"=>"Update Task", "id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.8ms) UPDATE "tasks" SET "description" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["description", "sleep"], ["updated_at", 2017-03-23 22:55:34 UTC], ["id", 2]] +  (1.0ms) commit transaction +Redirected to http://localhost:3000/tasks/2 +Completed 302 Found in 8ms (ActiveRecord: 1.9ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-23 15:55:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 23ms (Views: 20.7ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/edit/4" for ::1 at 2017-03-23 15:59:01 -0700 + +ActionController::RoutingError (No route matches [GET] "/tasks/edit/4"): + +actionpack (5.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:53:in `call' +web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.4.0) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.0.2) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/request_id.rb:24:in `call' +rack (2.0.1) lib/rack/method_override.rb:22:in `call' +rack (2.0.1) lib/rack/runtime.rb:22:in `call' +activesupport (5.0.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/static.rb:136:in `call' +rack (2.0.1) lib/rack/sendfile.rb:111:in `call' +railties (5.0.2) lib/rails/engine.rb:522:in `call' +puma (3.8.2) lib/puma/configuration.rb:224:in `call' +puma (3.8.2) lib/puma/server.rb:600:in `handle_request' +puma (3.8.2) lib/puma/server.rb:435:in `process_client' +puma (3.8.2) lib/puma/server.rb:299:in `block in run' +puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.3ms) + Rendered collection of /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [6 times] (5.2ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.2ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (3.6ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (81.9ms) +Started GET "/tasks/4/edit" for ::1 at 2017-03-23 15:59:12 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"4"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] +Completed 404 Not Found in 3ms (ActiveRecord: 0.3ms) + + + +ActiveRecord::RecordNotFound (Couldn't find Task with 'id'=4): + +app/controllers/tasks_controller.rb:17:in `edit' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (3.7ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (57.4ms) +Started GET "/tasks/3/edit" for ::1 at 2017-03-23 15:59:20 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] +Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms) + + + +ActiveRecord::RecordNotFound (Couldn't find Task with 'id'=3): + +app/controllers/tasks_controller.rb:17:in `edit' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.3ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (56.5ms) +Started GET "/tasks/2/edit" for ::1 at 2017-03-23 15:59:29 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (4.2ms) +Completed 200 OK in 36ms (Views: 33.5ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/1/edit" for ::1 at 2017-03-23 15:59:38 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.2ms) +Completed 200 OK in 22ms (Views: 20.2ms | ActiveRecord: 0.1ms) + + From bb696bfa6c76e517fad3806d11a0e62e38aa7299 Mon Sep 17 00:00:00 2001 From: Haby Randall Date: Fri, 24 Mar 2017 13:53:09 -0700 Subject: [PATCH 04/20] Added navigation links to application.html --- app/assets/stylesheets/application.css | 1 + app/views/layouts/application.html.erb | 7 + app/views/tasks/show.html.erb | 3 +- config/routes.rb | 2 + db/development.sqlite3 | Bin 28672 -> 28672 bytes log/development.log | 855 +++++++++++++++++++++++++ 6 files changed, 867 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 0ebd7fe82..94813782c 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -13,3 +13,4 @@ *= require_tree . *= require_self */ +/*@import url('https://fonts.googleapis.com/css?family=Lobster|Harmattan|Josefin+Sans|Abel|Lato|Playfair+Display')*/ diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index be7a9f069..ab5d855cd 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -8,6 +8,13 @@ <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + <%= yield %> diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb index 7c6e08667..79af5315a 100644 --- a/app/views/tasks/show.html.erb +++ b/app/views/tasks/show.html.erb @@ -8,4 +8,5 @@
    -

    <%= link_to "Home", tasks_path %>

    + +

    <%= link_to "Edit", edit_task_path(@result_task.id) %>

    diff --git a/config/routes.rb b/config/routes.rb index 4b695c525..3a0f7ea39 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -2,6 +2,8 @@ # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html + root 'tasks#index' + get "/tasks/new", to: "tasks#new", as: "new_task" post "/tasks", to: "tasks#create" diff --git a/db/development.sqlite3 b/db/development.sqlite3 index d8eebbfdfbb11dd83d747176547cfe2df7cad479..53cbd7688521c4c20fa098577f6e75bf707204f5 100644 GIT binary patch delta 132 zcmZp8z}WDBae_3X@c MY4fo-OF>3K0FtsISO5S3 delta 132 zcmZp8z}WDBae_3X(nJ|&Mx~7jOZ@p*_>M8~Z{<(p7v(#~vtzSRKs;aQ4+aJXM@I%D u14DCN17lqyBLyP^D?>voLnA#y6BA=I3*0h5ox8B"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.4ms) +Completed 200 OK in 26ms (Views: 23.7ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-23 16:02:17 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (3.3ms) +Completed 200 OK in 34ms (Views: 31.8ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-23 16:02:42 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"CSnmjCfUA7emRHl5CJ/SkbCq61RK1QjaPOM1dbBBZacjJBrNyaGExURzYHVlUYsPbLdqqys9yyZV85yVCJDfng==", "task"=>{"description"=>"clean room", "assignee"=>"haby", "completed"=>"thursday", "duration"=>"2"}, "commit"=>"Create Task"} +  (0.2ms) begin transaction + SQL (0.4ms) INSERT INTO "tasks" ("description", "assignee", "completed", "created_at", "updated_at", "duration") VALUES (?, ?, ?, ?, ?, ?) [["description", "clean room"], ["assignee", "haby"], ["completed", "thursday"], ["created_at", 2017-03-23 23:02:42 UTC], ["updated_at", 2017-03-23 23:02:42 UTC], ["duration", 2]] +  (0.8ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 8ms (ActiveRecord: 1.4ms) + + +Started GET "/tasks" for ::1 at 2017-03-23 16:02:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 30ms (Views: 27.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-23 16:03:11 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 29ms (Views: 26.7ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/15/edit" for ::1 at 2017-03-23 16:03:13 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"15"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 15], ["LIMIT", 1]] +Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms) + + + +ActiveRecord::RecordNotFound (Couldn't find Task with 'id'=15): + +app/controllers/tasks_controller.rb:17:in `edit' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.0ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (60.9ms) +Started GET "/tasks/1" for ::1 at 2017-03-23 16:03:21 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 21ms (Views: 18.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/" for ::1 at 2017-03-23 16:03:23 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 34ms (Views: 31.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/17" for ::1 at 2017-03-23 16:03:25 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"17"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 17], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.3ms) +Completed 200 OK in 59ms (Views: 56.5ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 13:16:42 -0700 + ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (11.8ms) +Completed 200 OK in 262ms (Views: 239.3ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 13:17:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (8.4ms) +Completed 200 OK in 33ms (Views: 25.8ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 13:17:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 32ms (Views: 28.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 13:17:14 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 37ms (Views: 34.4ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 13:17:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 32ms (Views: 28.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 13:18:00 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 500 Internal Server Error in 39ms (ActiveRecord: 0.1ms) + + + +ActionView::Template::Error (No route matches {:action=>"edit", :controller=>"tasks"} missing required keys: [:id]): + 11: + 17: + +app/views/layouts/application.html.erb:14:in `_app_views_layouts_application_html_erb__632288030597926929_70108163982660' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.2ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (61.0ms) +Started GET "/tasks" for ::1 at 2017-03-24 13:18:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 500 Internal Server Error in 37ms (ActiveRecord: 0.1ms) + + + +ActionView::Template::Error (undefined method `id' for nil:NilClass): + 11: + 17: + +app/views/layouts/application.html.erb:14:in `_app_views_layouts_application_html_erb__632288030597926929_70108160466340' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.2ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (57.2ms) +Started GET "/" for ::1 at 2017-03-24 13:20:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 500 Internal Server Error in 26ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined method `id' for nil:NilClass): + 11: + 17: + +app/views/layouts/application.html.erb:14:in `_app_views_layouts_application_html_erb__632288030597926929_70108161804800' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.3ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (59.0ms) +Started GET "/" for ::1 at 2017-03-24 13:22:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 500 Internal Server Error in 27ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined method `id' for nil:NilClass): + 11: + 17: + +app/views/layouts/application.html.erb:14:in `_app_views_layouts_application_html_erb__632288030597926929_70108136807680' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.3ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (61.5ms) +Started GET "/tasks" for ::1 at 2017-03-24 13:22:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 500 Internal Server Error in 29ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined method `id' for nil:NilClass): + 11: + 17: + +app/views/layouts/application.html.erb:14:in `_app_views_layouts_application_html_erb__632288030597926929_70108163125420' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.8ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (58.7ms) +Started GET "/tasks" for ::1 at 2017-03-24 13:22:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 500 Internal Server Error in 23ms (ActiveRecord: 0.1ms) + + + +ActionView::Template::Error (undefined method `id' for nil:NilClass): + 11: + 17: + +app/views/layouts/application.html.erb:14:in `_app_views_layouts_application_html_erb__632288030597926929_70108156010060' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.5ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (56.5ms) +Started GET "/tasks" for ::1 at 2017-03-24 13:23:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 500 Internal Server Error in 26ms (ActiveRecord: 0.1ms) + + + +ActionView::Template::Error (undefined method `id' for nil:NilClass): + 11: + 13: + 14: + 15: + 17: + +app/views/layouts/application.html.erb:14:in `_app_views_layouts_application_html_erb__632288030597926929_70108136904280' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.5ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.1ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.6ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (59.5ms) +Started GET "/tasks" for ::1 at 2017-03-24 13:24:04 -0700 + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (11.5ms) +Completed 500 Internal Server Error in 273ms (ActiveRecord: 0.9ms) + + + +ActionView::Template::Error (undefined method `id' for nil:NilClass): + 11: + 13: + 14: + 15: + 17: + +app/views/layouts/application.html.erb:14:in `_app_views_layouts_application_html_erb__388712946532605100_70210292744780' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.5ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (11.6ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (72.4ms) +Started GET "/tasks/1" for ::1 at 2017-03-24 13:24:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 38ms (Views: 32.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-24 13:24:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 25ms (Views: 21.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 13:24:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.1ms) + + + +ActionView::Template::Error (undefined method `id' for nil:NilClass): + 11: + 13: + 14: + 15: + 17: + +app/views/layouts/application.html.erb:14:in `_app_views_layouts_application_html_erb__388712946532605100_70210313699420' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.2ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.6ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (65.1ms) +Started GET "/" for ::1 at 2017-03-24 13:24:26 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 500 Internal Server Error in 20ms (ActiveRecord: 0.1ms) + + + +ActionView::Template::Error (undefined method `id' for nil:NilClass): + 11: + 13: + 14: + 15: + 17: + +app/views/layouts/application.html.erb:14:in `_app_views_layouts_application_html_erb__388712946532605100_70210306447060' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (5.2ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.5ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (58.5ms) +Started GET "/" for ::1 at 2017-03-24 13:26:52 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 500 Internal Server Error in 26ms (ActiveRecord: 0.1ms) + + + +ActionView::Template::Error (undefined method `id' for nil:NilClass): + 11: + 13: + 14: + 15: + 17: + +app/views/layouts/application.html.erb:14:in `_app_views_layouts_application_html_erb__388712946532605100_70210272757760' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.2ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (57.3ms) +Started GET "/" for ::1 at 2017-03-24 13:27:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 500 Internal Server Error in 34ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined method `id' for nil:NilClass): + 11: + 17: + +app/views/layouts/application.html.erb:14:in `_app_views_layouts_application_html_erb__388712946532605100_70210269990500' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.2ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (53.0ms) +Started GET "/tasks" for ::1 at 2017-03-24 13:27:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 500 Internal Server Error in 30ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined method `id' for nil:NilClass): + 11: + 17: + +app/views/layouts/application.html.erb:14:in `_app_views_layouts_application_html_erb__388712946532605100_70210295070960' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.1ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (86.0ms) +Started GET "/tasks/1" for ::1 at 2017-03-24 13:27:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 25ms (Views: 22.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/" for ::1 at 2017-03-24 13:28:48 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 500 Internal Server Error in 24ms (ActiveRecord: 0.1ms) + + + +ActionView::Template::Error (undefined method `id' for nil:NilClass): + 11: + 17: + +app/views/layouts/application.html.erb:14:in `_app_views_layouts_application_html_erb__388712946532605100_70210294913780' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (3.9ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (54.6ms) +Started PUT "/__web_console/repl_sessions/b76ca2db28e1157f46ee46e7c85388cb" for ::1 at 2017-03-24 13:29:13 -0700 +Started PUT "/__web_console/repl_sessions/b76ca2db28e1157f46ee46e7c85388cb" for ::1 at 2017-03-24 13:29:14 -0700 +Started PUT "/__web_console/repl_sessions/b76ca2db28e1157f46ee46e7c85388cb" for ::1 at 2017-03-24 13:29:40 -0700 +Started PUT "/__web_console/repl_sessions/b76ca2db28e1157f46ee46e7c85388cb" for ::1 at 2017-03-24 13:29:59 -0700 + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", nil], ["LIMIT", 1]] + Task Load (1.7ms) SELECT "tasks".* FROM "tasks" +Started PUT "/__web_console/repl_sessions/b76ca2db28e1157f46ee46e7c85388cb" for ::1 at 2017-03-24 13:31:56 -0700 +Started PUT "/__web_console/repl_sessions/b76ca2db28e1157f46ee46e7c85388cb" for ::1 at 2017-03-24 13:31:58 -0700 +Started GET "/tasks/1" for ::1 at 2017-03-24 13:32:15 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 30ms (Views: 27.7ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/1/edit" for ::1 at 2017-03-24 13:32:17 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (17.7ms) +Completed 500 Internal Server Error in 37ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined method `id' for nil:NilClass): + 11: + 17: + +app/views/layouts/application.html.erb:14:in `_app_views_layouts_application_html_erb__388712946532605100_70210314701260' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.0ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (58.7ms) +Started GET "/tasks/1/edit" for ::1 at 2017-03-24 13:32:17 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.8ms) +Completed 500 Internal Server Error in 25ms (ActiveRecord: 0.1ms) + + + +ActionView::Template::Error (undefined method `id' for nil:NilClass): + 11: + 17: + +app/views/layouts/application.html.erb:14:in `_app_views_layouts_application_html_erb__388712946532605100_70210306546940' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.6ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (58.5ms) +Started GET "/tasks/1/" for ::1 at 2017-03-24 13:32:24 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 24ms (Views: 21.6ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/1/edit" for ::1 at 2017-03-24 13:32:36 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (6.7ms) +Completed 500 Internal Server Error in 58ms (ActiveRecord: 0.3ms) + + + +ActionView::Template::Error (undefined method `id' for nil:NilClass): + 11: + 17: + +app/views/layouts/application.html.erb:14:in `_app_views_layouts_application_html_erb__388712946532605100_70210314324200' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (5.3ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (7.6ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (64.4ms) +Started GET "/tasks/1/" for ::1 at 2017-03-24 13:33:01 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 29ms (Views: 26.4ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/" for ::1 at 2017-03-24 13:33:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 500 Internal Server Error in 20ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined method `id' for nil:NilClass): + 11: + 17: + +app/views/layouts/application.html.erb:14:in `_app_views_layouts_application_html_erb__388712946532605100_70210314049080' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (9.7ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.1ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (62.5ms) +Started GET "/tasks/" for ::1 at 2017-03-24 13:42:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 24ms (Views: 22.9ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/2/edit" for ::1 at 2017-03-24 13:43:02 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (6.3ms) +Completed 500 Internal Server Error in 48ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 11:
+ 12:

*Click on each task for more information*

+ +app/views/tasks/index.html.erb:9:in `block in _app_views_tasks_index_html_erb___2985876352860186302_70210306064420' +app/views/tasks/index.html.erb:7:in `_app_views_tasks_index_html_erb___2985876352860186302_70210306064420' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (5.1ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (58.0ms) +Started GET "/tasks" for ::1 at 2017-03-24 14:04:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 30ms (Views: 28.7ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 14:05:47 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 32ms (Views: 30.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 14:06:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 27ms (Views: 24.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 14:06:50 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 43ms (Views: 40.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 14:06:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 41ms (Views: 37.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-24 14:06:52 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (4.9ms) +Completed 200 OK in 41ms (Views: 38.8ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 14:06:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 36ms (Views: 33.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/17/edit" for ::1 at 2017-03-24 14:07:38 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"17"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 17], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.3ms) +Completed 200 OK in 44ms (Views: 24.5ms | ActiveRecord: 0.7ms) + + +Started PATCH "/tasks/17" for ::1 at 2017-03-24 14:07:46 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"hV7hDdPndb69ymwj6j2CMy2VfXqpSmCHUAHnIL4XlvG9ejlXVGkeJ3Ns2czv4uuEJWsqMn6FkJwyKgZ1FZ1Tcw==", "task"=>{"description"=>"clean house", "assignee"=>"haby", "completed"=>"thursday", "duration"=>"2"}, "commit"=>"Update Task", "id"=>"17"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 17], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "description" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["description", "clean house"], ["updated_at", 2017-03-24 21:07:46 UTC], ["id", 17]] +  (1.2ms) commit transaction +Redirected to http://localhost:3000/tasks/17 +Completed 302 Found in 11ms (ActiveRecord: 1.8ms) + + +Started GET "/tasks/17" for ::1 at 2017-03-24 14:07:46 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"17"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 17], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 30ms (Views: 28.0ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/17" for ::1 at 2017-03-24 14:11:19 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"17"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 17], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.2ms) +Completed 200 OK in 71ms (Views: 38.3ms | ActiveRecord: 1.5ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 14:11:21 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 45ms (Views: 42.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 14:16:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 30ms (Views: 28.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-24 14:16:37 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 44ms (Views: 41.4ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-24 14:16:50 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.1ms) + + + +SyntaxError (/Users/habsr/ada/rails/TaskList/app/views/tasks/show.html.erb:13: syntax error, unexpected tLABEL, expecting keyword_do or '{' or '(' +elete", delete_task_path data: { :confirm "Are you sure you + ^ +/Users/habsr/ada/rails/TaskList/app/views/tasks/show.html.erb:13: syntax error, unexpected tSTRING_BEG, expecting => +e_task_path data: { :confirm "Are you sure you wish to delet + ^ +/Users/habsr/ada/rails/TaskList/app/views/tasks/show.html.erb:13: syntax error, unexpected '}', expecting ')' +u wish to delete this book?" }, method: :delete );@output_bu + ^): + +app/views/tasks/show.html.erb:13: syntax error, unexpected tLABEL, expecting keyword_do or '{' or '(' +app/views/tasks/show.html.erb:13: syntax error, unexpected tSTRING_BEG, expecting => +app/views/tasks/show.html.erb:13: syntax error, unexpected '}', expecting ')' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (11.2ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (69.2ms) +Started GET "/tasks/1" for ::1 at 2017-03-24 14:17:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.1ms) + + + +SyntaxError (/Users/habsr/ada/rails/TaskList/app/views/tasks/show.html.erb:13: syntax error, unexpected tSTRING_BEG, expecting => +_task_path, data: { :confirm "Are you sure you wish to delet + ^ +/Users/habsr/ada/rails/TaskList/app/views/tasks/show.html.erb:13: syntax error, unexpected '}', expecting ')' +u wish to delete this book?" }, method: :delete );@output_bu + ^): + +app/views/tasks/show.html.erb:13: syntax error, unexpected tSTRING_BEG, expecting => +app/views/tasks/show.html.erb:13: syntax error, unexpected '}', expecting ')' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.6ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (59.3ms) +Started GET "/tasks/1" for ::1 at 2017-03-24 14:18:42 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.1ms) + + + +SyntaxError (/Users/habsr/ada/rails/TaskList/app/views/tasks/show.html.erb:13: syntax error, unexpected tSTRING_BEG, expecting => +t_task.id), data: { :confirm "Are you sure you wish to delet + ^ +/Users/habsr/ada/rails/TaskList/app/views/tasks/show.html.erb:13: syntax error, unexpected '}', expecting ')' +u wish to delete this book?" }, method: :delete );@output_bu + ^): + +app/views/tasks/show.html.erb:13: syntax error, unexpected tSTRING_BEG, expecting => +app/views/tasks/show.html.erb:13: syntax error, unexpected '}', expecting ')' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (8.7ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.7ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.9ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (91.5ms) +Started GET "/tasks/1" for ::1 at 2017-03-24 14:19:03 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.1ms) + + + +SyntaxError (/Users/habsr/ada/rails/TaskList/app/views/tasks/show.html.erb:14: syntax error, unexpected tSTRING_BEG, expecting => + data:{ :confirm "Are you sure you wish to delet + ^ +/Users/habsr/ada/rails/TaskList/app/views/tasks/show.html.erb:14: syntax error, unexpected '}', expecting ')' +u wish to delete this book?" }, method: :delete );@output_bu + ^): + +app/views/tasks/show.html.erb:14: syntax error, unexpected tSTRING_BEG, expecting => +app/views/tasks/show.html.erb:14: syntax error, unexpected '}', expecting ')' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (10.3ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.4ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (63.3ms) +Started GET "/tasks/1" for ::1 at 2017-03-24 14:19:26 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 32ms (Views: 29.9ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-24 14:19:32 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (10.3ms) +Completed 200 OK in 41ms (Views: 38.3ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-24 14:19:50 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"+qYjzPrWdp16PRaxKXM3YkQWjYHBuO3hYgD2+70/MwzQq9+NFKPx75gKD71EvW78mAsMfqBQLh0LEF8bBe6JNQ==", "task"=>{"description"=>"Homework", "assignee"=>"Haby", "completed"=>"monday", "duration"=>"2"}, "commit"=>"Create Task"} +  (0.1ms) begin transaction + SQL (0.5ms) INSERT INTO "tasks" ("description", "assignee", "completed", "created_at", "updated_at", "duration") VALUES (?, ?, ?, ?, ?, ?) [["description", "Homework"], ["assignee", "Haby"], ["completed", "monday"], ["created_at", 2017-03-24 21:19:50 UTC], ["updated_at", 2017-03-24 21:19:50 UTC], ["duration", 2]] +  (1.9ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 2.5ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 14:19:50 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 22ms (Views: 20.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/18/edit" for ::1 at 2017-03-24 14:19:54 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"18"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.4ms) +Completed 200 OK in 38ms (Views: 35.4ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/18/edit" for ::1 at 2017-03-24 14:22:43 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"18"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.0ms) +Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.1ms) + + + +SyntaxError (/Users/habsr/ada/rails/TaskList/app/views/tasks/edit.html.erb:17: syntax error, unexpected '<', expecting ')' +<%= link_to "Home", tasks_path + ^ +/Users/habsr/ada/rails/TaskList/app/views/tasks/edit.html.erb:20: syntax error, unexpected keyword_ensure, expecting ')' + ensure + ^ +/Users/habsr/ada/rails/TaskList/app/views/tasks/edit.html.erb:22: syntax error, unexpected keyword_end, expecting ')' + end + ^): + +app/views/tasks/edit.html.erb:17: syntax error, unexpected '<', expecting ')' +app/views/tasks/edit.html.erb:20: syntax error, unexpected keyword_ensure, expecting ')' +app/views/tasks/edit.html.erb:22: syntax error, unexpected keyword_end, expecting ')' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (5.4ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.7ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (59.4ms) +Started GET "/tasks/18/edit" for ::1 at 2017-03-24 14:22:59 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"18"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (6.5ms) +Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.1ms) + + + +ActionView::Template::Error (undefined method `id' for nil:NilClass): + 13: <%= f.submit %> + 14: <% end %> + 15: + 16: <%= link_to "Delete", delete_task_path(@result_task.id) %> + 17: <%= link_to "Home", tasks_path %> + 18: <%= link_to "New Task", new_task_path %> + +app/views/tasks/edit.html.erb:16:in `_app_views_tasks_edit_html_erb__805167786674586971_70210306130900' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.8ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (56.3ms) +Started GET "/tasks/18/edit" for ::1 at 2017-03-24 14:23:15 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"18"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.0ms) +Completed 200 OK in 28ms (Views: 26.0ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/18" for ::1 at 2017-03-24 14:23:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"18"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 29ms (Views: 25.7ms | ActiveRecord: 0.2ms) + + +Started DELETE "/tasks/18" for ::1 at 2017-03-24 14:23:30 -0700 + +AbstractController::ActionNotFound (The action 'destroy' could not be found for TasksController): + +actionpack (5.0.2) lib/abstract_controller/base.rb:121:in `process' +actionview (5.0.2) lib/action_view/rendering.rb:30:in `process' +actionpack (5.0.2) lib/action_controller/metal.rb:190:in `dispatch' +actionpack (5.0.2) lib/action_controller/metal.rb:262:in `dispatch' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:50:in `dispatch' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:32:in `serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:39:in `block in serve' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `each' +actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `serve' +actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:725:in `call' +rack (2.0.1) lib/rack/etag.rb:25:in `call' +rack (2.0.1) lib/rack/conditional_get.rb:38:in `call' +rack (2.0.1) lib/rack/head.rb:12:in `call' +rack (2.0.1) lib/rack/session/abstract/id.rb:222:in `context' +rack (2.0.1) lib/rack/session/abstract/id.rb:216:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/cookies.rb:613:in `call' +activerecord (5.0.2) lib/active_record/migration.rb:553:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:38:in `block in call' +activesupport (5.0.2) lib/active_support/callbacks.rb:97:in `__run_callbacks__' +activesupport (5.0.2) lib/active_support/callbacks.rb:750:in `_run_call_callbacks' +activesupport (5.0.2) lib/active_support/callbacks.rb:90:in `run_callbacks' +actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:36:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call' +web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.4.0) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.0.2) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/request_id.rb:24:in `call' +rack (2.0.1) lib/rack/method_override.rb:22:in `call' +rack (2.0.1) lib/rack/runtime.rb:22:in `call' +activesupport (5.0.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/static.rb:136:in `call' +rack (2.0.1) lib/rack/sendfile.rb:111:in `call' +railties (5.0.2) lib/rails/engine.rb:522:in `call' +puma (3.8.2) lib/puma/configuration.rb:224:in `call' +puma (3.8.2) lib/puma/server.rb:600:in `handle_request' +puma (3.8.2) lib/puma/server.rb:435:in `process_client' +puma (3.8.2) lib/puma/server.rb:299:in `block in run' +puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/unknown_action.html.erb within rescues/layout + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/unknown_action.html.erb within rescues/layout (0.4ms) From 07045a4da072226684cf2874b1041d66a54ce9d5 Mon Sep 17 00:00:00 2001 From: Haby Randall Date: Fri, 24 Mar 2017 15:15:43 -0700 Subject: [PATCH 06/20] Added a complete column with boolean to database --- app/controllers/tasks_controller.rb | 6 ++ app/views/tasks/edit.html.erb | 2 +- app/views/tasks/show.html.erb | 2 +- config/routes.rb | 2 + db/development.sqlite3 | Bin 28672 -> 28672 bytes .../20170324214431_add_completed_to_task.rb | 5 ++ log/development.log | 62 ++++++++++++++++++ 7 files changed, 77 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20170324214431_add_completed_to_task.rb diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index 4d51c0e59..fa4564325 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -17,6 +17,12 @@ def edit @task = Task.find(params[:id]) end + def destroy + Task.destroy(params[:id]) + + redirect_to tasks_path + end + def update task = Task.find(params[:id]) task.description = task_params[:description] diff --git a/app/views/tasks/edit.html.erb b/app/views/tasks/edit.html.erb index e8b88e74a..a86c6d514 100644 --- a/app/views/tasks/edit.html.erb +++ b/app/views/tasks/edit.html.erb @@ -13,6 +13,6 @@ <%= f.submit %> <% end %> -<%= link_to "Delete", delete_task_path %> + <%= link_to "Home", tasks_path %> <%= link_to "New Task", new_task_path %> diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb index 8e6e2a3bc..24a11d66d 100644 --- a/app/views/tasks/show.html.erb +++ b/app/views/tasks/show.html.erb @@ -11,4 +11,4 @@

<%= link_to "Edit", edit_task_path(@result_task.id) %>

<%= link_to "Delete", delete_task_path(@result_task.id), - data:{ confirm: "Are you sure you wish to delete this book?" }, method: :delete %>

+ data:{ confirm: "Are you sure you wish to delete this task?" }, method: :delete %>

diff --git a/config/routes.rb b/config/routes.rb index 6709b2c1d..2d27cd467 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -15,4 +15,6 @@ delete "/tasks/:id", to: "tasks#destroy", as: "delete_task" + post '/tasks/complete', to: "tasks#complete", as: "completed_task" + end diff --git a/db/development.sqlite3 b/db/development.sqlite3 index 9a8df0680c6b502c3df59cdb0b62aea3934015ab..a34fd9747d675655646b32cecb1f5cc91c27bdf0 100644 GIT binary patch delta 28 kcmZp8z}WDBae_3X+C&*=MzxIzOZ=Hx`3g3(2mF)=0F28CSO5S3 delta 28 kcmZp8z}WDBae_3X>O>i5M%9f8OZ=JH_~bXU2mF)=0E)~B1^@s6 diff --git a/db/migrate/20170324214431_add_completed_to_task.rb b/db/migrate/20170324214431_add_completed_to_task.rb new file mode 100644 index 000000000..f983a177a --- /dev/null +++ b/db/migrate/20170324214431_add_completed_to_task.rb @@ -0,0 +1,5 @@ +class AddCompletedToTask < ActiveRecord::Migration[5.0] + def change + add_column :tasks, :completed, :boolean + end +end diff --git a/log/development.log b/log/development.log index a6f03d1fb..6288f9299 100644 --- a/log/development.log +++ b/log/development.log @@ -4081,3 +4081,65 @@ puma (3.8.2) lib/puma/server.rb:299:in `block in run' puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread' Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/unknown_action.html.erb within rescues/layout Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/unknown_action.html.erb within rescues/layout (0.4ms) +Started GET "/tasks/18" for ::1 at 2017-03-24 14:27:53 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"18"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 50ms (Views: 29.2ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 14:28:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 50ms (Views: 48.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/18/edit" for ::1 at 2017-03-24 14:28:35 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"18"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (11.4ms) +Completed 200 OK in 70ms (Views: 66.8ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/18" for ::1 at 2017-03-24 14:28:40 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"18"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 31ms (Views: 28.1ms | ActiveRecord: 0.1ms) + + +Started DELETE "/tasks/18" for ::1 at 2017-03-24 14:28:49 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"Iu0rhJYW4wKXfBRvqBCGkbpFBCvE0bsZvXymaKPPwytl+6EhE/o+lyhcrgRWwjZCqajF3mnhFjmy9oedPZArrQ==", "id"=>"18"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]] +  (0.9ms) begin transaction + SQL (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 18]] +  (2.5ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 15ms (ActiveRecord: 4.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 14:28:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (8.6ms) +Completed 200 OK in 39ms (Views: 36.3ms | ActiveRecord: 1.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 14:29:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 23ms (Views: 21.7ms | ActiveRecord: 0.1ms) + + From 6179ded12e39446d6e1e37714301e19d50c36d1c Mon Sep 17 00:00:00 2001 From: Haby Randall Date: Sun, 26 Mar 2017 21:44:02 -0700 Subject: [PATCH 07/20] Added a route for complete action --- app/assets/stylesheets/tasks.scss | 22 ++ app/views/layouts/application.html.erb | 35 +-- config/routes.rb | 2 +- db/development.sqlite3 | Bin 28672 -> 28672 bytes .../20170324214431_add_completed_to_task.rb | 5 - .../20170327040711_add_complete_to_task.rb | 4 + db/schema.rb | 2 +- log/development.log | 258 ++++++++++++++++++ 8 files changed, 305 insertions(+), 23 deletions(-) delete mode 100644 db/migrate/20170324214431_add_completed_to_task.rb create mode 100644 db/migrate/20170327040711_add_complete_to_task.rb diff --git a/app/assets/stylesheets/tasks.scss b/app/assets/stylesheets/tasks.scss index a4a4b8cbc..f8833ffd4 100644 --- a/app/assets/stylesheets/tasks.scss +++ b/app/assets/stylesheets/tasks.scss @@ -2,6 +2,20 @@ // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ +html { + background-color: #fefbd8; +} + +header { + background-color: #80ced6; + text-align: center; +} + +body { + color: #618685; + // border +} + h3 { color: blue; } @@ -23,3 +37,11 @@ section { border-color: blue; border-radius: 10%; } + +// HEX: #d5f4e6 +// +// HEX: #80ced6 +// +// HEX: #fefbd8 +// +// HEX: #618685 diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index ab5d855cd..5f48acf8f 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -1,21 +1,24 @@ - - TaskList - <%= csrf_meta_tags %> + + TaskList + <%= csrf_meta_tags %> - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> - <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> - + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + +
+ Haby's Tasks +

All The Tasks

+
+ - - - - <%= yield %> - + + <%= yield %> + diff --git a/config/routes.rb b/config/routes.rb index 2d27cd467..152d8094a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -15,6 +15,6 @@ delete "/tasks/:id", to: "tasks#destroy", as: "delete_task" - post '/tasks/complete', to: "tasks#complete", as: "completed_task" + patch '/tasks/:id/complete', to: "tasks#complete", as: "completed_task" end diff --git a/db/development.sqlite3 b/db/development.sqlite3 index a34fd9747d675655646b32cecb1f5cc91c27bdf0..47900339bb115247699342384f8e245041fd9dff 100644 GIT binary patch delta 136 zcmZp8z}WDBae_3X#zYxsMvaXLOZd52_;)byzvI8de~N#zV!(8sjT3~JRRma=G>r@l z%?*r=%neKo%nc0%nBgKOMusLP#)gyc$ZPPh@NWg_zRiDvf9qyJfu;PDZ|ieQL-nu- SF>5kHje%-n-h5kM)d2wNVk1HT delta 56 zcmZp8z}WDBae_3X+C&*=MzxIzOZYjM`0p_AzvI8NS Date: Mon, 27 Mar 2017 01:43:57 -0700 Subject: [PATCH 08/20] Added complete method to controller --- app/controllers/tasks_controller.rb | 13 +++++++++++++ .../20170327040711_add_complete_to_task.rb | 1 + log/development.log | 19 +++++++++++++++++++ 3 files changed, 33 insertions(+) diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index fa4564325..20afe8c53 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -38,6 +38,19 @@ def update def new @task = Task.new end + def complete + task = Task.find(params[:id]) + if task.completion == "Not Complete" + task.completion = "Complete at #{Date.today}" + else + task.completion = "Not Complete" + end + + if task.save + redirect_to task_path(task.id) + end + + end def create # task = Task.new diff --git a/db/migrate/20170327040711_add_complete_to_task.rb b/db/migrate/20170327040711_add_complete_to_task.rb index b18ffcdc3..111618a4e 100644 --- a/db/migrate/20170327040711_add_complete_to_task.rb +++ b/db/migrate/20170327040711_add_complete_to_task.rb @@ -1,4 +1,5 @@ class AddCompleteToTask < ActiveRecord::Migration[5.0] def change + add_column :completion_date end end diff --git a/log/development.log b/log/development.log index d7e60cfec..074944563 100644 --- a/log/development.log +++ b/log/development.log @@ -4401,3 +4401,22 @@ Migrating to AddCompleteToTask (20170327040711)  (0.1ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" +Started GET "/tasks/1/edit" for ::1 at 2017-03-26 21:53:04 -0700 + ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (24.3ms) +Completed 200 OK in 305ms (Views: 278.9ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks/1/edit" for ::1 at 2017-03-26 21:53:04 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (5.6ms) +Completed 200 OK in 30ms (Views: 28.1ms | ActiveRecord: 0.1ms) + + From 906d3d1fd5a125c6a382eaa2ba0349254cde159f Mon Sep 17 00:00:00 2001 From: Haby Randall Date: Mon, 27 Mar 2017 01:51:23 -0700 Subject: [PATCH 09/20] Readjusted complete route, adding complete method to index --- app/controllers/tasks_controller.rb | 1 + app/views/tasks/show.html.erb | 1 + config/routes.rb | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index 20afe8c53..e85bd476a 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -38,6 +38,7 @@ def update def new @task = Task.new end + def complete task = Task.find(params[:id]) if task.completion == "Not Complete" diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb index 24a11d66d..b288e1ace 100644 --- a/app/views/tasks/show.html.erb +++ b/app/views/tasks/show.html.erb @@ -5,6 +5,7 @@
  • The assigned person is <%= @result_task.assignee %>.
  • This should be completed by <%= @result_task.completed %>
  • The duration of the task is <%= @result_task.duration %> hour(s).
  • +
  • The status of this task is <%= @result_task.completion_date
  • diff --git a/config/routes.rb b/config/routes.rb index 152d8094a..64529a50f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -15,6 +15,7 @@ delete "/tasks/:id", to: "tasks#destroy", as: "delete_task" - patch '/tasks/:id/complete', to: "tasks#complete", as: "completed_task" + patch "/tasks/:id", to: "tasks#complete", as: "completed_task" + post "/tasks/:id", to: "tasks#complete" end From 57dabd3d11f3aa61d48e828470540ca8baee7c53 Mon Sep 17 00:00:00 2001 From: Haby Randall Date: Mon, 27 Mar 2017 02:36:13 -0700 Subject: [PATCH 10/20] Getting errors on completion method- still not resolved --- app/controllers/tasks_controller.rb | 35 ++-- app/views/tasks/show.html.erb | 3 +- log/development.log | 308 ++++++++++++++++++++++++++++ 3 files changed, 330 insertions(+), 16 deletions(-) diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index e85bd476a..0bbd5a815 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -38,20 +38,7 @@ def update def new @task = Task.new end - - def complete - task = Task.find(params[:id]) - if task.completion == "Not Complete" - task.completion = "Complete at #{Date.today}" - else - task.completion = "Not Complete" - end - - if task.save - redirect_to task_path(task.id) - end - end def create # task = Task.new @@ -63,17 +50,35 @@ def create # if task.save # redirect_to tasks_path # end - task = Task.create task_params + task = Task.new + task.description = task_params[:description] + task.assignee = task_params[:assignee] + task.completed = task_params[:completed] + task.duration = task_params[:duration] + task.completion_date = "Not Complete" unless task.id == nil redirect_to tasks_path end end + def complete + task = Task.find(params[:id]) + if task.completion_date == "Not Complete" + task.completion_date = "Complete at #{Date.today}" + else + task.completion_date = "Not Complete" + end + + if task.save + redirect_to task_path(task.id) + end + end + private def task_params - params.require(:task).permit(:description, :assignee, :completed, :duration) + params.require(:task).permit(:description, :assignee, :completed, :duration, :completion_date) end diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb index b288e1ace..67bdb2957 100644 --- a/app/views/tasks/show.html.erb +++ b/app/views/tasks/show.html.erb @@ -5,7 +5,7 @@
  • The assigned person is <%= @result_task.assignee %>.
  • This should be completed by <%= @result_task.completed %>
  • The duration of the task is <%= @result_task.duration %> hour(s).
  • -
  • The status of this task is <%= @result_task.completion_date
  • + @@ -13,3 +13,4 @@

    <%= link_to "Edit", edit_task_path(@result_task.id) %>

    <%= link_to "Delete", delete_task_path(@result_task.id), data:{ confirm: "Are you sure you wish to delete this task?" }, method: :delete %>

    +

    <%= link_to "Complete?", completed_task_path(@result_task.id), data: { confirm: "Are you sure you want to complete this task?" }, method: :complete %>

    diff --git a/log/development.log b/log/development.log index 074944563..7341d1a21 100644 --- a/log/development.log +++ b/log/development.log @@ -4420,3 +4420,311 @@ Processing by TasksController#edit as HTML Completed 200 OK in 30ms (Views: 28.1ms | ActiveRecord: 0.1ms) +Started GET "/tasks/1/edit" for ::1 at 2017-03-27 01:58:51 -0700 + ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (22.1ms) +Completed 200 OK in 276ms (Views: 245.8ms | ActiveRecord: 1.7ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 01:58:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 36ms (Views: 30.8ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-27 01:59:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (37.4ms) +Completed 500 Internal Server Error in 47ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined method `completion_date' for # +Did you mean? completed): + 5:
  • The assigned person is <%= @result_task.assignee %>.
  • + 6:
  • This should be completed by <%= @result_task.completed %>
  • + 7:
  • The duration of the task is <%= @result_task.duration %> hour(s).
  • + 8:
  • The status of this task is <%= @result_task.completion_date %>
  • + 9: + 10: + 11: + +app/views/tasks/show.html.erb:8:in `_app_views_tasks_show_html_erb___4290272052039136707_70258291756340' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.6ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (67.1ms) +Started GET "/tasks/1" for ::1 at 2017-03-27 01:59:32 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 22ms (Views: 19.7ms | ActiveRecord: 0.1ms) + + +Started POST "/tasks/1" for ::1 at 2017-03-27 01:59:43 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"ojucFleRVSzAeCyUc6MhfRhKdSg+2OVDSFwddrQXhAjlLRaz0n2IuX9Ylv+NcZGuC6e03ZPoSGNH1jyDKkhsjg==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.1ms) + + + +NoMethodError (undefined method `completion' for # +Did you mean? completed + completed= + completed?): + +app/controllers/tasks_controller.rb:63:in `complete' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (3.5ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (59.2ms) +Started GET "/tasks/1" for ::1 at 2017-03-27 02:02:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (11.0ms) +Completed 500 Internal Server Error in 28ms (ActiveRecord: 0.7ms) + + + +ActionView::Template::Error (undefined method `completion_date' for # +Did you mean? completed): + 5:
  • The assigned person is <%= @result_task.assignee %>.
  • + 6:
  • This should be completed by <%= @result_task.completed %>
  • + 7:
  • The duration of the task is <%= @result_task.duration %> hour(s).
  • + 8:
  • The status of this task is <%= @result_task.completion_date %>
  • + 9: + 10: + 11: + +app/views/tasks/show.html.erb:8:in `_app_views_tasks_show_html_erb___4290272052039136707_70258296296000' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.8ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (60.6ms) +Started GET "/tasks/1" for ::1 at 2017-03-27 02:06:09 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (21.9ms) +Completed 500 Internal Server Error in 42ms (ActiveRecord: 0.7ms) + + + +ActionView::Template::Error (undefined method `complete' for # +Did you mean? completed + completed= + completed?): + 5:
  • The assigned person is <%= @result_task.assignee %>.
  • + 6:
  • This should be completed by <%= @result_task.completed %>
  • + 7:
  • The duration of the task is <%= @result_task.duration %> hour(s).
  • + 8:
  • The status of this task is <%= @result_task.complete %>
  • + 9: + 10: + 11: + +app/views/tasks/show.html.erb:8:in `_app_views_tasks_show_html_erb___4290272052039136707_70258284117040' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (10.0ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (8.1ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.7ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (97.5ms) +Started GET "/tasks/1" for ::1 at 2017-03-27 02:16:57 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (24.7ms) +Completed 500 Internal Server Error in 67ms (ActiveRecord: 1.5ms) + + + +ActionView::Template::Error (undefined method `completion_date' for # +Did you mean? completed): + 5:
  • The assigned person is <%= @result_task.assignee %>.
  • + 6:
  • This should be completed by <%= @result_task.completed %>
  • + 7:
  • The duration of the task is <%= @result_task.duration %> hour(s).
  • + 8:
  • The status of this task is <%= @result_task.completion_date %>
  • + 9: + 10: + 11: + +app/views/tasks/show.html.erb:8:in `_app_views_tasks_show_html_erb___4290272052039136707_70258296053120' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (7.8ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.5ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (80.4ms) +Started GET "/tasks/" for ::1 at 2017-03-27 02:17:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 33ms (Views: 30.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-27 02:17:07 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (24.1ms) +Completed 500 Internal Server Error in 38ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined method `completion_date' for # +Did you mean? completed): + 5:
  • The assigned person is <%= @result_task.assignee %>.
  • + 6:
  • This should be completed by <%= @result_task.completed %>
  • + 7:
  • The duration of the task is <%= @result_task.duration %> hour(s).
  • + 8:
  • The status of this task is <%= @result_task.completion_date %>
  • + 9: + 10: + 11: + +app/views/tasks/show.html.erb:8:in `_app_views_tasks_show_html_erb___4290272052039136707_70258295934780' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (9.3ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.8ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.9ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (114.2ms) +Started GET "/tasks/1" for ::1 at 2017-03-27 02:17:56 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (18.4ms) +Completed 500 Internal Server Error in 27ms (ActiveRecord: 0.1ms) + + + +ActionView::Template::Error (undefined method `completion_date' for # +Did you mean? completed): + 5:
  • The assigned person is <%= @result_task.assignee %>.
  • + 6:
  • This should be completed by <%= @result_task.completed %>
  • + 7:
  • The duration of the task is <%= @result_task.duration %> hour(s).
  • + 8: + 9: + 10: + 11: + +app/views/tasks/show.html.erb:8:in `_app_views_tasks_show_html_erb___4290272052039136707_70258283995700' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (5.8ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (80.8ms) +Started GET "/tasks/" for ::1 at 2017-03-27 02:18:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 34ms (Views: 31.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-27 02:18:11 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (32.8ms) +Completed 500 Internal Server Error in 44ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined method `completion_date' for # +Did you mean? completed): + 5:
  • The assigned person is <%= @result_task.assignee %>.
  • + 6:
  • This should be completed by <%= @result_task.completed %>
  • + 7:
  • The duration of the task is <%= @result_task.duration %> hour(s).
  • + 8: + 9: + 10: + 11: + +app/views/tasks/show.html.erb:8:in `_app_views_tasks_show_html_erb___4290272052039136707_70258257796840' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (8.0ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.6ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (103.5ms) +Started GET "/tasks/1" for ::1 at 2017-03-27 02:18:29 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 32ms (Views: 28.9ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/1" for ::1 at 2017-03-27 02:18:36 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"9iwLR+mnqLqdPFhruzVrVfMvD5OFfF6Jm13kVvV82bGxOoHibEt1LyIc4gBF59uG4MLOZihM86mU18WjayMxNw==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 22ms (ActiveRecord: 0.1ms) + + + +NoMethodError (undefined method `completion_date' for # +Did you mean? completed): + +app/controllers/tasks_controller.rb:67:in `complete' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (5.2ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.5ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (79.7ms) +Started GET "/tasks/1" for ::1 at 2017-03-27 02:25:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.7ms) +Completed 200 OK in 39ms (Views: 33.7ms | ActiveRecord: 0.2ms) + + From 9fb10457f71bc7a73dc1bacae1b70de746d6ddb8 Mon Sep 17 00:00:00 2001 From: Haby Randall Date: Mon, 27 Mar 2017 10:19:54 -0700 Subject: [PATCH 11/20] Getting crazy errors with migrations, turns out that the completion _date column was not added. WIP --- app/controllers/tasks_controller.rb | 6 +- app/views/tasks/show.html.erb | 2 +- .../20170327165330_add_completed_to_tasks.rb | 5 + log/development.log | 267 ++++++++++++++++++ 4 files changed, 276 insertions(+), 4 deletions(-) create mode 100644 db/migrate/20170327165330_add_completed_to_tasks.rb diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index 0bbd5a815..5dd068c93 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -55,7 +55,7 @@ def create task.assignee = task_params[:assignee] task.completed = task_params[:completed] task.duration = task_params[:duration] - task.completion_date = "Not Complete" + task.completion_date = task_params[:completion_date] unless task.id == nil redirect_to tasks_path @@ -64,8 +64,8 @@ def create def complete task = Task.find(params[:id]) - if task.completion_date == "Not Complete" - task.completion_date = "Complete at #{Date.today}" + if task.complete(task_params) == true + task.completion_date = Time.now else task.completion_date = "Not Complete" end diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb index 67bdb2957..8d74739fa 100644 --- a/app/views/tasks/show.html.erb +++ b/app/views/tasks/show.html.erb @@ -5,7 +5,7 @@
  • The assigned person is <%= @result_task.assignee %>.
  • This should be completed by <%= @result_task.completed %>
  • The duration of the task is <%= @result_task.duration %> hour(s).
  • - +
  • The status of this task is <%= @result_task.complete %>
  • diff --git a/db/migrate/20170327165330_add_completed_to_tasks.rb b/db/migrate/20170327165330_add_completed_to_tasks.rb new file mode 100644 index 000000000..b00d78790 --- /dev/null +++ b/db/migrate/20170327165330_add_completed_to_tasks.rb @@ -0,0 +1,5 @@ +class AddCompletedToTasks < ActiveRecord::Migration[5.0] + def change + add_column :completed, :boolean + end +end diff --git a/log/development.log b/log/development.log index 7341d1a21..01ae507de 100644 --- a/log/development.log +++ b/log/development.log @@ -4728,3 +4728,270 @@ Processing by TasksController#show as HTML Completed 200 OK in 39ms (Views: 33.7ms | ActiveRecord: 0.2ms) +Started GET "/tasks" for ::1 at 2017-03-27 09:15:58 -0700 + ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (13.1ms) +Completed 200 OK in 284ms (Views: 263.8ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-27 09:16:01 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.1ms) +Completed 200 OK in 83ms (Views: 69.5ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/1/edit" for ::1 at 2017-03-27 09:16:04 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (34.5ms) +Completed 200 OK in 90ms (Views: 86.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 09:16:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 91ms (Views: 88.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-27 09:16:10 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (7.1ms) +Completed 200 OK in 50ms (Views: 44.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 09:16:40 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (7.6ms) +Completed 200 OK in 45ms (Views: 42.2ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-27 09:16:42 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (42.4ms) +Completed 500 Internal Server Error in 58ms (ActiveRecord: 0.1ms) + + + +ActionView::Template::Error (undefined method `completion_date' for # +Did you mean? completed): + 5:
  • The assigned person is <%= @result_task.assignee %>.
  • + 6:
  • This should be completed by <%= @result_task.completed %>
  • + 7:
  • The duration of the task is <%= @result_task.duration %> hour(s).
  • + 8:
  • The status of this task is <%= @result_task.completion_date %>
  • + 9: + 10: + 11: + +app/views/tasks/show.html.erb:8:in `_app_views_tasks_show_html_erb___2618875019989454323_70261275165220' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (8.7ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.7ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (112.6ms) +Started PUT "/__web_console/repl_sessions/d5bbbf75654c8934e2b6e06ad677a94f" for ::1 at 2017-03-27 09:17:18 -0700 +Started PUT "/__web_console/repl_sessions/d5bbbf75654c8934e2b6e06ad677a94f" for ::1 at 2017-03-27 09:17:19 -0700 +Started PUT "/__web_console/repl_sessions/d5bbbf75654c8934e2b6e06ad677a94f" for ::1 at 2017-03-27 09:17:30 -0700 +Started PUT "/__web_console/repl_sessions/d5bbbf75654c8934e2b6e06ad677a94f" for ::1 at 2017-03-27 09:17:48 -0700 +Started PUT "/__web_console/repl_sessions/d5bbbf75654c8934e2b6e06ad677a94f" for ::1 at 2017-03-27 09:17:59 -0700 +Started PUT "/__web_console/repl_sessions/d5bbbf75654c8934e2b6e06ad677a94f" for ::1 at 2017-03-27 09:18:00 -0700 +Started GET "/tasks/" for ::1 at 2017-03-27 09:21:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (19.5ms) +Completed 200 OK in 77ms (Views: 63.3ms | ActiveRecord: 1.6ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-27 09:21:08 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (29.9ms) +Completed 500 Internal Server Error in 44ms (ActiveRecord: 0.3ms) + + + +ActionView::Template::Error (undefined method `completion_date' for # +Did you mean? completed): + 5:
  • The assigned person is <%= @result_task.assignee %>.
  • + 6:
  • This should be completed by <%= @result_task.completed %>
  • + 7:
  • The duration of the task is <%= @result_task.duration %> hour(s).
  • + 8:
  • The status of this task is <%= @result_task.completion_date %>
  • + 9: + 10: + 11: + +app/views/tasks/show.html.erb:8:in `_app_views_tasks_show_html_erb___2618875019989454323_70261274987600' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (9.3ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.9ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (108.6ms) +Started GET "/tasks/" for ::1 at 2017-03-27 09:21:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 45ms (Views: 42.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/14" for ::1 at 2017-03-27 09:21:45 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"14"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (24.5ms) +Completed 500 Internal Server Error in 40ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined method `completion_date' for # +Did you mean? completed): + 5:
  • The assigned person is <%= @result_task.assignee %>.
  • + 6:
  • This should be completed by <%= @result_task.completed %>
  • + 7:
  • The duration of the task is <%= @result_task.duration %> hour(s).
  • + 8: + 9: + 10: + 11: + +app/views/tasks/show.html.erb:8:in `_app_views_tasks_show_html_erb___2618875019989454323_70261275853200' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (8.4ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.3ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (102.2ms) +Started GET "/tasks/14" for ::1 at 2017-03-27 09:22:36 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"14"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (12.0ms) +Completed 500 Internal Server Error in 24ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined method `complete' for # +Did you mean? completed + completed= + completed?): + 5:
  • The assigned person is <%= @result_task.assignee %>.
  • + 6:
  • This should be completed by <%= @result_task.completed %>
  • + 7:
  • The duration of the task is <%= @result_task.duration %> hour(s).
  • + 8:
  • The status of this task is <%= @result_task.complete%>
  • + 9: + 10: + 11: + +app/views/tasks/show.html.erb:8:in `_app_views_tasks_show_html_erb___2618875019989454323_70261275453460' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (7.8ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.4ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (84.4ms) +Started GET "/tasks/14" for ::1 at 2017-03-27 09:22:53 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"14"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (12.3ms) +Completed 500 Internal Server Error in 22ms (ActiveRecord: 0.1ms) + + + +ActionView::Template::Error (undefined method `complete' for # +Did you mean? completed + completed= + completed?): + 5:
  • The assigned person is <%= @result_task.assignee %>.
  • + 6:
  • This should be completed by <%= @result_task.completed %>
  • + 7:
  • The duration of the task is <%= @result_task.duration %> hour(s).
  • + 8:
  • The status of this task is <%= @result_task.complete %>
  • + 9: + 10: + 11: + +app/views/tasks/show.html.erb:8:in `_app_views_tasks_show_html_erb___2618875019989454323_70261275205000' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (6.3ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.1ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (84.6ms) +Started GET "/tasks/" for ::1 at 2017-03-27 09:23:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (20.0ms) +Completed 200 OK in 56ms (Views: 45.2ms | ActiveRecord: 2.7ms) + + +Started GET "/tasks/14" for ::1 at 2017-03-27 09:23:32 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"14"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (25.5ms) +Completed 500 Internal Server Error in 44ms (ActiveRecord: 0.5ms) + + + +ActionView::Template::Error (undefined method `complete' for # +Did you mean? completed + completed= + completed?): + 5:
  • The assigned person is <%= @result_task.assignee %>.
  • + 6:
  • This should be completed by <%= @result_task.completed %>
  • + 7:
  • The duration of the task is <%= @result_task.duration %> hour(s).
  • + 8:
  • The status of this task is <%= @result_task.complete %>
  • + 9: + 10: + 11: + +app/views/tasks/show.html.erb:8:in `_app_views_tasks_show_html_erb___2618875019989454323_70261296981220' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (8.3ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.1ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (98.1ms) + Task Load (1.7ms) SELECT "tasks".* FROM "tasks" + ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" +Migrating to AddCompletedToTasks (20170327165330) +  (0.1ms) begin transaction +  (0.1ms) rollback transaction From 6941b5dfb8dfc733666d76935e25e0fb8c338abb Mon Sep 17 00:00:00 2001 From: Haby Randall Date: Mon, 27 Mar 2017 11:31:16 -0700 Subject: [PATCH 12/20] Think I finally was able to add column to table, now working on complete functionality --- app/controllers/tasks_controller.rb | 4 +- app/views/tasks/show.html.erb | 2 +- db/development.sqlite3 | Bin 28672 -> 28672 bytes .../20170327165330_add_completed_to_tasks.rb | 5 - .../20170327181921_add_completed_column.rb | 5 + db/schema.rb | 7 +- log/development.log | 117 ++++++++++++++++++ 7 files changed, 129 insertions(+), 11 deletions(-) delete mode 100644 db/migrate/20170327165330_add_completed_to_tasks.rb create mode 100644 db/migrate/20170327181921_add_completed_column.rb diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index 5dd068c93..92b3bed8e 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -64,10 +64,10 @@ def create def complete task = Task.find(params[:id]) - if task.complete(task_params) == true + if task.complete == true task.completion_date = Time.now else - task.completion_date = "Not Complete" + task.completion_date = nil end if task.save diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb index 8d74739fa..a6ba3f4d8 100644 --- a/app/views/tasks/show.html.erb +++ b/app/views/tasks/show.html.erb @@ -5,7 +5,7 @@
  • The assigned person is <%= @result_task.assignee %>.
  • This should be completed by <%= @result_task.completed %>
  • The duration of the task is <%= @result_task.duration %> hour(s).
  • -
  • The status of this task is <%= @result_task.complete %>
  • +
  • The status of this task is <%= @result_task.completion_date %>
  • diff --git a/db/development.sqlite3 b/db/development.sqlite3 index 47900339bb115247699342384f8e245041fd9dff..acd045332e17b29cd1645cff6bdac5158584ff76 100644 GIT binary patch delta 200 zcmZp8z}WDBae}mqH%6NlgabXI#9zt_*D4j~V#w`FHZE@_ple%=39; zV>UNe6E7>fxVSiDbLC`z-m8=E@rcOiC@3Z8=N9ComSpDV#it~eq$(+Z$db(5)XkrG zgqZnQ`Ij;9zvI8de~Nzx|FX@30#o>f1X!6gjSLLU4UCP<4J`~UjSMI6koN&9T?A5k doBss=R{ljmr4#stg_t!NQI)c8-m35I002mKHHiQK delta 132 zcmZp8z}WDBae}m<1_J{FI}pPF%S0VxNeu?wXI#9zt_*D4{~7r0`FHZE@_pm}&+~b+ zqCh)0S7RY7ySTVGW3%IAf8MK;5Ald>{=_51%+12TgMt4Y{~i8Q{F@a6rt@r^AjCX* dhrACD3;$M-#BKf){988*IxOYiyj9=Z0RTXzB=rCQ diff --git a/db/migrate/20170327165330_add_completed_to_tasks.rb b/db/migrate/20170327165330_add_completed_to_tasks.rb deleted file mode 100644 index b00d78790..000000000 --- a/db/migrate/20170327165330_add_completed_to_tasks.rb +++ /dev/null @@ -1,5 +0,0 @@ -class AddCompletedToTasks < ActiveRecord::Migration[5.0] - def change - add_column :completed, :boolean - end -end diff --git a/db/migrate/20170327181921_add_completed_column.rb b/db/migrate/20170327181921_add_completed_column.rb new file mode 100644 index 000000000..c951ca507 --- /dev/null +++ b/db/migrate/20170327181921_add_completed_column.rb @@ -0,0 +1,5 @@ +class AddCompletedColumn < ActiveRecord::Migration[5.0] + def change + add_column("tasks", "completion_date", :datetime ) + end +end diff --git a/db/schema.rb b/db/schema.rb index 09771d897..aab829ea7 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,15 +10,16 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20170327040711) do +ActiveRecord::Schema.define(version: 20170327181921) do create_table "tasks", force: :cascade do |t| t.string "description" t.string "assignee" t.string "completed" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.integer "duration" + t.datetime "completion_date" end end diff --git a/log/development.log b/log/development.log index 01ae507de..3978c834b 100644 --- a/log/development.log +++ b/log/development.log @@ -4995,3 +4995,120 @@ app/views/tasks/show.html.erb:8:in `_app_views_tasks_show_html_erb___26188750199 Migrating to AddCompletedToTasks (20170327165330)  (0.1ms) begin transaction  (0.1ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations" +Migrating to AddCompleteToTask (20170327040711) +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]] +  (0.1ms) begin transaction +  (0.0ms) commit transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations" +Migrating to AddCompleteToTask (20170327040711) +  (0.1ms) begin transaction +  (0.1ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" +Migrating to AddCompletedColumn (20170327181921) +  (0.1ms) begin transaction +  (0.5ms) ALTER TABLE "tasks" ADD "completion_date" datetime + SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170327181921"]] +  (1.3ms) commit transaction + ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]] +  (0.1ms) begin transaction +  (0.1ms) commit transaction + ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" +Started GET "/tasks/14" for ::1 at 2017-03-27 11:29:18 -0700 + ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by TasksController#show as HTML + Parameters: {"id"=>"14"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (11.8ms) +Completed 500 Internal Server Error in 71ms (ActiveRecord: 1.2ms) + + + +ActionView::Template::Error (undefined method `complete' for # +Did you mean? completed + completed? + completed=): + 5:
  • The assigned person is <%= @result_task.assignee %>.
  • + 6:
  • This should be completed by <%= @result_task.completed %>
  • + 7:
  • The duration of the task is <%= @result_task.duration %> hour(s).
  • + 8:
  • The status of this task is <%= @result_task.complete %>
  • + 9: + 10: + 11: + +app/views/tasks/show.html.erb:8:in `_app_views_tasks_show_html_erb___2618875019989454323_70261300896520' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (5.4ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (63.7ms) +Started GET "/tasks/" for ::1 at 2017-03-27 11:29:23 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.2ms) +Completed 200 OK in 33ms (Views: 30.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-27 11:29:25 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (11.4ms) +Completed 500 Internal Server Error in 21ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined method `complete' for # +Did you mean? completed + completed? + completed=): + 5:
  • The assigned person is <%= @result_task.assignee %>.
  • + 6:
  • This should be completed by <%= @result_task.completed %>
  • + 7:
  • The duration of the task is <%= @result_task.duration %> hour(s).
  • + 8:
  • The status of this task is <%= @result_task.complete %>
  • + 9: + 10: + 11: + +app/views/tasks/show.html.erb:8:in `_app_views_tasks_show_html_erb___2618875019989454323_70261275154700' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (6.1ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (66.4ms) +Started GET "/tasks/" for ::1 at 2017-03-27 11:29:43 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 33ms (Views: 30.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/14" for ::1 at 2017-03-27 11:29:46 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"14"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 44ms (Views: 40.2ms | ActiveRecord: 0.2ms) + + From a357ce6b29916ceeebbd40b9febdfa06fec78e8c Mon Sep 17 00:00:00 2001 From: Haby Randall Date: Mon, 27 Mar 2017 15:15:40 -0700 Subject: [PATCH 13/20] I think the basic functionality works, will work on cleanup and styling --- app/controllers/tasks_controller.rb | 27 +- app/views/tasks/show.html.erb | 8 +- config/routes.rb | 7 +- db/development.sqlite3 | Bin 28672 -> 28672 bytes ...327184439_change_completion_column_type.rb | 5 + db/schema.rb | 4 +- log/development.log | 1339 +++++++++++++++++ 7 files changed, 1373 insertions(+), 17 deletions(-) create mode 100644 db/migrate/20170327184439_change_completion_column_type.rb diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index 92b3bed8e..25f35fb92 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -50,12 +50,15 @@ def create # if task.save # redirect_to tasks_path # end - task = Task.new - task.description = task_params[:description] - task.assignee = task_params[:assignee] - task.completed = task_params[:completed] - task.duration = task_params[:duration] - task.completion_date = task_params[:completion_date] + task = Task.create task_params + task.completion_date = "Not Complete" + # task.description = task_params[:description] + # task.assignee = task_params[:assignee] + # task.completed = task_params[:completed] + # task.duration = task_params[:duration] + # task.completion_date = task_params[:completion_date] + # task.save + unless task.id == nil redirect_to tasks_path @@ -63,15 +66,17 @@ def create end def complete + task = Task.find(params[:id]) - if task.complete == true + # task.completion_date = "Not Complete" + # task.completion_date == nil task.completion_date = Time.now - else - task.completion_date = nil - end + # else + # task.completion_date = "Not Complete" + # end if task.save - redirect_to task_path(task.id) + redirect_to tasks_path end end diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb index a6ba3f4d8..7df783e10 100644 --- a/app/views/tasks/show.html.erb +++ b/app/views/tasks/show.html.erb @@ -5,7 +5,11 @@
  • The assigned person is <%= @result_task.assignee %>.
  • This should be completed by <%= @result_task.completed %>
  • The duration of the task is <%= @result_task.duration %> hour(s).
  • -
  • The status of this task is <%= @result_task.completion_date %>
  • +
  • The status of this task is <% + if @result_task.completion_date == nil %> + Not Complete <% else %> + <%= @result_task.completion_date %> + <% end %>
  • @@ -13,4 +17,4 @@

    <%= link_to "Edit", edit_task_path(@result_task.id) %>

    <%= link_to "Delete", delete_task_path(@result_task.id), data:{ confirm: "Are you sure you wish to delete this task?" }, method: :delete %>

    -

    <%= link_to "Complete?", completed_task_path(@result_task.id), data: { confirm: "Are you sure you want to complete this task?" }, method: :complete %>

    +

    <% if @result_task.completion_date == nil %> <%= link_to "Complete?", completed_task_path(@result_task.id), data: { confirm: "Are you sure you want to complete this task?" }, method: :complete %> <% else %> haha <% end %>

    diff --git a/config/routes.rb b/config/routes.rb index 64529a50f..90e66f178 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -10,12 +10,15 @@ get "/tasks", to: "tasks#index" get "/tasks/:id", to: "tasks#show", as:'task' + patch "/tasks/:id", to: "tasks#complete", as: "completed_task" + post "/tasks/:id", to: "tasks#complete" + + get "/tasks/:id/edit", to: "tasks#edit", as: 'edit_task' patch "/tasks/:id", to: "tasks#update" delete "/tasks/:id", to: "tasks#destroy", as: "delete_task" - patch "/tasks/:id", to: "tasks#complete", as: "completed_task" - post "/tasks/:id", to: "tasks#complete" + end diff --git a/db/development.sqlite3 b/db/development.sqlite3 index acd045332e17b29cd1645cff6bdac5158584ff76..6977f8a9f5884f37df0aa2722d09d1025fae86f4 100644 GIT binary patch delta 898 zcmbVLF>ljA7(J&bsj=frlSZbBs<=W`snoc4KHKNJr4*^CfDriwiChvjA&{UHhzdiZ zGBUI%{RJKR2TUcHkeCn?3lm6ms2CYQVt|En+*YmGuyoV=-uJ!leb0kKX>cg*6ec(T zASK?(mwLHCrZ^~lyO>U|fTVH+;1YbJ&1%2YpUP1%lW8f+)|Q$|>AEgG?+x#yKMmih zS5i;>?%jsp4SuML(uJ^NFspr)GD)}#;CJ{1et@sxKHL=z1~8jRCgv@KDIyldo^2C0 z+%Hx{@pf4J8NP=Ha1U;a;%6|I9h;ZV7bk=q6T&%$S5I-P$MUULViTO z=C5sTG#{1y$M>&yn>By)3@Pk~IdM(LCLZ%*2<5hGy2SN7JSL$2*-;@DjcQNIpqQTt zRd(xs%~IO&sUAgqB~(Qe@X zcZ;@eW@RuP*|geuQ15lRtyLlYcBdWl33J=I!5z&7<6wuzBN-MH=%6v=LC z!lztx&0^JYPp(OriIC@cG`=$9gdJNvA%n~L=}{1#R`@X$aSNN6F_DEhHH0GSdPZa@ zUl>t8R*0Zt#u4R?YuZd)+zl^#dRP&M5Q?bccPdBm10sGa%1ucIxzH>b1aGTXGt%T= DK10bJ delta 750 zcmZ{hPiqrF7{=d;rd^ZWnQTi~OIs3=9zvVR?9Tq3gPKF6LQ53vH6fA+rKBkmkepKV z1DLSl2k0SZaS`H4Pa+<@Dp)9Z6jAW(Y{9n1WMD4O^Ze$0X6Eo19Uh~>vR(jydAa|t zI_N#5W!{5yT3{)(<;_R^^*T5{en4D_@YR<%#zJ9S-YHoC3u zZo3uzR7>dc&em2TTEkxvPLdIj@8k>lNXBFo>FhZPN4c8Rk7E5Z`9NNiBdHHa_^gDZ zm!*4oLv~5x1CY)`lEv@w0nVvobsSy2OVr_D*uSAEpaYc4&}>-D^oooZEh}#^VVS~Y zlyk=XV73F0*q^~OVLLS7HsgGPKX>|E9zbPDS>WH083@y%%(DXDne70eA5&>xI6n2g zz%$tdeZc|fqgPXLPcTk>%ku4syPFprIlMcSb_HY94!FnMv*FbR1y-|5WV6M(r"0JWF2XaR1zIFcctlkW4LLckTUiTtDSwFTYsU08h4sNeXgw98830Kp7pRcQ5vvLv+2v6T0UA9gSVCATUmVidYUQ==", "id"=>"14"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] +Completed 500 Internal Server Error in 23ms (ActiveRecord: 1.1ms) + + + +NoMethodError (undefined method `complete' for # +Did you mean? completed + completed? + completed=): + +app/controllers/tasks_controller.rb:67:in `complete' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (3.9ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.0ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (61.9ms) +Started GET "/tasks/" for ::1 at 2017-03-27 11:34:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (15.6ms) +Completed 200 OK in 60ms (Views: 49.8ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/14" for ::1 at 2017-03-27 11:34:59 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"14"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.2ms) +Completed 200 OK in 79ms (Views: 72.2ms | ActiveRecord: 1.1ms) + + +Started POST "/tasks/14" for ::1 at 2017-03-27 11:35:03 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"fO3kTkjtxsQwSzybG/3+v4elBxi25IbK8xnEWq64hrk7+27rzQEbUY9rhvDlL05slEjG7RvUK+r8k+WvMOduPw==", "id"=>"14"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] +  (0.1ms) begin transaction +  (0.1ms) commit transaction +Redirected to http://localhost:3000/tasks/14 +Completed 302 Found in 9ms (ActiveRecord: 0.4ms) + + +Started GET "/tasks/14" for ::1 at 2017-03-27 11:35:03 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"14"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 25ms (Views: 19.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 11:35:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (10.9ms) +Completed 200 OK in 50ms (Views: 30.1ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 11:36:21 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 30ms (Views: 27.8ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/14" for ::1 at 2017-03-27 11:36:23 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"14"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.0ms) +Completed 200 OK in 48ms (Views: 41.8ms | ActiveRecord: 0.3ms) + + +Started POST "/tasks/14" for ::1 at 2017-03-27 11:36:28 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"e80FuO/ve5Pvm45OanOixOEVH46VVeiAy3UfExLyT3k8248dagOmBlC7NCWUoRIX8vjeezhlRaDE/z7mjK2n/w==", "id"=>"14"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] +  (1.4ms) begin transaction +  (0.1ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 8ms (ActiveRecord: 1.7ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 11:36:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 22ms (Views: 20.8ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/14" for ::1 at 2017-03-27 11:36:32 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"14"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 47ms (Views: 41.5ms | ActiveRecord: 0.2ms) + + + ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" +Migrating to ChangeCompletionColumnType (20170327184439) +  (0.1ms) begin transaction +  (0.7ms) CREATE TEMPORARY TABLE "atasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "description" varchar, "assignee" varchar, "completed" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "duration" integer, "completion_date" datetime) +  (0.3ms) INSERT INTO "atasks" ("id","description","assignee","completed","created_at","updated_at","duration","completion_date") + SELECT "id","description","assignee","completed","created_at","updated_at","duration","completion_date" FROM "tasks" +  (0.4ms) DROP TABLE "tasks" +  (0.1ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "description" varchar, "assignee" varchar, "completed" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "duration" integer, "completion_date" varchar) +  (0.5ms) INSERT INTO "tasks" ("id","description","assignee","completed","created_at","updated_at","duration","completion_date") + SELECT "id","description","assignee","completed","created_at","updated_at","duration","completion_date" FROM "atasks" +  (0.1ms) DROP TABLE "atasks" + SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170327184439"]] +  (2.7ms) commit transaction + ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]] +  (0.1ms) begin transaction +  (0.1ms) commit transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" +Started GET "/tasks/" for ::1 at 2017-03-27 11:46:44 -0700 + ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (15.0ms) +Completed 200 OK in 52ms (Views: 41.5ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/14" for ::1 at 2017-03-27 11:46:47 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"14"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.7ms) +Completed 200 OK in 54ms (Views: 47.6ms | ActiveRecord: 0.3ms) + + +Started POST "/tasks/14" for ::1 at 2017-03-27 11:46:57 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"+6VzkNfXCdTkcEivhH+RktGs199fK5oHvM9em3rl3em8s/k1UjvUQVtQ8sR6rSFBwkEWKvIbNyezRX9u5Lo1bw==", "id"=>"14"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.5ms) UPDATE "tasks" SET "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completion_date", "Not Complete"], ["updated_at", 2017-03-27 18:46:57 UTC], ["id", 14]] +  (0.8ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 19ms (ActiveRecord: 2.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 11:46:57 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 26ms (Views: 22.6ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/17" for ::1 at 2017-03-27 11:47:01 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"17"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 17], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.2ms) +Completed 200 OK in 59ms (Views: 53.0ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/" for ::1 at 2017-03-27 11:55:14 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (22.8ms) +Completed 200 OK in 75ms (Views: 59.4ms | ActiveRecord: 1.3ms) + + +Started GET "/tasks/16" for ::1 at 2017-03-27 11:55:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"16"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 16], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.2ms) +Completed 200 OK in 69ms (Views: 61.4ms | ActiveRecord: 0.3ms) + + +Started POST "/tasks/16" for ::1 at 2017-03-27 11:55:20 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"YZJyRfqylxoGt0L269+P0B3mbS9dccu01rugOBxDo7QmhPjgf15Kj7mX+J0VDT8DDgus2vBBZpTZMYHNghxLMg==", "id"=>"16"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 16], ["LIMIT", 1]] +  (0.2ms) begin transaction + SQL (1.0ms) UPDATE "tasks" SET "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completion_date", "2017-03-27 11:55:20 -0700"], ["updated_at", 2017-03-27 18:55:20 UTC], ["id", 16]] +  (2.7ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 13ms (ActiveRecord: 4.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 11:55:20 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (6.0ms) +Completed 200 OK in 162ms (Views: 158.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/14" for ::1 at 2017-03-27 11:57:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"14"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 46ms (Views: 42.3ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/14" for ::1 at 2017-03-27 11:58:01 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"cj/kzi6kRWGf1VcB8RlnbCqjbNuvbb/qEan9YxrDocA1KW5rq0iY9CD17WoPy9e/OU6tLgJdEsoeI9yWhJxJRg==", "id"=>"14"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.6ms) UPDATE "tasks" SET "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completion_date", nil], ["updated_at", 2017-03-27 18:58:01 UTC], ["id", 14]] +  (1.6ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 2.6ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 11:58:01 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 32ms (Views: 29.3ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/17" for ::1 at 2017-03-27 11:58:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"17"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 17], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 50ms (Views: 47.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 11:58:40 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 80ms (Views: 77.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/16" for ::1 at 2017-03-27 11:58:41 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"16"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 16], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 51ms (Views: 47.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 11:59:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.3ms) +Completed 200 OK in 71ms (Views: 67.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-27 11:59:32 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 46ms (Views: 41.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-27 11:59:36 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 21ms (Views: 18.7ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 11:59:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 50ms (Views: 46.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/16" for ::1 at 2017-03-27 11:59:40 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"16"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 16], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 44ms (Views: 40.2ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 11:59:43 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.6ms) +Completed 200 OK in 58ms (Views: 54.6ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/17" for ::1 at 2017-03-27 11:59:44 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"17"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 17], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 40ms (Views: 37.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 11:59:47 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 64ms (Views: 61.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 12:00:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 66ms (Views: 62.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 12:00:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 55ms (Views: 51.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 12:00:42 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (15.8ms) +Completed 200 OK in 60ms (Views: 55.8ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-27 12:00:57 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Y0HC5XewJcwUCPpXjyByVGtTkWKqE4z3XQMMcrBXsVxJTD6kmcWivvY/41vi7ivKt04Qncv7Tws0E6WSCIYLZQ==", "task"=>{"description"=>"finish homework", "assignee"=>"haby", "completed"=>"monday", "duration"=>"1"}, "commit"=>"Create Task"} +No template found for TasksController#create, rendering head :no_content +Completed 204 No Content in 60ms (ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 12:01:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.7ms) +Completed 200 OK in 60ms (Views: 54.1ms | ActiveRecord: 1.5ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 12:01:40 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (5.8ms) +Completed 200 OK in 43ms (Views: 40.0ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-27 12:01:54 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"W4c+4+B8TWXso8+O+SoAlpqMOmJqJkrillcV1dLQWzhxisKiDgnKFw6U1oKU5FkIRpG7nQvOiR7/R7w1agHhAQ==", "task"=>{"description"=>"finish homework", "assignee"=>"haby", "completed"=>"monday", "duration"=>"1"}, "commit"=>"Create Task"} +No template found for TasksController#create, rendering head :no_content +Completed 204 No Content in 55ms (ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 12:02:39 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 69ms (Views: 66.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 12:07:01 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (11.7ms) +Completed 200 OK in 81ms (Views: 76.6ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 12:07:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (6.6ms) +Completed 200 OK in 55ms (Views: 51.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/14" for ::1 at 2017-03-27 12:07:04 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"14"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.2ms) +Completed 200 OK in 44ms (Views: 39.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 12:07:12 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (10.0ms) +Completed 200 OK in 51ms (Views: 48.7ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 12:07:14 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.7ms) +Completed 200 OK in 58ms (Views: 53.6ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/17" for ::1 at 2017-03-27 12:07:25 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"17"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 17], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.1ms) +Completed 200 OK in 68ms (Views: 62.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 12:07:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (8.7ms) +Completed 200 OK in 79ms (Views: 75.7ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/16" for ::1 at 2017-03-27 12:07:32 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"16"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 16], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 45ms (Views: 39.2ms | ActiveRecord: 0.1ms) + + +Started POST "/tasks/16" for ::1 at 2017-03-27 12:07:39 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"eBaEcLi1BhMBUWA8VyuFPbcKfxJ9P8m/oCoARYAUxBU/AA7VPVnbhr5x2lep+TXupOe+59APZJ+voCGwHksskw==", "id"=>"16"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 16], ["LIMIT", 1]] +  (0.2ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completion_date", nil], ["updated_at", 2017-03-27 19:07:39 UTC], ["id", 16]] +  (2.6ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 11ms (ActiveRecord: 3.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 12:07:39 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 28ms (Views: 25.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/16" for ::1 at 2017-03-27 12:07:42 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"16"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 16], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 46ms (Views: 42.4ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/16" for ::1 at 2017-03-27 12:07:56 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"wfqhwhx2oVNoWg6GwMYTOQZldpRgIDYjUnaUdTv7Um2G7CtnmZp8xtd6tO0+FKPqFYi3Yc0QmwNd/LWApaS66w==", "id"=>"16"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 16], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.7ms) UPDATE "tasks" SET "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completion_date", "2017-03-27 12:07:56 -0700"], ["updated_at", 2017-03-27 19:07:56 UTC], ["id", 16]] +  (1.7ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 2.6ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 12:07:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 42ms (Views: 36.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/16" for ::1 at 2017-03-27 12:07:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"16"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 16], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 48ms (Views: 42.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 12:08:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 41ms (Views: 38.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-27 12:08:07 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 44ms (Views: 40.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 12:09:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (17.2ms) +Completed 200 OK in 63ms (Views: 49.1ms | ActiveRecord: 1.9ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 14:43:25 -0700 + ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (15.4ms) +Completed 200 OK in 266ms (Views: 248.8ms | ActiveRecord: 1.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 14:43:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 42ms (Views: 37.1ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-27 14:43:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 53ms (Views: 40.1ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 14:43:38 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (30.7ms) +Completed 200 OK in 60ms (Views: 57.9ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-27 14:43:43 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"trVGQuS58MIw2wLVSEHUtYdk/7ElJQB7CMw5H5kMbiScuLoDCsx3sNLsG9klj40rW3l+TkTNw4dh3JD/Id3UHQ==", "task"=>{"description"=>"Home", "assignee"=>"", "completed"=>"", "duration"=>""}, "commit"=>"Create Task"} +No template found for TasksController#create, rendering head :no_content +Completed 204 No Content in 49ms (ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 14:44:06 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (3.4ms) +Completed 200 OK in 49ms (Views: 46.4ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-27 14:44:09 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"gI/DufOXrAT8f0k/Z2x9JEuLnP7OKlsnw3HLY0xLS9bHmUkcdntxkUNf81SZvs33WGZdC2Ma9gfM++qW0hSjUA==", "task"=>{"description"=>"", "assignee"=>"", "completed"=>"", "duration"=>""}, "commit"=>"Create Task"} +No template found for TasksController#create, rendering head :no_content +Completed 204 No Content in 59ms (ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 14:44:27 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (4.1ms) +Completed 200 OK in 43ms (Views: 40.8ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-27 14:44:40 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"kPKqWNEJOwnbmqkqOHy+K3NahLrvTJYd4sdCYygCAe26/1YZP3y8ezmtsCZVsue1r0cFRY6kVeGL1+uDkNO71A==", "task"=>{"description"=>"homework", "assignee"=>"haby", "completed"=>"monday", "duration"=>"1"}, "commit"=>"Create Task"} +No template found for TasksController#create, rendering head :no_content +Completed 204 No Content in 57ms (ActiveRecord: 0.0ms) + + +Started GET "/tasks/" for ::1 at 2017-03-27 14:45:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (8.1ms) +Completed 200 OK in 37ms (Views: 29.4ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 14:45:47 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (5.8ms) +Completed 200 OK in 49ms (Views: 46.0ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-27 14:45:58 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"RFv0BHRMUnQ8vgr2QcclYupDei/7hKJUeSIXj69PjAFuVghFmjnVBt6JE/osCXz8Nl770JpsYagQMr5vF542OA==", "task"=>{"description"=>"Homework", "assignee"=>"Haby", "completed"=>"Monday", "duration"=>"2"}, "commit"=>"Create Task"} +  (0.1ms) begin transaction + SQL (0.6ms) INSERT INTO "tasks" ("description", "assignee", "completed", "created_at", "updated_at", "duration") VALUES (?, ?, ?, ?, ?, ?) [["description", "Homework"], ["assignee", "Haby"], ["completed", "Monday"], ["created_at", 2017-03-27 21:45:58 UTC], ["updated_at", 2017-03-27 21:45:58 UTC], ["duration", 2]] +  (2.4ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 3.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 14:45:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 28ms (Views: 26.6ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/18" for ::1 at 2017-03-27 14:46:06 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"18"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 55ms (Views: 50.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 14:48:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (17.3ms) +Completed 200 OK in 59ms (Views: 36.3ms | ActiveRecord: 2.3ms) + + +Started GET "/tasks/18" for ::1 at 2017-03-27 14:48:43 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"18"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 47ms (Views: 41.9ms | ActiveRecord: 0.3ms) + + +Started POST "/tasks/18" for ::1 at 2017-03-27 14:48:47 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks/18"): + +actionpack (5.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:53:in `call' +web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.4.0) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch' +web-console (3.4.0) lib/web_console/middleware.rb:18:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.0.2) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.0.2) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/request_id.rb:24:in `call' +rack (2.0.1) lib/rack/method_override.rb:22:in `call' +rack (2.0.1) lib/rack/runtime.rb:22:in `call' +activesupport (5.0.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.0.2) lib/action_dispatch/middleware/static.rb:136:in `call' +rack (2.0.1) lib/rack/sendfile.rb:111:in `call' +railties (5.0.2) lib/rails/engine.rb:522:in `call' +puma (3.8.2) lib/puma/configuration.rb:224:in `call' +puma (3.8.2) lib/puma/server.rb:600:in `handle_request' +puma (3.8.2) lib/puma/server.rb:435:in `process_client' +puma (3.8.2) lib/puma/server.rb:299:in `block in run' +puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms) + Rendered collection of /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [9 times] (10.1ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.0ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.7ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (96.8ms) +Started GET "/tasks" for ::1 at 2017-03-27 14:49:14 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (13.0ms) +Completed 200 OK in 41ms (Views: 32.5ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks/18" for ::1 at 2017-03-27 14:49:16 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"18"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.5ms) +Completed 200 OK in 48ms (Views: 41.0ms | ActiveRecord: 0.4ms) + + +Started POST "/tasks/18" for ::1 at 2017-03-27 14:49:19 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"kocIpBNwrcmvwioulRKqhE4Y9J4Qz9ef1cXGCCasjivVkYIBlpxwXBDikEVrwBpXXfU1a73/er/aT+f9uPNmrQ==", "id"=>"18"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completion_date", "Not Complete"], ["updated_at", 2017-03-27 21:49:19 UTC], ["id", 18]] +  (1.5ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 2.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 14:49:19 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 30ms (Views: 27.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/18" for ::1 at 2017-03-27 14:49:23 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"18"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 46ms (Views: 42.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 14:59:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (18.2ms) +Completed 200 OK in 65ms (Views: 49.1ms | ActiveRecord: 1.2ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-27 14:59:11 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.4ms) +Completed 200 OK in 53ms (Views: 43.9ms | ActiveRecord: 0.3ms) + + +Started POST "/tasks/2" for ::1 at 2017-03-27 14:59:16 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"Zts4Mk5Uw+cxVHjMoFb2R80IsceCIkzpEgJRUMv/kNIhzbKXy7geco50wqdehEaU3uVwMi8S4ckdiHClVaB4VA==", "id"=>"2"} +Completed 400 Bad Request in 4ms (ActiveRecord: 0.0ms) + + + +ActionController::ParameterMissing (param is missing or the value is empty: task): + +app/controllers/tasks_controller.rb:87:in `task_params' +app/controllers/tasks_controller.rb:69:in `complete' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.0ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (58.9ms) +Started PUT "/__web_console/repl_sessions/9f3d64c08272f8a76f811f50144aa79d" for ::1 at 2017-03-27 14:59:29 -0700 +Started PUT "/__web_console/repl_sessions/9f3d64c08272f8a76f811f50144aa79d" for ::1 at 2017-03-27 14:59:30 -0700 +Started GET "/tasks/" for ::1 at 2017-03-27 15:00:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (8.4ms) +Completed 200 OK in 36ms (Views: 27.6ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/17" for ::1 at 2017-03-27 15:00:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"17"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 17], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 44ms (Views: 38.3ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/17" for ::1 at 2017-03-27 15:00:21 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"99IOCYSIK2q1lO8nFqkBc4AgXIfUQ3ZocTwUceB+hUKwxISsAWT2/wq0VUzoe7Ggk82dcnlz20h+tjWEfiFtxA==", "id"=>"17"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 17], ["LIMIT", 1]] +  (0.2ms) begin transaction + SQL (1.4ms) UPDATE "tasks" SET "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completion_date", "2017-03-27 15:00:21 -0700"], ["updated_at", 2017-03-27 22:00:21 UTC], ["id", 17]] +  (1.7ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 12ms (ActiveRecord: 3.4ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 15:00:21 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 29ms (Views: 26.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/17" for ::1 at 2017-03-27 15:00:23 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"17"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 17], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 43ms (Views: 38.8ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 15:00:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 37ms (Views: 33.1ms | ActiveRecord: 0.3ms) + + + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" +Started GET "/tasks" for ::1 at 2017-03-27 15:01:14 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (8.1ms) +Completed 200 OK in 46ms (Views: 43.0ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 15:01:15 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (9.4ms) +Completed 200 OK in 40ms (Views: 38.5ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-27 15:01:36 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"VL1T63PxIeNbS2BZ7HzRJ2Enya7/8WlUN2mNza7Q3+N+sK+qnYSmkbl8eVWBsoi5vTpIUZ4ZqqheeSQtFgFl2g==", "task"=>{"description"=>"Babysit", "assignee"=>"Paul", "completed"=>"Friday", "duration"=>"3"}, "commit"=>"Create Task"} +  (0.1ms) begin transaction + SQL (0.5ms) INSERT INTO "tasks" ("description", "assignee", "completed", "created_at", "updated_at", "duration") VALUES (?, ?, ?, ?, ?, ?) [["description", "Babysit"], ["assignee", "Paul"], ["completed", "Friday"], ["created_at", 2017-03-27 22:01:36 UTC], ["updated_at", 2017-03-27 22:01:36 UTC], ["duration", 3]] +  (3.8ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 4.4ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 15:01:36 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 39ms (Views: 35.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/19" for ::1 at 2017-03-27 15:01:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"19"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 19], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 42ms (Views: 38.1ms | ActiveRecord: 0.2ms) + + + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" +Started GET "/tasks" for ::1 at 2017-03-27 15:03:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (12.3ms) +Completed 200 OK in 57ms (Views: 34.2ms | ActiveRecord: 1.4ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 15:03:11 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (5.6ms) +Completed 200 OK in 42ms (Views: 39.9ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-27 15:03:28 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"SlfNokqj3kox53A+KUxV2gAOCqgYnJfLyYwEmxMfmyRgWjHjpNZZONPQaTJEggxE3BOLV3l0VDegnK17q84hHQ==", "task"=>{"description"=>"read book", "assignee"=>"haby", "completed"=>"wednesday ", "duration"=>"2"}, "commit"=>"Create Task"} +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "tasks" ("description", "assignee", "completed", "created_at", "updated_at", "duration") VALUES (?, ?, ?, ?, ?, ?) [["description", "read book"], ["assignee", "haby"], ["completed", "wednesday "], ["created_at", 2017-03-27 22:03:28 UTC], ["updated_at", 2017-03-27 22:03:28 UTC], ["duration", 2]] +  (0.8ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 1.4ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 15:03:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 26ms (Views: 23.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/20" for ::1 at 2017-03-27 15:03:30 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"20"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 20], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 44ms (Views: 39.8ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/20" for ::1 at 2017-03-27 15:03:33 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"V/xTLI8yN4RgCRRXBMH56LAGdboWjiAKqyWE7Jk30W0Q6tmJCt7qEd8prjz6E0k7o+u0T7u+jSqkr6UZB2g56w==", "id"=>"20"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 20], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (1.6ms) UPDATE "tasks" SET "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completion_date", "2017-03-27 15:03:33 -0700"], ["updated_at", 2017-03-27 22:03:33 UTC], ["id", 20]] +  (1.8ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 17ms (ActiveRecord: 3.8ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 15:03:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 45ms (Views: 42.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/20" for ::1 at 2017-03-27 15:03:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"20"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 20], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.0ms) +Completed 200 OK in 53ms (Views: 49.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 15:07:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (3.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (14.7ms) +Completed 200 OK in 70ms (Views: 63.4ms | ActiveRecord: 3.6ms) + + +Started GET "/tasks/17" for ::1 at 2017-03-27 15:07:11 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"17"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 17], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.9ms) +Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.2ms) + + + +SyntaxError (/Users/habsr/ada/rails/TaskList/app/views/tasks/show.html.erb:21: syntax error, unexpected keyword_ensure, expecting keyword_end + ensure + ^ +/Users/habsr/ada/rails/TaskList/app/views/tasks/show.html.erb:23: syntax error, unexpected end-of-input, expecting keyword_end): + +app/views/tasks/show.html.erb:21: syntax error, unexpected keyword_ensure, expecting keyword_end +app/views/tasks/show.html.erb:23: syntax error, unexpected end-of-input, expecting keyword_end + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (5.7ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (59.9ms) +Started GET "/tasks/" for ::1 at 2017-03-27 15:07:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 23ms (Views: 20.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/16" for ::1 at 2017-03-27 15:07:37 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"16"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 16], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.0ms) +Completed 200 OK in 47ms (Views: 41.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 15:07:40 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 37ms (Views: 35.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/19" for ::1 at 2017-03-27 15:07:42 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"19"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 19], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 56ms (Views: 51.9ms | ActiveRecord: 0.3ms) + + +Started POST "/tasks/19" for ::1 at 2017-03-27 15:07:46 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"wCuhZX06mQN+mkf3FBayM/thHHnbwwBlYN7P+5N1qf6HPSvA+NZElsG6/ZzqxALg6IzdjHbzrUVvVO4ODSpBeA==", "id"=>"19"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 19], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completion_date", "2017-03-27 15:07:46 -0700"], ["updated_at", 2017-03-27 22:07:46 UTC], ["id", 19]] +  (1.8ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 2.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 15:07:46 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 20ms (Views: 18.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/18" for ::1 at 2017-03-27 15:07:48 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"18"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 47ms (Views: 42.7ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/18" for ::1 at 2017-03-27 15:07:58 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"vtEnMoEMCvxYKkeApO5M0ZHau4TMq0cT57vrdkdvhdf5x62XBODXaecK/etaPPwCgjd6cWGb6jPoMcqD2TBtUQ==", "id"=>"18"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]] +  (0.2ms) begin transaction +  (0.1ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 6ms (ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 15:07:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 21ms (Views: 18.6ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/18" for ::1 at 2017-03-27 15:07:59 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"18"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 36ms (Views: 32.2ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 15:09:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (9.4ms) +Completed 200 OK in 69ms (Views: 44.3ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/19" for ::1 at 2017-03-27 15:09:32 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"19"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 19], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 41ms (Views: 36.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 15:09:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 51ms (Views: 48.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/14" for ::1 at 2017-03-27 15:09:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"14"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.7ms) +Completed 200 OK in 41ms (Views: 37.5ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/14" for ::1 at 2017-03-27 15:09:38 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"r1vMabm6ubD5vFAC0Qf72PAQjD5ugwI0/ZrrxZKA277oTUbMPFZkJUac6mkv1UsL4/1Ny8OzrxTyEMowDN8zOA==", "id"=>"14"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] +  (0.2ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completion_date", "2017-03-27 15:09:39 -0700"], ["updated_at", 2017-03-27 22:09:39 UTC], ["id", 14]] +  (2.8ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 13ms (ActiveRecord: 3.7ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 15:09:39 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 36ms (Views: 29.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/14" for ::1 at 2017-03-27 15:09:41 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"14"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 48ms (Views: 44.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 15:09:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (7.2ms) +Completed 200 OK in 50ms (Views: 47.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/17" for ::1 at 2017-03-27 15:09:46 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"17"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 17], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 44ms (Views: 40.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 15:09:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 55ms (Views: 50.1ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/19" for ::1 at 2017-03-27 15:09:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"19"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 19], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.3ms) +Completed 200 OK in 39ms (Views: 35.5ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 15:09:52 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.8ms) +Completed 200 OK in 56ms (Views: 52.2ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-27 15:09:54 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 42ms (Views: 38.9ms | ActiveRecord: 0.1ms) + + +Started POST "/tasks/2" for ::1 at 2017-03-27 15:09:57 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"/lS2aPKdCOR6/TOqy1Cpuk082e0/e7Qv2C+k/AvQ2r65QjzNd3HVccXdicE1ghlpXtEYGJJLGQ/XpYUJlY8yOA==", "id"=>"2"} + Task Load (1.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.5ms) UPDATE "tasks" SET "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completion_date", "2017-03-27 15:09:57 -0700"], ["updated_at", 2017-03-27 22:09:57 UTC], ["id", 2]] +  (1.1ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 11ms (ActiveRecord: 3.6ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 15:09:57 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.2ms) +Completed 200 OK in 39ms (Views: 36.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-27 15:10:00 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.0ms) +Completed 200 OK in 46ms (Views: 40.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 15:11:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 52ms (Views: 47.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-27 15:11:47 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.4ms) +Completed 200 OK in 41ms (Views: 36.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 15:11:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 58ms (Views: 53.5ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 15:13:55 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 57ms (Views: 52.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 15:13:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (7.7ms) +Completed 200 OK in 60ms (Views: 56.6ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/18" for ::1 at 2017-03-27 15:13:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"18"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (5.6ms) +Completed 200 OK in 77ms (Views: 72.5ms | ActiveRecord: 0.1ms) + + +Started POST "/tasks/18" for ::1 at 2017-03-27 15:14:01 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"2G+Yjj5x/zdSHFV0+CrB/+9hKI4lnla8BeLrm9i4QTKfeRIru50iou087x8G+HEs/Izpe4iu+5wKaMpuRueptA==", "id"=>"18"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]] +  (0.3ms) begin transaction + SQL (0.5ms) UPDATE "tasks" SET "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completion_date", "2017-03-27 15:14:01 -0700"], ["updated_at", 2017-03-27 22:14:01 UTC], ["id", 18]] +  (4.3ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 16ms (ActiveRecord: 5.8ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 15:14:01 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 32ms (Views: 29.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/18" for ::1 at 2017-03-27 15:14:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"18"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.2ms) +Completed 200 OK in 52ms (Views: 45.8ms | ActiveRecord: 0.1ms) + + +Started POST "/tasks/18" for ::1 at 2017-03-27 15:14:14 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"Blcs0C9CbFAtNOqGryexi0gODDlfg1oQUCd1PAMQyHdBQaZ1qq6xxZIUUO1R9QFYW+PNzPKz9zBfrVTJnU8g8Q==", "id"=>"18"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]] +  (0.2ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completion_date", "2017-03-27 15:14:14 -0700"], ["updated_at", 2017-03-27 22:14:14 UTC], ["id", 18]] +  (0.6ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 5ms (ActiveRecord: 1.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 15:14:14 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 22ms (Views: 19.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/18" for ::1 at 2017-03-27 15:14:15 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"18"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.6ms) +Completed 200 OK in 49ms (Views: 45.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 15:14:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 54ms (Views: 51.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/18" for ::1 at 2017-03-27 15:14:46 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"18"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 52ms (Views: 47.3ms | ActiveRecord: 0.2ms) + + From 25380d1e41dfc43811073164279b75d2b7459d19 Mon Sep 17 00:00:00 2001 From: Haby Randall Date: Mon, 27 Mar 2017 17:58:22 -0700 Subject: [PATCH 14/20] Working on styling --- app/assets/stylesheets/application.css | 1 - app/assets/stylesheets/tasks.scss | 26 ++ app/controllers/tasks_controller.rb | 6 +- app/views/layouts/application.html.erb | 1 + app/views/tasks/index.html.erb | 2 +- app/views/tasks/show.html.erb | 12 +- log/development.log | 471 +++++++++++++++++++++++++ 7 files changed, 509 insertions(+), 10 deletions(-) diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 94813782c..0ebd7fe82 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -13,4 +13,3 @@ *= require_tree . *= require_self */ -/*@import url('https://fonts.googleapis.com/css?family=Lobster|Harmattan|Josefin+Sans|Abel|Lato|Playfair+Display')*/ diff --git a/app/assets/stylesheets/tasks.scss b/app/assets/stylesheets/tasks.scss index f8833ffd4..ccfa19335 100644 --- a/app/assets/stylesheets/tasks.scss +++ b/app/assets/stylesheets/tasks.scss @@ -1,9 +1,35 @@ // Place all the styles related to the Tasks controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ +@import url('https://fonts.googleapis.com/css?family=Harmattan'); html { background-color: #fefbd8; + font-family: 'Harmattan', 'serif'; + text-align: center; +} + +h1 { + text-align: left; +} +.index { + width: 100%; + text-align: center; + padding-left: 15px; + color: inherit; +} +// .index ul { +// text-align: center; + +a[href]:hover { + color: pink; + // list-style: none; + // text-decoration: none; +} + +a[href] { + text-decoration: none; + color: cadetblue; } header { diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index 25f35fb92..f812ce357 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -69,10 +69,10 @@ def complete task = Task.find(params[:id]) # task.completion_date = "Not Complete" - # task.completion_date == nil - task.completion_date = Time.now + # task.completion_date == nil + task.completion_date = Time.now # else - # task.completion_date = "Not Complete" + # task.completion_date = "Not Complete" # end if task.save diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 5f48acf8f..c7bf04918 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -21,4 +21,5 @@ <%= yield %> +
    © Copyright 2017 by Haby Randall
    diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb index 8fcf6af83..19caf3ce3 100644 --- a/app/views/tasks/index.html.erb +++ b/app/views/tasks/index.html.erb @@ -2,7 +2,7 @@

    Tasks

    Let's Get Organized!

    -

    A list of all tasks:

    +

    A list of all tasks:

      <% @tasks.each do |task| %>
    • The task to do is: <%= link_to task.description, task_path(task.id) %>
    • diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb index 7df783e10..5e62db9aa 100644 --- a/app/views/tasks/show.html.erb +++ b/app/views/tasks/show.html.erb @@ -6,15 +6,17 @@
    • This should be completed by <%= @result_task.completed %>
    • The duration of the task is <%= @result_task.duration %> hour(s).
    • The status of this task is <% - if @result_task.completion_date == nil %> - Not Complete <% else %> - <%= @result_task.completion_date %> + if @result_task.completion_date == nil %> + Not Complete <% else %> : completed at: + <%= @result_task.completion_date %> <% end %>

    <%= link_to "Edit", edit_task_path(@result_task.id) %>

    +

    <%= link_to "Delete", delete_task_path(@result_task.id), - data:{ confirm: "Are you sure you wish to delete this task?" }, method: :delete %>

    -

    <% if @result_task.completion_date == nil %> <%= link_to "Complete?", completed_task_path(@result_task.id), data: { confirm: "Are you sure you want to complete this task?" }, method: :complete %> <% else %> haha <% end %>

    +data:{ confirm: "Are you sure you wish to delete this task?" }, method: :delete %>

    + +

    <% if @result_task.completion_date == nil %> <%= link_to "Complete?", completed_task_path(@result_task.id), data: { confirm: "Are you sure you want to complete this task?" }, method: :complete %> <% else %> haha <% end %>

    diff --git a/log/development.log b/log/development.log index 96740f1e5..f25748549 100644 --- a/log/development.log +++ b/log/development.log @@ -6451,3 +6451,474 @@ Processing by TasksController#show as HTML Completed 200 OK in 52ms (Views: 47.3ms | ActiveRecord: 0.2ms) +Started GET "/tasks" for ::1 at 2017-03-27 17:19:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (27.0ms) +Completed 200 OK in 134ms (Views: 110.0ms | ActiveRecord: 1.4ms) + + +Started GET "/tasks/18" for ::1 at 2017-03-27 17:19:49 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"18"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 18], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.3ms) +Completed 200 OK in 54ms (Views: 47.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:20:20 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (7.8ms) +Completed 200 OK in 63ms (Views: 57.9ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-27 17:20:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 54ms (Views: 50.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:20:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (7.3ms) +Completed 200 OK in 74ms (Views: 70.0ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-27 17:20:44 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (9.9ms) +Completed 200 OK in 99ms (Views: 94.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:28:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (28.0ms) +Completed 200 OK in 86ms (Views: 71.9ms | ActiveRecord: 1.5ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:32:40 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (21.2ms) +Completed 500 Internal Server Error in 157ms (ActiveRecord: 1.1ms) + + + +ActionView::Template::Error (Invalid CSS after "html ": expected selector or at-rule, was "{"): + 4: TaskList + 5: <%= csrf_meta_tags %> + 6: + 7: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + 8: <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + 9: + 10:
    + +app/assets/stylesheets/tasks.scss:6 +app/views/layouts/application.html.erb:7:in `_app_views_layouts_application_html_erb__3451615202939443025_70200486210320' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (9.6ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (69.6ms) +Started GET "/tasks" for ::1 at 2017-03-27 17:33:37 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.7ms) +Completed 500 Internal Server Error in 26ms (ActiveRecord: 0.3ms) + + + +ActionView::Template::Error (Invalid CSS after "html ": expected selector or at-rule, was "{"): + 4: TaskList + 5: <%= csrf_meta_tags %> + 6: + 7: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + 8: <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + 9: + 10:
    + +app/assets/stylesheets/tasks.scss:6 +app/views/layouts/application.html.erb:7:in `_app_views_layouts_application_html_erb__3451615202939443025_70200474967620' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (14.2ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.6ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (89.5ms) +Started GET "/tasks" for ::1 at 2017-03-27 17:33:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (Invalid CSS after "html ": expected selector or at-rule, was "{"): + 4: TaskList + 5: <%= csrf_meta_tags %> + 6: + 7: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + 8: <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + 9: + 10:
    + +app/assets/stylesheets/tasks.scss:6 +app/views/layouts/application.html.erb:7:in `_app_views_layouts_application_html_erb__3451615202939443025_70200475107880' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (12.5ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (71.9ms) +Started GET "/tasks" for ::1 at 2017-03-27 17:33:55 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.8ms) +Completed 200 OK in 64ms (Views: 61.6ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:34:11 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 63ms (Views: 60.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:36:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (15.9ms) +Completed 200 OK in 162ms (Views: 151.7ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:36:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 24ms (Views: 22.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:38:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (8.3ms) +Completed 200 OK in 50ms (Views: 46.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:40:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (21.8ms) +Completed 200 OK in 145ms (Views: 137.7ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:40:57 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 128ms (Views: 125.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:41:14 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 60ms (Views: 57.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:41:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 51ms (Views: 49.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:42:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (7.2ms) +Completed 200 OK in 116ms (Views: 113.3ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:42:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (12.6ms) +Completed 200 OK in 32ms (Views: 30.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:43:26 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 61ms (Views: 59.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:45:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 500 Internal Server Error in 35ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (Invalid CSS after "a href": expected selector, was "="""): + 4: TaskList + 5: <%= csrf_meta_tags %> + 6: + 7: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + 8: <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + 9: + 10:
    + +app/assets/stylesheets/tasks.scss:21 +app/views/layouts/application.html.erb:7:in `_app_views_layouts_application_html_erb__3451615202939443025_70200450859340' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (7.6ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.0ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (68.2ms) +Started GET "/tasks" for ::1 at 2017-03-27 17:47:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (9.4ms) +Completed 200 OK in 180ms (Views: 166.0ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:48:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 60ms (Views: 56.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:50:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.4ms) +Completed 200 OK in 62ms (Views: 59.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:50:50 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 64ms (Views: 61.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:51:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.4ms) +Completed 200 OK in 123ms (Views: 119.1ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:52:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 500 Internal Server Error in 45ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (Invalid CSS after "// HEX: #618685": expected "}", was ""): + 4: TaskList + 5: <%= csrf_meta_tags %> + 6: + 7: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + 8: <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + 9: + 10:
    + +app/assets/stylesheets/tasks.scss:65 +app/views/layouts/application.html.erb:7:in `_app_views_layouts_application_html_erb__3451615202939443025_70200456004920' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (9.2ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.5ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (75.0ms) +Started GET "/tasks" for ::1 at 2017-03-27 17:53:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 500 Internal Server Error in 25ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (Invalid CSS after "// HEX: #618685": expected "}", was ""): + 4: TaskList + 5: <%= csrf_meta_tags %> + 6: + 7: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + 8: <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + 9: + 10:
    + +app/assets/stylesheets/tasks.scss:65 +app/views/layouts/application.html.erb:7:in `_app_views_layouts_application_html_erb__3451615202939443025_70200485619760' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (8.0ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (69.8ms) +Started GET "/tasks" for ::1 at 2017-03-27 17:53:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (6.3ms) +Completed 200 OK in 46ms (Views: 43.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:53:39 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 500 Internal Server Error in 23ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (Invalid CSS after "// HEX: #618685": expected "}", was ""): + 4: TaskList + 5: <%= csrf_meta_tags %> + 6: + 7: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + 8: <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + 9: + 10:
    + +app/assets/stylesheets/tasks.scss:65 +app/views/layouts/application.html.erb:7:in `_app_views_layouts_application_html_erb__3451615202939443025_70200455726880' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (7.1ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.3ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.4ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (68.6ms) +Started GET "/tasks" for ::1 at 2017-03-27 17:53:47 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.2ms) +Completed 200 OK in 34ms (Views: 32.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:55:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 80ms (Views: 76.0ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:55:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 57ms (Views: 54.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:55:57 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 54ms (Views: 50.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:56:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 56ms (Views: 53.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:56:20 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 65ms (Views: 63.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:56:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 23ms (Views: 20.9ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:56:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 55ms (Views: 54.0ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 17:57:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 76ms (Views: 73.3ms | ActiveRecord: 0.2ms) + + From d79b7643b73df0f6a85c9c0a1b27245262e10f62 Mon Sep 17 00:00:00 2001 From: Haby Randall Date: Mon, 27 Mar 2017 22:04:51 -0700 Subject: [PATCH 15/20] Added styling to index page --- app/assets/stylesheets/tasks.scss | 27 +- app/views/layouts/application.html.erb | 4 +- app/views/tasks/index.html.erb | 6 +- app/views/tasks/show.html.erb | 2 +- db/development.sqlite3 | Bin 28672 -> 28672 bytes log/development.log | 398 +++++++++++++++++++++++++ 6 files changed, 431 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/tasks.scss b/app/assets/stylesheets/tasks.scss index ccfa19335..a2a276bdf 100644 --- a/app/assets/stylesheets/tasks.scss +++ b/app/assets/stylesheets/tasks.scss @@ -35,6 +35,19 @@ a[href] { header { background-color: #80ced6; text-align: center; + height: 100px; + width: 100%; +} + +footer { + background-color: #80ced6; + height: 100px; + width: 100%; +} + +footer p { + padding-top: 40px; + margin-left: 18px; } body { @@ -50,12 +63,24 @@ li { list-style: none; } -#index h2 { +nav li { + margin-right: 15px; +} + + +#main h2 { font-family: monospace; text-align: center; + padding-left: 35px; + margin-bottom: 50px; + margin-top: 35px; // color: white; } +#main p { + margin-left: 35px; +} + section { width: 100%; // background-color: purple; diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index c7bf04918..8a0e7cd39 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -21,5 +21,7 @@ <%= yield %> -
    © Copyright 2017 by Haby Randall
    +
    +

    © Copyright 2017 by Haby Randall

    +
    diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb index 19caf3ce3..185552cf8 100644 --- a/app/views/tasks/index.html.erb +++ b/app/views/tasks/index.html.erb @@ -1,6 +1,6 @@ -
    +
    + -

    Tasks

    Let's Get Organized!

    A list of all tasks:

      @@ -12,5 +12,5 @@

      *Click on each task for more information*

      -

      <%= link_to "New Task", new_task_path %>

      +
    diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb index 5e62db9aa..50b6cdd75 100644 --- a/app/views/tasks/show.html.erb +++ b/app/views/tasks/show.html.erb @@ -7,7 +7,7 @@
  • The duration of the task is <%= @result_task.duration %> hour(s).
  • The status of this task is <% if @result_task.completion_date == nil %> - Not Complete <% else %> : completed at: + Not Complete. <% else %> : completed at: <%= @result_task.completion_date %> <% end %>
  • diff --git a/db/development.sqlite3 b/db/development.sqlite3 index 6977f8a9f5884f37df0aa2722d09d1025fae86f4..3f32ecf8cc2b0e52f7721141d63725e2161e8d28 100644 GIT binary patch delta 312 zcmZp8z}WDBae_3X-9#B@M!Ss(OZ+9cxE&ezxA3U*De(Q~>*n3cGlAz9_eO5V%`yS1 z-1T{4oD7Ph@{W#-_92PcsS1e-d5HxciAj~^sVRA>#VLuEMh1rFx(3F&MivSNMpmZg zR>p>U<_6{#M&@WT7FGskdS-^^=9Z>Ra4B;ILrW`Dkd%V1fw_S}i6|$7v9PS8Bd5Jn zX{ADaqC!$;QAq~S9)(saA}scrSs9z^8Jk!bn;F9mhq%bh%EUs?$il$V r0O2BtwICUYwdqWp4C3OFAa54uq^1@Gmn0@vrWIvwwvRa=%qRu`rld~A delta 59 zcmV-B0L1@*-~oW(0gxL3I*}Yh0Xnf@q)!+K3?~2&vAP)Nuiw(65kPP|^xD2?n R98e_-k&x!ICtTPQ0TecG6KMbd diff --git a/log/development.log b/log/development.log index f25748549..2e4f2822b 100644 --- a/log/development.log +++ b/log/development.log @@ -6922,3 +6922,401 @@ Processing by TasksController#index as HTML Completed 200 OK in 76ms (Views: 73.3ms | ActiveRecord: 0.2ms) +Started GET "/tasks/1" for ::1 at 2017-03-27 18:03:03 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (2.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (9.8ms) +Completed 200 OK in 103ms (Views: 65.6ms | ActiveRecord: 2.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 18:03:14 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (6.6ms) +Completed 200 OK in 72ms (Views: 68.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 19:55:56 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (20.9ms) +Completed 200 OK in 77ms (Views: 72.1ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-27 19:56:35 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"H+EyCpTGp+dwhV6Dt2egpY4fryycqZIMAtsdbapBLJY17M5LerMglZKyR4/aqfk7UgIu0/1BUfBry7SNEpCWrw==", "task"=>{"description"=>"Buy a birthday gift", "assignee"=>"Mom", "completed"=>"thursday", "duration"=>"1"}, "commit"=>"Create Task"} +  (0.3ms) begin transaction + SQL (1.1ms) INSERT INTO "tasks" ("description", "assignee", "completed", "created_at", "updated_at", "duration") VALUES (?, ?, ?, ?, ?, ?) [["description", "Buy a birthday gift"], ["assignee", "Mom"], ["completed", "thursday"], ["created_at", 2017-03-28 02:56:35 UTC], ["updated_at", 2017-03-28 02:56:35 UTC], ["duration", 1]] +  (1.1ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 15ms (ActiveRecord: 2.5ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 19:56:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.8ms) +Completed 200 OK in 49ms (Views: 45.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/21/edit" for ::1 at 2017-03-27 19:56:40 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"21"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 21], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (7.6ms) +Completed 200 OK in 69ms (Views: 63.6ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/21" for ::1 at 2017-03-27 19:56:48 -0700 +Processing by TasksController#complete as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"C/pZ/h8q/xPrZJnNkDOoW5W06rmdygr5wWhmqshYGSS/xXfD4bCC03xxLYkhVlXMJf/65rjHRrjo/N10JbMinQ==", "task"=>{"description"=>"Buy a birthday gift", "assignee"=>"Mom", "completed"=>"thursday", "duration"=>"1"}, "commit"=>"Update Task", "id"=>"21"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 21], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.7ms) UPDATE "tasks" SET "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completion_date", "2017-03-27 19:56:48 -0700"], ["updated_at", 2017-03-28 02:56:48 UTC], ["id", 21]] +  (0.9ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 15ms (ActiveRecord: 1.9ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 19:56:48 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 43ms (Views: 40.2ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/21" for ::1 at 2017-03-27 19:56:54 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"21"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 21], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.5ms) +Completed 200 OK in 63ms (Views: 57.0ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 19:57:08 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (3.9ms) +Completed 200 OK in 38ms (Views: 34.4ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-27 19:57:31 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"IFlDqRa7x9qQ6JBi4Sf6myHd2CE9pQtjRg91BhBhtwQKVL/o+M5AqHLfiW6M6aMF/cBZ3lxNyJ8vH9zmqLANPQ==", "task"=>{"description"=>"Take a nap", "assignee"=>"Haby", "completed"=>"wednesday", "duration"=>"2"}, "commit"=>"Create Task"} +  (0.1ms) begin transaction + SQL (0.5ms) INSERT INTO "tasks" ("description", "assignee", "completed", "created_at", "updated_at", "duration") VALUES (?, ?, ?, ?, ?, ?) [["description", "Take a nap"], ["assignee", "Haby"], ["completed", "wednesday"], ["created_at", 2017-03-28 02:57:31 UTC], ["updated_at", 2017-03-28 02:57:31 UTC], ["duration", 2]] +  (2.4ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 3.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 19:57:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (6.0ms) +Completed 200 OK in 72ms (Views: 69.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/22" for ::1 at 2017-03-27 19:57:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"22"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 22], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.2ms) +Completed 200 OK in 67ms (Views: 63.7ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/22" for ::1 at 2017-03-27 19:58:06 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"RiSZMYYJVZ5WwWDnq03T1YEycwHqlB/KJJl3Vh026n0BMhOUA+WIC+nh2oxVn2MGkt+y9EeksuorE1ajg2kC+w==", "id"=>"22"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 22], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.8ms) UPDATE "tasks" SET "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completion_date", "2017-03-27 19:58:06 -0700"], ["updated_at", 2017-03-28 02:58:06 UTC], ["id", 22]] +  (1.4ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 14ms (ActiveRecord: 2.5ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 19:58:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (7.4ms) +Completed 200 OK in 85ms (Views: 82.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/21" for ::1 at 2017-03-27 19:58:12 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"21"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 21], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 64ms (Views: 60.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 21:46:22 -0700 + ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (2.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (17.3ms) +Completed 200 OK in 309ms (Views: 289.5ms | ActiveRecord: 3.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 21:48:02 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.2ms) +Completed 200 OK in 61ms (Views: 58.0ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 21:48:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 46ms (Views: 44.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 21:49:23 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 55ms (Views: 53.0ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 21:51:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.3ms) +Completed 200 OK in 78ms (Views: 69.5ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 21:51:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 27ms (Views: 25.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 21:51:40 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 59ms (Views: 56.1ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 21:52:47 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 71ms (Views: 69.1ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 21:53:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 48ms (Views: 46.8ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 21:53:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 48ms (Views: 45.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 21:53:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 47ms (Views: 44.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 21:53:39 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 52ms (Views: 50.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 21:54:07 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 51ms (Views: 49.4ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 21:54:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 52ms (Views: 50.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 21:55:52 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 95ms (Views: 93.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 21:56:01 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 53ms (Views: 51.0ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 21:56:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 50ms (Views: 47.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 21:56:14 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 49ms (Views: 47.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 21:56:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 57ms (Views: 54.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 21:56:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 27ms (Views: 22.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 21:57:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 56ms (Views: 53.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 21:57:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 52ms (Views: 50.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 21:57:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 34ms (Views: 32.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 21:58:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 54ms (Views: 52.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 21:59:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 57ms (Views: 53.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:00:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 76ms (Views: 74.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:00:36 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 54ms (Views: 52.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:00:55 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (8.2ms) +Completed 200 OK in 63ms (Views: 60.5ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:01:01 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 50ms (Views: 46.6ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:01:07 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 57ms (Views: 53.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:03:57 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (12.1ms) +Completed 200 OK in 106ms (Views: 96.6ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:04:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 60ms (Views: 58.0ms | ActiveRecord: 0.2ms) + + From 3b3c4a14d29d51ce9ee7238fc10fba83a7ab9d1d Mon Sep 17 00:00:00 2001 From: Haby Randall Date: Mon, 27 Mar 2017 22:36:05 -0700 Subject: [PATCH 16/20] More styling added --- app/assets/stylesheets/tasks.scss | 20 +- app/views/tasks/edit.html.erb | 4 +- app/views/tasks/new.html.erb | 5 +- db/development.sqlite3 | Bin 28672 -> 28672 bytes log/development.log | 662 ++++++++++++++++++++++++++++++ 5 files changed, 682 insertions(+), 9 deletions(-) diff --git a/app/assets/stylesheets/tasks.scss b/app/assets/stylesheets/tasks.scss index a2a276bdf..f2d14cd27 100644 --- a/app/assets/stylesheets/tasks.scss +++ b/app/assets/stylesheets/tasks.scss @@ -22,9 +22,9 @@ h1 { // text-align: center; a[href]:hover { - color: pink; - // list-style: none; - // text-decoration: none; + color: pink; + // list-style: none; + // text-decoration: none; } a[href] { @@ -43,11 +43,13 @@ footer { background-color: #80ced6; height: 100px; width: 100%; + position: absolute; + bottom: -350px; } footer p { - padding-top: 40px; - margin-left: 18px; + padding-top: 40px; + margin-left: 18px; } body { @@ -67,6 +69,14 @@ nav li { margin-right: 15px; } +input[type=text] { + background-color: #80ced6; + color: white; +} + +.form { + padding: 50px; +} #main h2 { font-family: monospace; diff --git a/app/views/tasks/edit.html.erb b/app/views/tasks/edit.html.erb index a86c6d514..7a0a79221 100644 --- a/app/views/tasks/edit.html.erb +++ b/app/views/tasks/edit.html.erb @@ -14,5 +14,5 @@ <% end %> -<%= link_to "Home", tasks_path %> -<%= link_to "New Task", new_task_path %> + diff --git a/app/views/tasks/new.html.erb b/app/views/tasks/new.html.erb index 75b18b366..f9dff001d 100644 --- a/app/views/tasks/new.html.erb +++ b/app/views/tasks/new.html.erb @@ -21,6 +21,7 @@ --> +
    <%= form_for @task do |f| %> <%= f.label :description %> <%= f.text_field :description %> @@ -34,5 +35,5 @@ <%= f.submit %> <% end %> - -

    <%= link_to "Home", tasks_path%>

    +
    + diff --git a/db/development.sqlite3 b/db/development.sqlite3 index 3f32ecf8cc2b0e52f7721141d63725e2161e8d28..f6e26c0838db70de6244ae9cd41728f8eb257cc5 100644 GIT binary patch delta 233 zcmZp8z}WDBae_3X%S0JxMwg8VOZ;VcxTZ1iZ{bnrQ{el}*Uh_?X9CYJ?v31zTyMCh zZB_^<AP)Nuiw(65kPP|@u?s;A VxD2?nAW(J+k&vsiL0i5Q0Tzbn6te&T diff --git a/log/development.log b/log/development.log index 2e4f2822b..cbb2797f1 100644 --- a/log/development.log +++ b/log/development.log @@ -7320,3 +7320,665 @@ Processing by TasksController#index as HTML Completed 200 OK in 60ms (Views: 58.0ms | ActiveRecord: 0.2ms) +Started GET "/tasks/22" for ::1 at 2017-03-27 22:05:09 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"22"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 22], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.3ms) +Completed 200 OK in 67ms (Views: 42.7ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:05:50 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (6.4ms) +Completed 200 OK in 100ms (Views: 96.3ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 22:05:54 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (36.5ms) +Completed 200 OK in 61ms (Views: 56.4ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:06:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.7ms) +Completed 200 OK in 48ms (Views: 45.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/21" for ::1 at 2017-03-27 22:06:28 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"21"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 21], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 41ms (Views: 37.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:06:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 37ms (Views: 34.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/20" for ::1 at 2017-03-27 22:06:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"20"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 20], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 35ms (Views: 30.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:06:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 57ms (Views: 53.7ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/21" for ::1 at 2017-03-27 22:06:40 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"21"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 21], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 48ms (Views: 44.7ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:06:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (10.8ms) +Completed 200 OK in 58ms (Views: 54.2ms | ActiveRecord: 1.2ms) + + +Started GET "/tasks/22" for ::1 at 2017-03-27 22:06:44 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"22"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 22], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 65ms (Views: 61.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 22:06:51 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (4.1ms) +Completed 200 OK in 43ms (Views: 39.5ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-27 22:07:16 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"oibISSA5qMI4z6DtqKMVjBOwisR4/VuxBrUXXio2ZGCIKzQIzkwvsNr4ueHFbUwSz60LOxkVmE1vpb6+kufeWQ==", "task"=>{"description"=>"Watch a movie", "assignee"=>"Haby", "completed"=>"we", "duration"=>""}, "commit"=>"Create Task"} +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "tasks" ("description", "assignee", "completed", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["description", "Watch a movie"], ["assignee", "Haby"], ["completed", "we"], ["created_at", 2017-03-28 05:07:16 UTC], ["updated_at", 2017-03-28 05:07:16 UTC]] +  (1.0ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 1.5ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:07:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 20ms (Views: 18.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/23/edit" for ::1 at 2017-03-27 22:07:19 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"23"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 23], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (6.8ms) +Completed 200 OK in 55ms (Views: 50.4ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/23" for ::1 at 2017-03-27 22:07:25 -0700 +Processing by TasksController#complete as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"5dgtrxk2mc1S5GIcRUdXpnI5bTuJbNoUkhEduF4rU+KL3vSmyF/2iTmjGWaYqd7DhDivI5572CsO35DZ6Cl9Pg==", "task"=>{"description"=>"Watch a movie", "assignee"=>"Haby", "completed"=>"wednesday", "duration"=>"4"}, "commit"=>"Update Task", "id"=>"23"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 23], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completion_date", "2017-03-27 22:07:25 -0700"], ["updated_at", 2017-03-28 05:07:25 UTC], ["id", 23]] +  (0.9ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 1.6ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:07:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 27ms (Views: 23.6ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/23" for ::1 at 2017-03-27 22:07:28 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"23"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 23], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 39ms (Views: 35.3ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/23/edit" for ::1 at 2017-03-27 22:07:34 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"23"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 23], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (5.1ms) +Completed 200 OK in 37ms (Views: 33.6ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/23" for ::1 at 2017-03-27 22:07:42 -0700 +Processing by TasksController#complete as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"hLughMEChhNeTWIPdTvCrW1GNdeJjSdO4EEjswzKzgXqvXmNEGvpVzUKGXWo1UvIm0f3z56aJXF8j67Susjg2Q==", "task"=>{"description"=>"Watch a movie", "assignee"=>"Haby", "completed"=>"wednesday", "duration"=>"3"}, "commit"=>"Update Task", "id"=>"23"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 23], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.9ms) UPDATE "tasks" SET "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completion_date", "2017-03-27 22:07:42 -0700"], ["updated_at", 2017-03-28 05:07:42 UTC], ["id", 23]] +  (1.3ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 11ms (ActiveRecord: 2.7ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:07:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 24ms (Views: 20.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/23" for ::1 at 2017-03-27 22:07:45 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"23"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 23], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 46ms (Views: 43.1ms | ActiveRecord: 0.1ms) + + +Started DELETE "/tasks/23" for ::1 at 2017-03-27 22:07:53 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"SUGsaBE4k//2PgG2RWKWhsSh4q1lHHPtLpVVgbuMSQ8OVybNlNROakkeu927sCZV10wjWMgs3s0hH3R0JdOhiQ==", "id"=>"23"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 23], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 23]] +  (2.0ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 2.6ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:07:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 32ms (Views: 28.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/22" for ::1 at 2017-03-27 22:07:55 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"22"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 22], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 47ms (Views: 42.0ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:07:57 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (6.6ms) +Completed 200 OK in 53ms (Views: 50.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 22:07:58 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (4.1ms) +Completed 200 OK in 45ms (Views: 42.2ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-27 22:08:16 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"B9+aGTgu/SUbRg2xhymCUvyftpSSbDaKZ3/5mo6KMegt0mZY1lt6V/lxFL3q59vMIII3a/OE9XYOb1B6NluL0Q==", "task"=>{"description"=>"watch tv", "assignee"=>"haby", "completed"=>"wednesday", "duration"=>"3"}, "commit"=>"Create Task"} +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "tasks" ("description", "assignee", "completed", "created_at", "updated_at", "duration") VALUES (?, ?, ?, ?, ?, ?) [["description", "watch tv"], ["assignee", "haby"], ["completed", "wednesday"], ["created_at", 2017-03-28 05:08:16 UTC], ["updated_at", 2017-03-28 05:08:16 UTC], ["duration", 3]] +  (0.6ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 4ms (ActiveRecord: 1.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:08:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 26ms (Views: 22.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/24" for ::1 at 2017-03-27 22:08:19 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"24"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 24], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.3ms) +Completed 200 OK in 47ms (Views: 43.8ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:08:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.7ms) +Completed 200 OK in 48ms (Views: 45.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 22:08:23 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (4.0ms) +Completed 200 OK in 46ms (Views: 42.3ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-27 22:08:41 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"xm2b0RCCxM+w5+mGGyQK725zatYtdTthG21L4T680JzsYGeQ/vdDvVLQ8Ip26lNxsm7rKUyd+J1yfeIBhm1qpQ==", "task"=>{"description"=>"go to sleep", "assignee"=>"haby", "completed"=>"tonight", "duration"=>"8"}, "commit"=>"Create Task"} +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "tasks" ("description", "assignee", "completed", "created_at", "updated_at", "duration") VALUES (?, ?, ?, ?, ?, ?) [["description", "go to sleep"], ["assignee", "haby"], ["completed", "tonight"], ["created_at", 2017-03-28 05:08:41 UTC], ["updated_at", 2017-03-28 05:08:41 UTC], ["duration", 8]] +  (1.8ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 6ms (ActiveRecord: 2.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:08:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 39ms (Views: 36.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/25" for ::1 at 2017-03-27 22:08:43 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"25"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 25], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 39ms (Views: 36.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:08:46 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (6.3ms) +Completed 200 OK in 51ms (Views: 47.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2/edit" for ::1 at 2017-03-27 22:10:18 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (9.9ms) +Completed 200 OK in 77ms (Views: 61.3ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/2/edit" for ::1 at 2017-03-27 22:13:32 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (20.9ms) +Completed 200 OK in 159ms (Views: 139.0ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/2/edit" for ::1 at 2017-03-27 22:13:36 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.3ms) +Completed 200 OK in 25ms (Views: 23.1ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/2/edit" for ::1 at 2017-03-27 22:14:02 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.1ms) +Completed 200 OK in 63ms (Views: 60.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 22:14:13 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (7.2ms) +Completed 200 OK in 70ms (Views: 66.3ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 22:14:39 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.9ms) +Completed 200 OK in 48ms (Views: 46.7ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 22:15:42 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.9ms) +Completed 200 OK in 57ms (Views: 55.1ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 22:17:00 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (3.0ms) +Completed 200 OK in 79ms (Views: 77.1ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:17:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (7.6ms) +Completed 200 OK in 43ms (Views: 36.9ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-27 22:18:08 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 35ms (Views: 31.0ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/2/edit" for ::1 at 2017-03-27 22:19:39 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (6.5ms) +Completed 200 OK in 37ms (Views: 32.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/2/edit" for ::1 at 2017-03-27 22:20:12 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (5.9ms) +Completed 200 OK in 29ms (Views: 26.3ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/2/edit" for ::1 at 2017-03-27 22:21:48 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.3ms) +Completed 200 OK in 60ms (Views: 57.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2/edit" for ::1 at 2017-03-27 22:22:11 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (5.5ms) +Completed 200 OK in 67ms (Views: 64.5ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/2/edit" for ::1 at 2017-03-27 22:22:19 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (4.5ms) +Completed 200 OK in 64ms (Views: 60.7ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/2/edit" for ::1 at 2017-03-27 22:22:27 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (4.2ms) +Completed 200 OK in 69ms (Views: 65.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2/edit" for ::1 at 2017-03-27 22:22:37 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (4.2ms) +Completed 200 OK in 54ms (Views: 51.6ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/2/edit" for ::1 at 2017-03-27 22:23:28 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.6ms) +Completed 200 OK in 30ms (Views: 28.2ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/2/edit" for ::1 at 2017-03-27 22:23:39 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (4.8ms) +Completed 200 OK in 68ms (Views: 65.6ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/2/edit" for ::1 at 2017-03-27 22:23:49 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.6ms) +Completed 200 OK in 58ms (Views: 53.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/2/edit" for ::1 at 2017-03-27 22:23:52 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.4ms) +Completed 200 OK in 30ms (Views: 28.6ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/2/edit" for ::1 at 2017-03-27 22:24:01 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (5.0ms) +Completed 200 OK in 63ms (Views: 60.7ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:24:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 34ms (Views: 31.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:24:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 51ms (Views: 49.6ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:24:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 48ms (Views: 45.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:24:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 62ms (Views: 59.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:24:47 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 56ms (Views: 53.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:24:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 51ms (Views: 48.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:25:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 75ms (Views: 72.5ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 22:25:20 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (5.5ms) +Completed 200 OK in 39ms (Views: 36.7ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 22:25:44 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (6.4ms) +Completed 200 OK in 29ms (Views: 26.3ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:25:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 39ms (Views: 36.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 22:26:55 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (5.4ms) +Completed 200 OK in 52ms (Views: 49.6ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 22:31:56 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (38.4ms) +Completed 200 OK in 127ms (Views: 110.6ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 22:32:06 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.5ms) +Completed 200 OK in 54ms (Views: 51.9ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 22:32:20 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.9ms) +Completed 200 OK in 60ms (Views: 58.0ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 22:32:59 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.5ms) +Completed 200 OK in 25ms (Views: 22.8ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 22:35:11 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (7.4ms) +Completed 200 OK in 36ms (Views: 33.9ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:35:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 33ms (Views: 29.9ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/24" for ::1 at 2017-03-27 22:35:20 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"24"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 24], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 36ms (Views: 33.8ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:35:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 42ms (Views: 39.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/17/edit" for ::1 at 2017-03-27 22:35:30 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"17"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 17], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (12.3ms) +Completed 200 OK in 44ms (Views: 42.0ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:35:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 46ms (Views: 42.8ms | ActiveRecord: 0.3ms) + + From 384b198b92293d35d82ad80719d3bbfe4e22449b Mon Sep 17 00:00:00 2001 From: Haby Randall Date: Mon, 27 Mar 2017 22:54:56 -0700 Subject: [PATCH 17/20] More styling added to footer --- app/assets/stylesheets/tasks.scss | 8 +- app/views/tasks/index.html.erb | 1 + db/development.sqlite3 | Bin 28672 -> 28672 bytes log/development.log | 118 ++++++++++++++++++++++++++++++ 4 files changed, 124 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/tasks.scss b/app/assets/stylesheets/tasks.scss index f2d14cd27..54051895f 100644 --- a/app/assets/stylesheets/tasks.scss +++ b/app/assets/stylesheets/tasks.scss @@ -41,10 +41,12 @@ header { footer { background-color: #80ced6; - height: 100px; - width: 100%; position: absolute; - bottom: -350px; + right: 0; + bottom: auto; + left: 0; + padding: 1rem; + text-align: center; } footer p { diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb index 185552cf8..cabf67305 100644 --- a/app/views/tasks/index.html.erb +++ b/app/views/tasks/index.html.erb @@ -7,6 +7,7 @@ <% @tasks.each do |task| %>
  • The task to do is: <%= link_to task.description, task_path(task.id) %>
  • <%= link_to "Edit Task", edit_task_path(task.id) %>
  • +
  • <% if task.completion_date == nil %> <%= link_to "Complete?", completed_task_path(task.id), data: { confirm: "Are you sure you want to complete this task?" }, method: :complete %> <% else %> haha <% end %>
  • <% end %>

    *Click on each task for more information*

    diff --git a/db/development.sqlite3 b/db/development.sqlite3 index f6e26c0838db70de6244ae9cd41728f8eb257cc5..43ab9c2545e870ee3577c0ef34e63ea4878998a8 100644 GIT binary patch delta 94 zcmZp8z}WDBae_3X>qHr6M%RrAEBzT~Z{`Y!)>y&F$ja2z%GgBD u($vt*$dt*8k&{7KRMOFrlVS3*cmqL01tUW%Qy? + 8:
  • The task to do is: <%= link_to task.description, task_path(task.id) %>
  • + 9:
  • <%= link_to "Edit Task", edit_task_path(task.id) %>
  • + 10:
  • <% if @result_task.completion_date == nil %> <%= link_to "Complete?", completed_task_path(@result_task.id), data: { confirm: "Are you sure you want to complete this task?" }, method: :complete %> <% else %> haha <% end %>
  • + 11: <% end %> + 12: + 13:

    *Click on each task for more information*

    + +app/views/tasks/index.html.erb:10:in `block in _app_views_tasks_index_html_erb__2653980949793100286_70125031804120' +app/views/tasks/index.html.erb:7:in `_app_views_tasks_index_html_erb__2653980949793100286_70125031804120' + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.8ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms) + Rendering /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/habsr/.rvm/gems/ruby-2.4.0@TaskListRails/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (60.9ms) +Started GET "/tasks" for ::1 at 2017-03-27 22:42:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.4ms) +Completed 200 OK in 32ms (Views: 30.1ms | ActiveRecord: 0.4ms) + + +Started POST "/tasks/1" for ::1 at 2017-03-27 22:42:15 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"O8uwvHO1uYe4Dxr9akunie9X6Oti/+bsP628StuhVxV83ToZ9llkEgcvoJaUmRda/LopHs/PS8wwJ52/Rf6/kw==", "id"=>"1"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) begin transaction + SQL (0.7ms) UPDATE "tasks" SET "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completion_date", "2017-03-27 22:42:15 -0700"], ["updated_at", 2017-03-28 05:42:15 UTC], ["id", 1]] +  (0.8ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 12ms (ActiveRecord: 2.4ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:42:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.5ms) +Completed 200 OK in 32ms (Views: 30.0ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:49:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (20.0ms) +Completed 200 OK in 154ms (Views: 140.6ms | ActiveRecord: 1.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:50:01 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 75ms (Views: 73.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:50:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (8.1ms) +Completed 200 OK in 92ms (Views: 89.5ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:50:21 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 30ms (Views: 28.7ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:53:52 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (14.9ms) +Completed 200 OK in 125ms (Views: 114.3ms | ActiveRecord: 1.6ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:54:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 71ms (Views: 68.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:54:21 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (6.9ms) +Completed 200 OK in 87ms (Views: 83.2ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 22:54:25 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (8.7ms) +Completed 200 OK in 34ms (Views: 30.8ms | ActiveRecord: 0.0ms) + + From d47fb2db938d031871ada01585d4159af56e839d Mon Sep 17 00:00:00 2001 From: Haby Randall Date: Wed, 5 Apr 2017 14:17:33 -0700 Subject: [PATCH 18/20] Testing git branches --- README.md | 2 + db/development.sqlite3 | Bin 28672 -> 28672 bytes log/development.log | 261 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 263 insertions(+) diff --git a/README.md b/README.md index 399dc287c..59d9ca655 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # Task List Let's build a Task List in Rails! We will solve the problem of tracking tasks in a web application. This project will enable us to keep track of and persist, add, edit and remove tasks. This is an individual Stage 1 project. +This is a test + ## Learning Goals Practice all aspects of Rails development. - Create a new Rails application diff --git a/db/development.sqlite3 b/db/development.sqlite3 index 43ab9c2545e870ee3577c0ef34e63ea4878998a8..f81980f4902ad030493fde14f62b4a3121234b9a 100644 GIT binary patch delta 387 zcmZp8z}WDBae_3X*F+g-Mz4(tOZ=7iIl~$FXY;7@De(Q~>*n3cGlAz9_eO3O-e6_s>!VkD7+Wgn8kiUuL`!or=u3la zV{ii6R-Ra2l3JvYlwVSklUnSRU#bhl#ie=3)>fixKz0KH^xV6b^wRHi7S3;?U!VX^=K delta 61 zcmV-D0K)%(-~oW(0gxL3MUfms0Y$N3q)#3U3YGv5n+zuoAP)Nuiw(65kPP|@u?s;8 T>"✓", "authenticity_token"=>"R7/e95S6pte8WduBQS/hGmR8CDDpuBTvtr1SGXODnZBtsiK2es8hpV5uwo0s4biEuGGJz4hQ1xPfrfv5y1InqQ==", "task"=>{"description"=>"clean apartment ", "assignee"=>"Scott", "completed"=>"monday", "duration"=>"4"}, "commit"=>"Create Task"} +  (0.8ms) begin transaction + SQL (0.9ms) INSERT INTO "tasks" ("description", "assignee", "completed", "created_at", "updated_at", "duration") VALUES (?, ?, ?, ?, ?, ?) [["description", "clean apartment "], ["assignee", "Scott"], ["completed", "monday"], ["created_at", 2017-03-28 05:56:09 UTC], ["updated_at", 2017-03-28 05:56:09 UTC], ["duration", 4]] +  (0.8ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 11ms (ActiveRecord: 2.5ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:56:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 28ms (Views: 26.2ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/26" for ::1 at 2017-03-27 22:56:20 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"1u11uSqgk4FpBbh+uf+dp3G2uKN7VcvEngFs79P/Q5OR+/8cr0xOFNYlAhVHLS10Ylt5VtZlZuSRi00aTaCrFQ==", "id"=>"26"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 26], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.6ms) UPDATE "tasks" SET "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completion_date", "2017-03-27 22:56:20 -0700"], ["updated_at", 2017-03-28 05:56:20 UTC], ["id", 26]] +  (1.8ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 11ms (ActiveRecord: 2.7ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:56:20 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.5ms) +Completed 200 OK in 43ms (Views: 39.2ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-27 22:56:26 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (6.2ms) +Completed 200 OK in 66ms (Views: 62.6ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-27 22:56:55 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"z1lYd9nbOqCLkYcgRNHfAZBCFgU1OVsjIQrrsvCHA8/lVKQ2N6690mmmniwpH4afTF+X+lTRmN9IGkJSSFa59g==", "task"=>{"description"=>"Buy water bottles", "assignee"=>"Jou-Jou", "completed"=>"sunday", "duration"=>"1"}, "commit"=>"Create Task"} +  (0.6ms) begin transaction + SQL (0.4ms) INSERT INTO "tasks" ("description", "assignee", "completed", "created_at", "updated_at", "duration") VALUES (?, ?, ?, ?, ?, ?) [["description", "Buy water bottles"], ["assignee", "Jou-Jou"], ["completed", "sunday"], ["created_at", 2017-03-28 05:56:55 UTC], ["updated_at", 2017-03-28 05:56:55 UTC], ["duration", 1]] +  (0.8ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 11ms (ActiveRecord: 1.8ms) + + +Started GET "/tasks" for ::1 at 2017-03-27 22:56:55 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (6.9ms) +Completed 200 OK in 39ms (Views: 35.9ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/14/edit" for ::1 at 2017-03-27 22:57:11 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"14"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (5.0ms) +Completed 200 OK in 42ms (Views: 37.9ms | ActiveRecord: 0.1ms) + + +Started GET "/" for ::1 at 2017-03-28 23:13:10 -0400 + ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (15.3ms) +Completed 200 OK in 327ms (Views: 307.6ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-28 23:14:09 -0400 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (21.9ms) +Completed 200 OK in 47ms (Views: 42.9ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-28 23:14:29 -0400 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"WvnB7gxOd+Ubon2Lr8nFemg6Y5Au3zMTyC12Yb9JPdtw9D2v4jvwl/mVZIfCB5zktCfib0838O+hPd+BB5iH4g==", "task"=>{"description"=>"buy dog food", "assignee"=>"josh", "completed"=>"friday", "duration"=>"1"}, "commit"=>"Create Task"} +  (0.3ms) begin transaction + SQL (0.8ms) INSERT INTO "tasks" ("description", "assignee", "completed", "created_at", "updated_at", "duration") VALUES (?, ?, ?, ?, ?, ?) [["description", "buy dog food"], ["assignee", "josh"], ["completed", "friday"], ["created_at", 2017-03-29 03:14:29 UTC], ["updated_at", 2017-03-29 03:14:29 UTC], ["duration", 1]] +  (1.2ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 8ms (ActiveRecord: 2.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-28 23:14:29 -0400 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.7ms) +Completed 200 OK in 27ms (Views: 25.0ms | ActiveRecord: 0.4ms) + + +Started POST "/tasks/28" for ::1 at 2017-03-28 23:14:39 -0400 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"rN1/k5wtS2cHoOnbiDwcLymvwgqlUIbWdislBnXQoJPry/U2GcGW8riAU7B27qz8OkID/whgK/Z5oQTz649IFQ==", "id"=>"28"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 28], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.5ms) UPDATE "tasks" SET "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completion_date", "2017-03-28 23:14:39 -0400"], ["updated_at", 2017-03-29 03:14:39 UTC], ["id", 28]] +  (0.9ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 13ms (ActiveRecord: 1.9ms) + + +Started GET "/tasks" for ::1 at 2017-03-28 23:14:39 -0400 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.5ms) +Completed 200 OK in 29ms (Views: 27.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/28" for ::1 at 2017-03-28 23:18:29 -0400 +Processing by TasksController#show as HTML + Parameters: {"id"=>"28"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 28], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 40ms (Views: 36.7ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-28 23:18:44 -0400 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (6.4ms) +Completed 200 OK in 39ms (Views: 36.0ms | ActiveRecord: 0.2ms) + + +Started GET "/" for ::1 at 2017-03-31 10:09:53 -0400 + ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (12.5ms) +Completed 200 OK in 246ms (Views: 228.9ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-31 10:10:03 -0400 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (20.8ms) +Completed 200 OK in 52ms (Views: 49.0ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-31 10:10:14 -0400 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 20ms (Views: 15.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-31 10:10:20 -0400 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (8.9ms) +Completed 200 OK in 52ms (Views: 50.0ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-31 10:10:38 -0400 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 29ms (Views: 27.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/28/edit" for ::1 at 2017-03-31 10:10:55 -0400 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"28"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 28], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.7ms) +Completed 200 OK in 43ms (Views: 39.1ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2017-03-31 10:10:59 -0400 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 37ms (Views: 34.6ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/26/edit" for ::1 at 2017-03-31 10:11:07 -0400 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"26"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 26], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (4.9ms) +Completed 200 OK in 31ms (Views: 28.4ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-31 10:11:13 -0400 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.6ms) +Completed 200 OK in 52ms (Views: 48.3ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-31 10:11:16 -0400 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 29ms (Views: 25.5ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-31 10:11:20 -0400 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.1ms) +Completed 200 OK in 40ms (Views: 37.1ms | ActiveRecord: 0.7ms) + + From e72a94b0240bcbebe614085c17ad5b7589e0b377 Mon Sep 17 00:00:00 2001 From: Haby Randall Date: Wed, 5 Apr 2017 14:33:39 -0700 Subject: [PATCH 19/20] Testing branch in read me --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 59d9ca655..56c05f453 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Let's build a Task List in Rails! We will solve the problem of tracking tasks in a web application. This project will enable us to keep track of and persist, add, edit and remove tasks. This is an individual Stage 1 project. This is a test - +Another test ## Learning Goals Practice all aspects of Rails development. - Create a new Rails application From 839934b4952044f3131f0fb45e8e213b583990d6 Mon Sep 17 00:00:00 2001 From: Haby Randall Date: Sat, 8 Apr 2017 00:30:49 -0700 Subject: [PATCH 20/20] Modified route file so that only one complete path exists --- config/routes.rb | 4 +- db/development.sqlite3 | Bin 28672 -> 28672 bytes log/development.log | 110 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 112 insertions(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 90e66f178..1492d4a5d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -10,8 +10,8 @@ get "/tasks", to: "tasks#index" get "/tasks/:id", to: "tasks#show", as:'task' - patch "/tasks/:id", to: "tasks#complete", as: "completed_task" - post "/tasks/:id", to: "tasks#complete" + # patch "/tasks/:id", to: "tasks#complete", as: "completed_task" + post "/tasks/:id", to: "tasks#complete", as: "completed_task" get "/tasks/:id/edit", to: "tasks#edit", as: 'edit_task' diff --git a/db/development.sqlite3 b/db/development.sqlite3 index f81980f4902ad030493fde14f62b4a3121234b9a..071cb510984ed93310d05b8ccc373ffe879a0fef 100644 GIT binary patch delta 328 zcmZp8z}WDBae_3X??f4AM&FGI3;oqOk1_~w)HCqU=27QU;QP(j&AXLn0?#k*jogl0 zZ@8v$DRDgH4Ckod*ci@{n;^@{ATB8E=*VeboRgYbkeiy9Uv6YzXs&BuqHAEGU|?=# zWNBq$re|qtVPIy7A!BN!XJ%n&ZeolqV*t`)YNViRU~XVgBF)L5FD(hOVe*AYJ6$AW zjSTfnjZDnUOfWPX8A3Eq4v)-><;`M-Dv"RYlqdMaxIm4wyZ4MLZHeJ6orB7v2+N4KeMevdXXQaeoCn+DRQ13/+4/pJGfTQ270ucbGTlvIcyp3TY6A64+BbA==", "id"=>"27"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 27], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completion_date", "2017-04-08 00:29:21 -0700"], ["updated_at", 2017-04-08 07:29:21 UTC], ["id", 27]] +  (0.6ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 8ms (ActiveRecord: 1.2ms) + + +Started GET "/tasks" for ::1 at 2017-04-08 00:29:21 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 25ms (Views: 23.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for ::1 at 2017-04-08 00:29:29 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (34.8ms) +Completed 200 OK in 56ms (Views: 52.9ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-04-08 00:29:46 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"YmipfsK5RHda1/pjZlJbV8irj15DojnjkCgaW1GwnfFIZVU/LMzDBbjg428LnALJFLYOoSJK+h/5OLO76WEnyA==", "task"=>{"description"=>"sleep", "assignee"=>"me", "completed"=>"now", "duration"=>"1"}, "commit"=>"Create Task"} +  (0.1ms) begin transaction + SQL (0.7ms) INSERT INTO "tasks" ("description", "assignee", "completed", "created_at", "updated_at", "duration") VALUES (?, ?, ?, ?, ?, ?) [["description", "sleep"], ["assignee", "me"], ["completed", "now"], ["created_at", 2017-04-08 07:29:46 UTC], ["updated_at", 2017-04-08 07:29:46 UTC], ["duration", 1]] +  (0.7ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 5ms (ActiveRecord: 1.4ms) + + +Started GET "/tasks" for ::1 at 2017-04-08 00:29:46 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 34ms (Views: 30.0ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/29" for ::1 at 2017-04-08 00:29:52 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"Hrmd0EuHbVTvYWNk9pc2WhB1LvRuqBZWn1+SeePnJ9JZrxd1zmuwwVBB2Q8IRYaJA5jvAcOYu3aQ1bOMfbjPVA==", "id"=>"29"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] +  (0.2ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "completion_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completion_date", "2017-04-08 00:29:52 -0700"], ["updated_at", 2017-04-08 07:29:52 UTC], ["id", 29]] +  (4.3ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 13ms (ActiveRecord: 5.5ms) + + +Started GET "/tasks" for ::1 at 2017-04-08 00:29:52 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (18.1ms) +Completed 200 OK in 62ms (Views: 55.9ms | ActiveRecord: 1.4ms) + +