From 7f871efa277ce2e8e6f2dbe14b3e501e60068c98 Mon Sep 17 00:00:00 2001 From: Sofia Kim Date: Tue, 21 Mar 2017 21:05:25 -0700 Subject: [PATCH 1/6] migration of new task model created --- Gemfile | 53 + Gemfile.lock | 174 + README.md | 75 +- 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.css | 15 + 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 | 50 + app/helpers/application_helper.rb | 2 + app/helpers/tasks_helper.rb | 2 + app/jobs/application_job.rb | 2 + app/mailers/application_mailer.rb | 4 + app/models/application_record.rb | 3 + app/models/concerns/.keep | 0 app/models/task.rb | 2 + app/views/layouts/application.html.erb | 14 + app/views/layouts/mailer.html.erb | 13 + app/views/layouts/mailer.text.erb | 1 + app/views/tasks/edit.html.erb | 8 + app/views/tasks/index.html.erb | 13 + app/views/tasks/new.html.erb | 8 + app/views/tasks/show.html.erb | 10 + 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 | 18 + config/secrets.yml | 22 + config/spring.rb | 6 + db/development.sqlite3 | Bin 0 -> 28672 bytes db/migrate/20170321201815_create_tasks.rb | 11 + db/schema.rb | 23 + db/seeds.rb | 31 + lib/assets/.keep | 0 lib/tasks/.keep | 0 log/.keep | 0 log/development.log | 3688 +++++++++++++++++ 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 + seeds.rb | 22 +- test/controllers/.keep | 0 test/controllers/tasks_controller_test.rb | 7 + test/fixtures/.keep | 0 test/fixtures/files/.keep | 0 test/fixtures/tasks.yml | 9 + test/helpers/.keep | 0 test/integration/.keep | 0 test/mailers/.keep | 0 test/models/.keep | 0 test/models/task_test.rb | 7 + test/test_helper.rb | 10 + vendor/assets/javascripts/.keep | 0 vendor/assets/stylesheets/.keep | 0 90 files changed, 5011 insertions(+), 73 deletions(-) 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.css create mode 100644 app/channels/application_cable/channel.rb create mode 100644 app/channels/application_cable/connection.rb create mode 100644 app/controllers/application_controller.rb create mode 100644 app/controllers/concerns/.keep create mode 100644 app/controllers/tasks_controller.rb create mode 100644 app/helpers/application_helper.rb create mode 100644 app/helpers/tasks_helper.rb create mode 100644 app/jobs/application_job.rb create mode 100644 app/mailers/application_mailer.rb create mode 100644 app/models/application_record.rb create mode 100644 app/models/concerns/.keep create mode 100644 app/models/task.rb create mode 100644 app/views/layouts/application.html.erb create mode 100644 app/views/layouts/mailer.html.erb create mode 100644 app/views/layouts/mailer.text.erb create mode 100644 app/views/tasks/edit.html.erb create mode 100644 app/views/tasks/index.html.erb create mode 100644 app/views/tasks/new.html.erb create mode 100644 app/views/tasks/show.html.erb create mode 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/migrate/20170321201815_create_tasks.rb create mode 100644 db/schema.rb create mode 100644 db/seeds.rb create mode 100644 lib/assets/.keep create mode 100644 lib/tasks/.keep create mode 100644 log/.keep create mode 100644 log/development.log create mode 100644 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/fixtures/tasks.yml create mode 100644 test/helpers/.keep create mode 100644 test/integration/.keep create mode 100644 test/mailers/.keep create mode 100644 test/models/.keep create mode 100644 test/models/task_test.rb create mode 100644 test/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/README.md b/README.md index 399dc287c..7db80e4ca 100644 --- a/README.md +++ b/README.md @@ -1,73 +1,24 @@ -# 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. +# README -## Learning Goals -Practice all aspects of Rails development. -- Create a new Rails application -- Explore each aspect of the Rails Request Cycle: Model, View, Controller -- Implement RESTful routes using Rails standards -- Complete all CRUD actions in a Rails application +This README would normally document whatever steps are necessary to get the +application up and running. -## Baseline -In this baseline, you'll create a new Rails application and get started with two of the major components: route, controller and view. +Things you may want to cover: -- Fork and clone this repository to your computer -- Create a new Rails application using `rails new .` - - create a `Tasks` controller - - create a route to view the task `index` page - - create a controller action for the task `index` page which contains an array of hard-coded tasks - - create an ERB view to display the tasks from the controller action +* Ruby version - +* Configuration - +* Database initialization - +* Deployment instructions - +* ... 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.css b/app/assets/stylesheets/tasks.css new file mode 100644 index 000000000..d9b87aa59 --- /dev/null +++ b/app/assets/stylesheets/tasks.css @@ -0,0 +1,15 @@ +* { + font-family: monospace; +} + +body { + background-color: pink; +} + +h1 { + color: purple; +} + +h1 { + border: 1px solid red; +} 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..e252cd722 --- /dev/null +++ b/app/controllers/tasks_controller.rb @@ -0,0 +1,50 @@ +class TasksController < ApplicationController + + def index + @tasks = Task.all + end + + def show + id = params[:id].to_i + @task = Task.find(id) + end + + def new + @task = Task.new + end + + def create + @task = Task.new({:name=>params[:task][:name], :description=>params[:task][:description], :completed_at=>Time.at(rand * Time.now.to_i)}) + if @task.save + redirect_to task_path(@task.id) + else + render :new + end + end + + def destroy #no actual page that you go to link to show/index page + @task = Task.find(params[:id]) + @task.destroy + redirect_to tasks_path + end + + def edit #link will still go to the show, but need a separate page + @task = Task.find(params[:id]) #access to the instance + end + + def update #patch request doesn't need view only Get request needs view + @task = Task.find(params[:id]) + if @task.update({:name=>params[:task][:name], :description=>params[:task][:description]}) + redirect_to task_path(@task.id) + else + render :edit #render to edit page + end + end + + def mark_complete + @task = Task.find(params[:id]) + @task.update({:completed_at=>Time.now}) + redirect_to task_path(@task.id) + end + +end diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb new file mode 100644 index 000000000..de6be7945 --- /dev/null +++ b/app/helpers/application_helper.rb @@ -0,0 +1,2 @@ +module ApplicationHelper +end diff --git a/app/helpers/tasks_helper.rb b/app/helpers/tasks_helper.rb new file mode 100644 index 000000000..ce894d00c --- /dev/null +++ b/app/helpers/tasks_helper.rb @@ -0,0 +1,2 @@ +module TasksHelper +end diff --git a/app/jobs/application_job.rb b/app/jobs/application_job.rb new file mode 100644 index 000000000..a009ace51 --- /dev/null +++ b/app/jobs/application_job.rb @@ -0,0 +1,2 @@ +class ApplicationJob < ActiveJob::Base +end diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb new file mode 100644 index 000000000..286b2239d --- /dev/null +++ b/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' +end diff --git a/app/models/application_record.rb b/app/models/application_record.rb new file mode 100644 index 000000000..10a4cba84 --- /dev/null +++ b/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/app/models/concerns/.keep b/app/models/concerns/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/app/models/task.rb b/app/models/task.rb new file mode 100644 index 000000000..3c2342421 --- /dev/null +++ b/app/models/task.rb @@ -0,0 +1,2 @@ +class Task < ApplicationRecord +end diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb new file mode 100644 index 000000000..be7a9f069 --- /dev/null +++ b/app/views/layouts/application.html.erb @@ -0,0 +1,14 @@ + + + + TaskList + <%= csrf_meta_tags %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + + <%= yield %> + + diff --git a/app/views/layouts/mailer.html.erb b/app/views/layouts/mailer.html.erb new file mode 100644 index 000000000..cbd34d2e9 --- /dev/null +++ b/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/app/views/layouts/mailer.text.erb b/app/views/layouts/mailer.text.erb new file mode 100644 index 000000000..37f0bddbd --- /dev/null +++ b/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/app/views/tasks/edit.html.erb b/app/views/tasks/edit.html.erb new file mode 100644 index 000000000..79506477b --- /dev/null +++ b/app/views/tasks/edit.html.erb @@ -0,0 +1,8 @@ +<%= form_for @task do |f| %> + +<%= f.label :name %> +<%= f.text_field :name %> +<%= f.label :description %> +<%= f.text_field :description %> +<%= f.submit %> +<% end %> diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb new file mode 100644 index 000000000..bc90da9aa --- /dev/null +++ b/app/views/tasks/index.html.erb @@ -0,0 +1,13 @@ +

Tasks List

+<%= link_to "Create a 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..79506477b --- /dev/null +++ b/app/views/tasks/new.html.erb @@ -0,0 +1,8 @@ +<%= form_for @task do |f| %> + +<%= f.label :name %> +<%= f.text_field :name %> +<%= f.label :description %> +<%= f.text_field :description %> +<%= f.submit %> +<% end %> diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb new file mode 100644 index 000000000..1ac86da4f --- /dev/null +++ b/app/views/tasks/show.html.erb @@ -0,0 +1,10 @@ +

<%= "#{@task.name}" %>

+

completed_at<%= @task.completed_at %>

+ +<%= link_to "Back to task list", tasks_path %> + +<%= link_to "Delete", task_path(@task.id), method: :delete, data: {confirm: "Really delete the article?"} %> + +<%= link_to "Edit", edit_task_path(@task.id) %> + +<%= link_to "mark_complete", "/tasks/#{@task.id}/mark_complete", method: :patch%> 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..0c3273a60 --- /dev/null +++ b/config/routes.rb @@ -0,0 +1,18 @@ +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' +# +# get 'tasks/new', to: 'tasks#new' +# +# get 'tasks/:id', to: 'tasks#show', as: 'task' +# +# post '/tasks', to: 'tasks#create' +# +# delete 'tasks/:id', to: 'tasks#destroy' +# +# get 'tasks/:id/edit', to: 'tasks#edit' + +resources :tasks + +patch 'tasks/:id/mark_complete', to: 'tasks#mark_complete' +end diff --git a/config/secrets.yml b/config/secrets.yml new file mode 100644 index 000000000..1ca31a2ad --- /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: 484296cba26c2203d31924d89be5d03da42d2ee13a50dbd5c5c6402e7898e5953d71ae71a233498f8315e5fc1da584a84e701b1b2ebbd61d52cca3a3c904d707 + +test: + secret_key_base: 3788c155f8c5ed1ec90b26934bde9ccd1c4f132388d1afb814d1fd61b117ad18556578b1961f65b9c210514b4f45fb945d5ff5afb13ae8446631f470eaa03b7d + +# 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 0000000000000000000000000000000000000000..db51fe24b25be25e708a786fe6cf2b117b90dc87 GIT binary patch literal 28672 zcmeI*+inv_7y#he1iT#LI8aq?MJW@f5m>}#XV>es-HXNE5q+S^LKLV^mZH$~D86rvKb4m#zD{#ng?7xn~$+7(l_$dvXk2_rkYh^y0Bt@~$os(`kr@d$Y&ef!n*TMRl~sqDqfHl;q@(%#13nqq1j>JQcj_~}!#U5#rE>Fagx37#F!jZ%^cBE($=JrH5 zzi~LE#50n3miRrq#uo~p01BW03ZMWApa2S>01BW03ZTHdB``BFkyaIED4NPtMOAa! zj5Jun3QRu*L)yFl|Lxrx9rhLlPyhu`00mG01yBG5Pyhu`00mG01kO&TrQzHEi8GVw zlZQp&{eOS||0zj4MKcsY0Te(16hHwKKmim$0Te(16hMKuL|{!iJ~vk`3#Vgxu44-) zXo!xm+*WuR-q~jqEu%83DkYVbG?ry~#=_nIagqN1|8tUf{+5goyMY2IfC4Ch0w{n2 zD1ZVefC4Ch0x0nM0@IUoCkK9g5bpnlvFV?tZ^r+O{}8`A^~cnc(?6cR ze(JB+ZxS=001BW03ZMWApa2S>z#9~(P0J*iESJj--Z2}#B}7YAlww9<8C9oBuB50X zP0y;jq7)8y&QuD;dZDB$S(Pb_X$O01>epu=;d_wKcbg`Mr_ixtv5--6@I_g!#8`sG^lrqnA!)dF^PVIV0C+An^rA%v&w%+p{uBpM#6)wxBmm&ktx7p1^m9 z?+Dt45$x^oK|i&ypL#J{EEt7iaX6CGODvaFw1Sq`ha>xSAfj3y$mHTIw6$(=C!jYh zcNZQ^c2B@_(#&StnmtleQL|bhr>W7c>Cl!jrcS{q*3QY~{STqFRo=>a!r~A28>q~O z5fTx}sQrN!OF2CpsIKNl8W@P&{X{0kSxB=9bi1zSnZjS7UAIkl9CtUnM7d3yrX%*7 z9Z9a|Mkh|+OCCnn=VWsJA|$`YEsL(W_7b(+j-Ymz+O8elDOOYp<0BiXP#-eBnts18 zM&2-nRx7N6fe4?K$yyR}eqr9Bgor?jz2^?MC{Vp29P&I9I z8uywABi~S&WQ=~dyYx%5AzZo$Peb&V=&lJguzZ40r3w5_BXaopqM@qeBX=&ygoQAR zE)86|DeA7%pv!HizP)P(+qBhgwYt&Ojhr#EHurS$VdU1wGMSq@NPL*F$!*gblTv3) ziEb>6Y@V0N{QN=6tKLB``{VbctHLrK0}w{mKMFqsAnB`o2K1*!FKA=dS})T7`~R0D s@$wCRB4g7ifC4Ch0w{n2D1ZVefC4Ch0w{n2|G&UVX)-DG{!7RFzmg}pXaE2J literal 0 HcmV?d00001 diff --git a/db/migrate/20170321201815_create_tasks.rb b/db/migrate/20170321201815_create_tasks.rb new file mode 100644 index 000000000..d4bf2f067 --- /dev/null +++ b/db/migrate/20170321201815_create_tasks.rb @@ -0,0 +1,11 @@ +class CreateTasks < ActiveRecord::Migration[5.0] + def change + create_table :tasks do |t| + t.string :name + t.string :description + t.time :completed_at + + t.timestamps + end + end +end diff --git a/db/schema.rb b/db/schema.rb new file mode 100644 index 000000000..8cc8ec191 --- /dev/null +++ b/db/schema.rb @@ -0,0 +1,23 @@ +# 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: 20170321201815) do + + create_table "tasks", force: :cascade do |t| + t.string "name" + t.string "description" + t.time "completed_at" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + +end diff --git a/db/seeds.rb b/db/seeds.rb new file mode 100644 index 000000000..e7a92443b --- /dev/null +++ b/db/seeds.rb @@ -0,0 +1,31 @@ +# 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) +puts "Destroying Everything!!" +Task.destroy_all + +def random_time + Time.at(rand * Time.now.to_i) +end + +tasks = [ + { name: "The First Task", description: "Wake up" }, + { name: "Go to Brunch", description: "with friends" }, + { name: "Go to Lunch", description: "with family" }, + { name: "Go to Second Lunch", description: "with puppy" }, + { name: "Play Video Games", description: "I will beat my friend" }, + { name: "High Five Somebody You Don't Know", description: "yay~!" }, + { name: "Plant Flowers", description: "beautiful!" }, + { name: "Call Mom", description: "I love my mom" }, + { name: "She worries, you know.", description: "I am fine!" }, + { name: "Nap.", description: "relax!" } +] + +puts "Creating Tasks" +tasks.each do |task| + Task.create task +end 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..a620698ce --- /dev/null +++ b/log/development.log @@ -0,0 +1,3688 @@ +Started GET "/books" for ::1 at 2017-03-20 14:31:33 -0700 + +ActionController::RoutingError (No route matches [GET] "/books"): + +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/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.1ms) + Rendered collection of /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [1 times] (1.2ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (6.1ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (9.6ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (99.7ms) +Started GET "/" for ::1 at 2017-03-20 14:31:49 -0700 +Processing by Rails::WelcomeController#index as HTML + Parameters: {"internal"=>true} + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb (2.8ms) +Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.0ms) + + +Started GET "/" for ::1 at 2017-03-20 14:43:27 -0700 +Processing by Rails::WelcomeController#index as HTML + Parameters: {"internal"=>true} + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb (3.0ms) +Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-20 14:45:47 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 370ms (Views: 367.8ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-20 14:47:37 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (155.2ms) +Completed 500 Internal Server Error in 162ms (ActiveRecord: 0.0ms) + + + +ActionView::Template::Error (undefined local variable or method `book' for #<#:0x007fa4c1f16ae0>): + 4: + 5:
    + 6: <% @tasks.each do |task| %> + 7:
  • <%= book[:title] %>
  • + 8: <% end %> + 9:
+ 10: + +app/views/tasks/index.html.erb:7:in `block in _app_views_tasks_index_html_erb__2402915882818923584_70172819432860' +app/views/tasks/index.html.erb:6:in `each' +app/views/tasks/index.html.erb:6:in `_app_views_tasks_index_html_erb__2402915882818923584_70172819432860' + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.9ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.6ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (63.9ms) +Started GET "/tasks" for ::1 at 2017-03-20 14:48:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 16ms (Views: 14.5ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-20 14:52:56 -0700 +Processing by TasksController#index as HTML +Completed 500 Internal Server Error in 107ms (ActiveRecord: 0.0ms) + + + +NameError (undefined local variable or method `random_time' for #): + +app/controllers/tasks_controller.rb:3:in `index' + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (2.5ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.0ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.5ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (88.1ms) +Started GET "/tasks" for ::1 at 2017-03-20 14:54:06 -0700 +Processing by TasksController#index as HTML +Completed 500 Internal Server Error in 97ms (ActiveRecord: 0.0ms) + + + +NameError (undefined local variable or method `random_time' for #): + +app/controllers/tasks_controller.rb:3:in `index' + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (5.0ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (110.6ms) +Started GET "/tasks" for ::1 at 2017-03-20 14:54:34 -0700 +Processing by TasksController#index as HTML +Completed 500 Internal Server Error in 95ms (ActiveRecord: 0.0ms) + + + +NameError (undefined local variable or method `random_time' for #): + +app/controllers/tasks_controller.rb:3:in `index' + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (2.8ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.2ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.6ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (102.6ms) +Started GET "/tasks" for ::1 at 2017-03-20 14:56:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 20ms (Views: 17.4ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-20 14:57:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.0ms) + + + +ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::Task): + 4:
    + 5: <% @tasks.each do |task| %> + 6:
  • <%= task[:name] %>
  • + 7:
  • <%= Task.create task %>
  • + 8: <% end %> + 9:
+ 10: + +app/views/tasks/index.html.erb:7:in `block in _app_views_tasks_index_html_erb__2402915882818923584_70172802609720' +app/views/tasks/index.html.erb:5:in `each' +app/views/tasks/index.html.erb:5:in `_app_views_tasks_index_html_erb__2402915882818923584_70172802609720' + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.5ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.5ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.5ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/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-20 14:58:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms) + + + +ActionView::Template::Error (undefined method `create' for #): + 4:
    + 5: <% @tasks.each do |task| %> + 6:
  • <%= task[:name] %>
  • + 7:
  • <%= task.create task %>
  • + 8: <% end %> + 9:
+ 10: + +app/views/tasks/index.html.erb:7:in `block in _app_views_tasks_index_html_erb__2402915882818923584_70172859239660' +app/views/tasks/index.html.erb:5:in `each' +app/views/tasks/index.html.erb:5:in `_app_views_tasks_index_html_erb__2402915882818923584_70172859239660' + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (3.9ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.6ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/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-20 14:58:48 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 24ms (Views: 22.2ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-20 14:59:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 22ms (Views: 19.8ms | ActiveRecord: 0.0ms) + + +Started GET "/show" for ::1 at 2017-03-20 15:01:34 -0700 + +ActionController::RoutingError (No route matches [GET] "/show"): + +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/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.9ms) + Rendered collection of /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [2 times] (1.0ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.9ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (77.1ms) +Started GET "/tasks" for ::1 at 2017-03-20 15:02:20 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 20ms (Views: 18.1ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-20 15:02:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 17ms (Views: 15.3ms | ActiveRecord: 0.0ms) + + +Started GET "/show" for ::1 at 2017-03-20 15:02:31 -0700 + +ActionController::RoutingError (No route matches [GET] "/show"): + +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/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.0ms) + Rendered collection of /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [2 times] (1.0ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.9ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (77.8ms) +Started GET "/show" for ::1 at 2017-03-20 15:03:07 -0700 + +ActionController::RoutingError (No route matches [GET] "/show"): + +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/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms) + Rendered collection of /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [2 times] (1.1ms) +Started GET "/show" for ::1 at 2017-03-20 15:03:07 -0700 + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.9ms) + + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb +ActionController::RoutingError (No route matches [GET] "/show"): + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) + + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (80.4ms) +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/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.1ms) + Rendered collection of /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [2 times] (1.0ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.0ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (77.7ms) +Started GET "/tasks/show" for ::1 at 2017-03-20 15:03:16 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"show"} + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 17ms (Views: 15.1ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/index" for ::1 at 2017-03-20 15:03:21 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"index"} + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.3ms) +Completed 200 OK in 17ms (Views: 14.8ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-20 15:03:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 14ms (Views: 12.5ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-20 15:05:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (4.4ms) +Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms) + + + +ActionView::Template::Error (undefined method `values' for # +Did you mean? values_at): + 5: <% @tasks.each do |task| %> + 6:
  • <%= task[:name] %>
  • + 7: <% end %> + 8: <% @tasks.values %> + 9: + 10: + 11: +
    +
    +

    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/seeds.rb b/seeds.rb index de6ef27a7..64a97f645 100644 --- a/seeds.rb +++ b/seeds.rb @@ -2,17 +2,17 @@ def random_time Time.at(rand * Time.now.to_i) end -tasks = [ - { name: "The First Task", description: "", completed_at: random_time }, - { name: "Go to Brunch", description: "" }, - { name: "Go to Lunch", description: "", completed_at: random_time }, - { name: "Go to Second Lunch", description: "" }, - { name: "Play Video Games", description: "", completed_at: random_time }, - { name: "High Five Somebody You Don't Know", description: "", completed_at: random_time }, - { name: "Plant Flowers", description: "", completed_at: random_time }, - { name: "Call Mom", description: "" }, - { name: "She worries, you know.", description: "" }, - { name: "Nap.", description: "", completed_at: random_time } +@tasks = [ + { name: "The First Task", description: "Wake up", completed_at: random_time }, + { name: "Go to Brunch", description: "with friends" }, + { name: "Go to Lunch", description: "with family", completed_at: random_time }, + { name: "Go to Second Lunch", description: "with puppy" }, + { name: "Play Video Games", description: "I will beat my friend", completed_at: random_time }, + { name: "High Five Somebody You Don't Know", description: "yay~!", completed_at: random_time }, + { name: "Plant Flowers", description: "beautiful!", completed_at: random_time }, + { name: "Call Mom", description: "I love my mom" }, + { name: "She worries, you know.", description: "I am fine!" }, + { name: "Nap.", description: "relax!", completed_at: random_time } ] tasks.each do |task| 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..6b6f55454 --- /dev/null +++ b/test/controllers/tasks_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class TasksControllerTest < ActionDispatch::IntegrationTest + # test "the truth" do + # assert true + # end +end diff --git a/test/fixtures/.keep b/test/fixtures/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/fixtures/files/.keep b/test/fixtures/files/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/fixtures/tasks.yml b/test/fixtures/tasks.yml new file mode 100644 index 000000000..1a15e3476 --- /dev/null +++ b/test/fixtures/tasks.yml @@ -0,0 +1,9 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + name: MyString + description: MyString + +two: + name: MyString + description: MyString diff --git a/test/helpers/.keep b/test/helpers/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/integration/.keep b/test/integration/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/mailers/.keep b/test/mailers/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/models/.keep b/test/models/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/models/task_test.rb b/test/models/task_test.rb new file mode 100644 index 000000000..3ca215970 --- /dev/null +++ b/test/models/task_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class TaskTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/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 4061fcfcf953e3d9619d3005c10576502cd9dc5f Mon Sep 17 00:00:00 2001 From: Sofia Kim Date: Thu, 23 Mar 2017 21:45:58 -0700 Subject: [PATCH 2/6] added a button --- app/assets/stylesheets/tasks.css | 8 + app/controllers/tasks_controller.rb | 9 +- app/views/tasks/index.html.erb | 4 +- config/routes.rb | 2 + db/development.sqlite3 | Bin 28672 -> 28672 bytes .../20170322160753_add_pub_date_to_books.rb | 4 + db/schema.rb | 2 +- db/test.sqlite3 | Bin 0 -> 28672 bytes log/development.log | 3340 +++++++++++++++++ 9 files changed, 3363 insertions(+), 6 deletions(-) create mode 100644 db/migrate/20170322160753_add_pub_date_to_books.rb create mode 100644 db/test.sqlite3 diff --git a/app/assets/stylesheets/tasks.css b/app/assets/stylesheets/tasks.css index d9b87aa59..9fe1892b6 100644 --- a/app/assets/stylesheets/tasks.css +++ b/app/assets/stylesheets/tasks.css @@ -13,3 +13,11 @@ h1 { h1 { border: 1px solid red; } + +.task_marked li a { + display: inline-block; +} + +.task_marked li form { + display: inline-block; +} diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index e252cd722..6f20b5b11 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -33,9 +33,9 @@ def edit #link will still go to the show, but need a separate page end def update #patch request doesn't need view only Get request needs view - @task = Task.find(params[:id]) - if @task.update({:name=>params[:task][:name], :description=>params[:task][:description]}) - redirect_to task_path(@task.id) + task = Task.find(params[:id]) + if task.update({:name=>params[:task][:name], :description=>params[:task][:description]}) + redirect_to task_path(task.id) else render :edit #render to edit page end @@ -44,7 +44,8 @@ def update #patch request doesn't need view only Get request needs view def mark_complete @task = Task.find(params[:id]) @task.update({:completed_at=>Time.now}) - redirect_to task_path(@task.id) + # redirect_to task_path(@task.id) + redirect_to tasks_path end end diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb index bc90da9aa..52a56ae88 100644 --- a/app/views/tasks/index.html.erb +++ b/app/views/tasks/index.html.erb @@ -2,10 +2,12 @@ <%= link_to "Create a new task", new_task_path %>
    -
      +
        <% @tasks.each do |task| %>
      • <%= link_to task[:name], task_path(task.id) %> + <%= button_to "completed_at", "/tasks/#{task.id}/mark_complete" %> +
      • <% end %> diff --git a/config/routes.rb b/config/routes.rb index 0c3273a60..539b55c62 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -15,4 +15,6 @@ resources :tasks patch 'tasks/:id/mark_complete', to: 'tasks#mark_complete' + +post 'tasks/:id/mark_complete', to: 'tasks#mark_complete' end diff --git a/db/development.sqlite3 b/db/development.sqlite3 index db51fe24b25be25e708a786fe6cf2b117b90dc87..a6b34d55a58297d628c5b9f4a2aaf860a8eca7aa 100644 GIT binary patch delta 972 zcmZvaJ#5oJ7>3Vw6Q_yoON0PbfM_A1jf&m-wa=E25(KRTYE@WJl%`3BE~rQqQxQu$ zu~HoqBQrlzE5weNSfEHu>Cgp%7`l`df#Xo(SU%})dEWPX@B8ky4wbD#<>|SS4FJ%? zeX_Kjt8~H!_U{eT`UtYdF@R<3i)C6*jAQe|Ua9!l(6*N{vTQLWD;w7H@cd=XYx<@p zuR%u{lk4zSc)o+RLMAMl>la>DW!|hRnq=k`ZM&h!Ipd6?%6a4cdD9>uU)Tr6Be(;z z)+_6_`NMo>UN^oK_QSNdg|&8G2d5|M_4-nG!+E&2-rbxc2zxf7HX)OQ29yO9IUZq@ z-~=H7Lk@Ns7Cb>tJOT^Y01NVUvl7*!0rwq>8RazLxUa~U&B_9sL@Z!DAlUJV%iW}G z5J`pS56Otf&Z2$8Au83VO5`i(YoRc?N(`cyYKH}-kM&z!pgXt+CFRYYf zA>2hCOAU!gH!FX(L|jj?>!s`aq?3`0t6p4>JmRP8`{dr3e6#Ar^h{8me3wDf5xJwu zTzkeIHqE$C-PHOK2|t>Ut@g~Rn1eh}bx^6)Wv6}lX7~&w;3%NN;T&U>K5#~`ApcWF zJub()oj=gbn_-v=4*)!Z2YaR3XDAOYT9>fEyr`(vz8g_Oa5!*I^O3d(U=JRJ+D}mS i=B%@Qty@U8~bf53}JHPI6sh>6j7;Gl`|;$wEpV+&=oGn>rk`}@v!ev_SF<>y!V zdmWJ>j^hM2HlC*Y{kUz2%l;{e;(5*=>gVJ`@@pw2{Scc&{fm`X!S>3CAVi~4{#Inh zzECX8*ySr_ckxmyzUq znXVj`x)4%vm~TiU0Cj*7WM2c4z?OEIY2V3o`IHoOv<(qodQYu*DgQ~%z$5||f)<7f z)F5Oj+2k+tcEEu_1C2x{0twPY$RTnsbk1ar1a zrQ+qi^hT`bBnyI_AjDKmLpMybwooM&R26^?tdUx>QNsu-whCNtDn}p3yXUHQ04dl| zF{*Dzn3=xAu3BU0=6Hv|wY0IE!*)rzRw&xDsde$O9*1ysNETI3(ra2OagIWex@`v! z8SSQDV<_WfU0)@t+fGl)M2PSNji z!>dOaZ|_hwsqT=8BpvG1J$lX55vrTVCFc_KMW^D`>#Dx(Zr0DMIplOFZBF#De`BLR z8i5eh_jkzIxWLh|L?7@}u>S9o$RYWdz@fG2amwP6lgrSkEsbrGqAp;NRaK;E3F#0qSVwYDtFe>XPE^Li zz~k@|OpL7M87iU9NSxCoBqW(&pw<86*mvLgY=1xBa`CH|WiRIRZ9DW?Of8Zll0=?T zN(fQJFD-te5V^U7jcD;A{>Ph$3_#aZZjLCnK|wOpUatjS_FE2ccJI(E&WHTzlF zq57;-bh@UW@b^0Hv9NK>LRvYf(aKS|Ob@Gj`*yWXUpVy*s`pr{%SUI4KqKTV=1rHy zIu-ZlvFG#AVA0?0B+)tj`CUcPUKb_e1xeo43Yef9C%Yz0V;0&9oiRb^Lb1h&#-w>zf&+AfJ(=_ShO8=TM zi%z2cPM#RA_hU)UUQ?%gm725bRL8TV_EGI%uObHRI~6f829ra)-{e*!A<=H~s1bUd zM14HmX#1TOA5Mg1lKl1D$s}aCWQPI)2tWV=5P$##AOHafKmY;|fWU1P!218TzFFi2 z0SG_<0uX=z1Rwwb2tWV=5cn;Stp8>8J5evi4g~@bfB*y_009U<00Izz00bZafg2}~ zljXcwFt!VpX^7)vqnMLM5z{CYwu{zXk(I1o5cNX6ym1NQfgu0^2tWV=5P$##AOHaf zKmY;|xR=UHlgod3C6!+qga+&X8u!P+!UYFay%x$~&-&@il0X?uQ8^8H^@e-N>u iKmY;|fB*y_009U<00Izz00ba#TLiMH)upk&4}Jlw6F{8+ literal 0 HcmV?d00001 diff --git a/log/development.log b/log/development.log index a620698ce..9320bdab7 100644 --- a/log/development.log +++ b/log/development.log @@ -3686,3 +3686,3343 @@ Processing by TasksController#show as HTML Completed 200 OK in 25ms (Views: 22.1ms | ActiveRecord: 0.1ms) + ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" +Migrating to AddPubDateToBooks (20170322160753) +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170322160753"]] +  (0.6ms) 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 +  (0.0ms) commit transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.1ms) 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.0ms) begin transaction +  (0.0ms) commit transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]] +  (0.0ms) begin transaction +  (0.0ms) commit transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +Started GET "/books/new" for ::1 at 2017-03-22 13:43:44 -0700 + ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" + +ActionController::RoutingError (No route matches [GET] "/books/new"): + +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/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.9ms) + Rendered collection of /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [9 times] (10.0ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (11.2ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.7ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (108.0ms) +Started GET "/books" for ::1 at 2017-03-22 13:43:46 -0700 + +ActionController::RoutingError (No route matches [GET] "/books"): + +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/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.0ms) + Rendered collection of /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [9 times] (2.2ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.9ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (73.6ms) +Started GET "/" for ::1 at 2017-03-22 13:43:47 -0700 +Processing by Rails::WelcomeController#index as HTML + Parameters: {"internal"=>true} + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb (2.2ms) +Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 13:43:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Rendered tasks/index.html.erb within layouts/application (5.9ms) +Completed 200 OK in 176ms (Views: 169.5ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-22 13:43:57 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (14.5ms) +Completed 200 OK in 46ms (Views: 43.5ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/28" for ::1 at 2017-03-22 13:44:02 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"28"} + Task Load (0.2ms) 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 (0.8ms) +Completed 200 OK in 20ms (Views: 15.2ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/28/mark_complete" for ::1 at 2017-03-22 13:44:04 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"pP4VjprUUQbF4XNQCuXjOQ8MxMy8Y8tWss6XwXenemr3DIL1BLjIrHDTXQcX+00A/5TAx2EAVPrjyJQj2H8Cyw==", "id"=>"28"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 28], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 20:44:04 UTC], ["updated_at", 2017-03-22 20:44:04 UTC], ["id", 28]] +  (0.6ms) commit transaction +Redirected to http://localhost:3000/tasks/28 +Completed 302 Found in 4ms (ActiveRecord: 1.1ms) + + +Started GET "/tasks/28" for ::1 at 2017-03-22 13:44:04 -0700 +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.3ms) +Completed 200 OK in 32ms (Views: 29.5ms | ActiveRecord: 0.1ms) + + +Started DELETE "/tasks/28" for ::1 at 2017-03-22 13:44:13 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"2vn43kxUFmfbKfzw9JKRRuwu46IllfsSCPN2N73nZ4WJC2+l0jiPzW4b0qfpjD9/HLbnqfj2ZL5Z9XXVEj8fJA==", "id"=>"28"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 28], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.2ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 28]] +  (6.5ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 13:44:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 38ms (Views: 35.3ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 13:44:15 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 34ms (Views: 30.7ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 13:44: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.0ms) +Completed 200 OK in 19ms (Views: 17.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 13:44:27 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 22ms (Views: 18.9ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/29/edit" for ::1 at 2017-03-22 13:44:30 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.7ms) +Completed 200 OK in 21ms (Views: 18.4ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 13:44: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.7ms) +Completed 200 OK in 23ms (Views: 19.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-22 13:44:36 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (1.6ms) +Completed 200 OK in 29ms (Views: 26.3ms | ActiveRecord: 0.0ms) + + +Started GET "/" for ::1 at 2017-03-22 15:19:28 -0700 + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by Rails::WelcomeController#index as HTML + Parameters: {"internal"=>true} +Started GET "/" for ::1 at 2017-03-22 15:19:29 -0700 +Processing by Rails::WelcomeController#index as HTML + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb + Parameters: {"internal"=>true} + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb (4.4ms) +Completed 200 OK in 29ms (Views: 16.6ms | ActiveRecord: 0.0ms) + + + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb (2.9ms) +Completed 200 OK in 11ms (Views: 7.9ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 15:19:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Rendered tasks/index.html.erb within layouts/application (8.0ms) +Completed 200 OK in 177ms (Views: 172.1ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 15:19:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 20ms (Views: 17.6ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 15:19:58 -0700 +Processing by TasksController#index as HTML +Started GET "/tasks/new" for ::1 at 2017-03-22 15:20:08 -0700 + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Rendered tasks/index.html.erb within layouts/application (6.0ms) +Completed 200 OK in 39ms (Views: 32.8ms | ActiveRecord: 0.7ms) + + +Processing by TasksController#new as HTML +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (12.0ms) +Completed 200 OK in 40ms (Views: 29.0ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-22 15:20:12 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (1.8ms) +Completed 200 OK in 22ms (Views: 19.8ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 15:20:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 24ms (Views: 19.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/29/edit" for ::1 at 2017-03-22 15:20:19 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.7ms) +Completed 200 OK in 24ms (Views: 21.0ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/29" for ::1 at 2017-03-22 15:20:24 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"SQ62ajog8UIY/dfPLvhrEJKa7S3qAhi6hJSAnPaQsR7kt9li2oQSyuXMl46mRPexplTmW6KnhD52CI+VHZVYvQ==", "task"=>{"name"=>"Go to Brunch", "description"=>"friends"}, "commit"=>"Update Task", "id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "description" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["description", "friends"], ["updated_at", 2017-03-22 22:20:24 UTC], ["id", 29]] +  (0.7ms) commit transaction +Redirected to http://localhost:3000/tasks/29 +Completed 302 Found in 5ms (ActiveRecord: 1.2ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 15:20:24 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 18ms (Views: 16.0ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 15:20: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.7ms) +Completed 200 OK in 21ms (Views: 18.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/30" for ::1 at 2017-03-22 15:21:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"30"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 30], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 29ms (Views: 23.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/31" for ::1 at 2017-03-22 15:22:40 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"31"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 31], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 21ms (Views: 18.7ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/31/mark_complete" for ::1 at 2017-03-22 15:22:42 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"oR4FKu/ctAjsMoYrcAYptg3kZkiBnzv201KGBMDlGxvy7JJRcbAtolkAqHxtGIeP/XxiQ1z8pFqCVIXmbz1jug==", "id"=>"31"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 31], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 22:22:42 UTC], ["updated_at", 2017-03-22 22:22:42 UTC], ["id", 31]] +  (6.5ms) commit transaction +Redirected to http://localhost:3000/tasks/31 +Completed 302 Found in 10ms (ActiveRecord: 6.9ms) + + +Started GET "/tasks/31" for ::1 at 2017-03-22 15:22:42 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"31"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 31], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 20ms (Views: 17.3ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 15:22: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.7ms) +Completed 200 OK in 28ms (Views: 25.6ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 15:32:25 -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.1ms) SELECT "tasks".* FROM "tasks" +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Rendered tasks/index.html.erb within layouts/application (7.8ms) +Completed 200 OK in 182ms (Views: 170.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-22 15:32:30 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (12.0ms) +Completed 200 OK in 30ms (Views: 27.8ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/30" for ::1 at 2017-03-22 15:32:32 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"30"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 30], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 23ms (Views: 18.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/30/edit" for ::1 at 2017-03-22 15:32:34 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"30"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 30], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.7ms) +Completed 200 OK in 21ms (Views: 18.0ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/30" for ::1 at 2017-03-22 15:32:39 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"3vIH51BQx6BJfpPZx5/GM6viMJdk3EnG7y0aottw5Nii/cQpo5zUKWAcVD7O+VM+q5fwXhx1IEaQ1sY0UCgjbQ==", "task"=>{"name"=>"Go to Lunch", "description"=>"friends"}, "commit"=>"Update Task", "id"=>"30"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 30], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.5ms) UPDATE "tasks" SET "description" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["description", "friends"], ["updated_at", 2017-03-22 22:32:39 UTC], ["id", 30]] +  (0.8ms) commit transaction +Redirected to http://localhost:3000/tasks/30 +Completed 302 Found in 5ms (ActiveRecord: 1.5ms) + + +Started GET "/tasks/30" for ::1 at 2017-03-22 15:32:39 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"30"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 30], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 20ms (Views: 17.3ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/30/mark_complete" for ::1 at 2017-03-22 15:32:41 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"pAU5D6Np2v3s68nIkghJSgYmtbnZD3OdS6KWVcHOKjj39650PQVDV1nZ55+PFudz9r6xsgRs7DEapJW3bhZSmQ==", "id"=>"30"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 30], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 22:32:41 UTC], ["updated_at", 2017-03-22 22:32:41 UTC], ["id", 30]] +  (6.7ms) commit transaction +Redirected to http://localhost:3000/tasks/30 +Completed 302 Found in 10ms (ActiveRecord: 7.1ms) + + +Started GET "/tasks/30" for ::1 at 2017-03-22 15:32:41 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"30"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 30], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 21ms (Views: 18.1ms | ActiveRecord: 0.2ms) + + +Started GET "/" for ::1 at 2017-03-22 15:41:07 -0700 +Processing by Rails::WelcomeController#index as HTML + Parameters: {"internal"=>true} + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb (2.2ms) +Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 15:41: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.7ms) +Completed 200 OK in 19ms (Views: 17.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-22 15:41:23 -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) +Completed 200 OK in 22ms (Views: 19.8ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/36" for ::1 at 2017-03-22 15:41:28 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"36"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 36], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 22ms (Views: 18.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/36/edit" for ::1 at 2017-03-22 15:41:31 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"36"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 36], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.7ms) +Completed 200 OK in 21ms (Views: 18.0ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/36/mark_complete" for ::1 at 2017-03-22 15:41:34 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"6jyW522zEMa2YRAeAvWEYYnzV0CwscO0Qu3M7rEVJy65zgGc89+JbANTPkkf6ypYeWtTS23SXBgT688MHs1fjw==", "id"=>"36"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 36], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 22:41:34 UTC], ["updated_at", 2017-03-22 22:41:34 UTC], ["id", 36]] +  (6.4ms) commit transaction +Redirected to http://localhost:3000/tasks/36 +Completed 302 Found in 9ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks/36" for ::1 at 2017-03-22 15:41:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"36"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 36], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 21ms (Views: 18.2ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 15:41: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.1ms) +Completed 200 OK in 21ms (Views: 19.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/36" for ::1 at 2017-03-22 15:43:09 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"36"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 36], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 23ms (Views: 18.9ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/36/mark_complete" for ::1 at 2017-03-22 15:43:11 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"I+FlXBaq0T3U/dGGgIZNU1sDobYrmBTblGTe7FeEvPxwE/IniMZIl2HP/9GdmONqq5ulvfb7i3fFYt0O+FzEXQ==", "id"=>"36"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 36], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 22:43:11 UTC], ["updated_at", 2017-03-22 22:43:11 UTC], ["id", 36]] +  (6.4ms) commit transaction +Redirected to http://localhost:3000/tasks/36 +Completed 302 Found in 10ms (ActiveRecord: 6.9ms) + + +Started GET "/tasks/36" for ::1 at 2017-03-22 15:43:11 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"36"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 36], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 29ms (Views: 26.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 15:46: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.8ms) +Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms) + + + +SyntaxError (/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:9: syntax error, unexpected ')', expecting keyword_then or ';' or '\n' +ppend=( if task.completed_at );@output_buffer.safe_append=' + ^ +/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:11: syntax error, unexpected keyword_end, expecting ')' +'.freeze; end + ^ +/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:14: syntax error, unexpected keyword_end, expecting ')' +'.freeze; end + ^ +/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:18: syntax error, unexpected keyword_ensure, expecting ')' + ensure + ^ +/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:20: syntax error, unexpected keyword_end, expecting ')' + end + ^): + +app/views/tasks/index.html.erb:9: syntax error, unexpected ')', expecting keyword_then or ';' or '\n' +app/views/tasks/index.html.erb:11: syntax error, unexpected keyword_end, expecting ')' +app/views/tasks/index.html.erb:14: syntax error, unexpected keyword_end, expecting ')' +app/views/tasks/index.html.erb:18: syntax error, unexpected keyword_ensure, expecting ')' +app/views/tasks/index.html.erb:20: syntax error, unexpected keyword_end, expecting ')' + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.3ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.5ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (59.7ms) +Started GET "/tasks" for ::1 at 2017-03-22 15:46:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms) + + + +SyntaxError (/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:9: syntax error, unexpected ')', expecting keyword_then or ';' or '\n' +ppend=( if task.completed_at );@output_buffer.safe_append=' + ^ +/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:11: syntax error, unexpected keyword_end, expecting ')' +'.freeze; end + ^ +/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:14: syntax error, unexpected keyword_end, expecting ')' +'.freeze; end + ^ +/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:18: syntax error, unexpected keyword_ensure, expecting ')' + ensure + ^ +/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:20: syntax error, unexpected keyword_end, expecting ')' + end + ^): + +app/views/tasks/index.html.erb:9: syntax error, unexpected ')', expecting keyword_then or ';' or '\n' +app/views/tasks/index.html.erb:11: syntax error, unexpected keyword_end, expecting ')' +app/views/tasks/index.html.erb:14: syntax error, unexpected keyword_end, expecting ')' +app/views/tasks/index.html.erb:18: syntax error, unexpected keyword_ensure, expecting ')' +app/views/tasks/index.html.erb:20: syntax error, unexpected keyword_end, expecting ')' + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.0ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (6.3ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.5ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (62.8ms) +Started GET "/tasks" for ::1 at 2017-03-22 15:47:57 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms) + + + +SyntaxError (/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:9: syntax error, unexpected ')', expecting keyword_then or ';' or '\n' +( if !task.completed_at.nil? );@output_buffer.safe_append=' + ^ +/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:11: syntax error, unexpected keyword_end, expecting ')' +'.freeze; end + ^ +/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:14: syntax error, unexpected keyword_end, expecting ')' +'.freeze; end + ^ +/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:18: syntax error, unexpected keyword_ensure, expecting ')' + ensure + ^ +/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:20: syntax error, unexpected keyword_end, expecting ')' + end + ^): + +app/views/tasks/index.html.erb:9: syntax error, unexpected ')', expecting keyword_then or ';' or '\n' +app/views/tasks/index.html.erb:11: syntax error, unexpected keyword_end, expecting ')' +app/views/tasks/index.html.erb:14: syntax error, unexpected keyword_end, expecting ')' +app/views/tasks/index.html.erb:18: syntax error, unexpected keyword_ensure, expecting ')' +app/views/tasks/index.html.erb:20: syntax error, unexpected keyword_end, expecting ')' + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (8.0ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.5ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (59.6ms) +Started GET "/tasks" for ::1 at 2017-03-22 15:48:00 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms) + + + +SyntaxError (/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:9: syntax error, unexpected ')', expecting keyword_then or ';' or '\n' +( if !task.completed_at.nil? );@output_buffer.safe_append=' + ^ +/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:11: syntax error, unexpected keyword_end, expecting ')' +'.freeze; end + ^ +/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:14: syntax error, unexpected keyword_end, expecting ')' +'.freeze; end + ^ +/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:18: syntax error, unexpected keyword_ensure, expecting ')' + ensure + ^ +/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:20: syntax error, unexpected keyword_end, expecting ')' + end + ^): + +app/views/tasks/index.html.erb:9: syntax error, unexpected ')', expecting keyword_then or ';' or '\n' +app/views/tasks/index.html.erb:11: syntax error, unexpected keyword_end, expecting ')' +app/views/tasks/index.html.erb:14: syntax error, unexpected keyword_end, expecting ')' +app/views/tasks/index.html.erb:18: syntax error, unexpected keyword_ensure, expecting ')' +app/views/tasks/index.html.erb:20: syntax error, unexpected keyword_end, expecting ')' + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (9.7ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.6ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (66.4ms) +Started GET "/tasks" for ::1 at 2017-03-22 15:48: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.6ms) +Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms) + + + +SyntaxError (/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:9: syntax error, unexpected ')', expecting keyword_then or ';' or '\n' +=( if task.completed_at.nil? );@output_buffer.safe_append=' + ^ +/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:11: syntax error, unexpected keyword_end, expecting ')' +'.freeze; end + ^ +/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:14: syntax error, unexpected keyword_end, expecting ')' +'.freeze; end + ^ +/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:18: syntax error, unexpected keyword_ensure, expecting ')' + ensure + ^ +/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:20: syntax error, unexpected keyword_end, expecting ')' + end + ^): + +app/views/tasks/index.html.erb:9: syntax error, unexpected ')', expecting keyword_then or ';' or '\n' +app/views/tasks/index.html.erb:11: syntax error, unexpected keyword_end, expecting ')' +app/views/tasks/index.html.erb:14: syntax error, unexpected keyword_end, expecting ')' +app/views/tasks/index.html.erb:18: syntax error, unexpected keyword_ensure, expecting ')' +app/views/tasks/index.html.erb:20: syntax error, unexpected keyword_end, expecting ')' + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (3.5ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.6ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (60.1ms) +Started GET "/tasks" for ::1 at 2017-03-22 15:50:06 -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 19ms (Views: 17.0ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/32" for ::1 at 2017-03-22 15:50:12 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"32"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 32], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 22ms (Views: 19.0ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/32/mark_complete" for ::1 at 2017-03-22 15:50:14 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"Qc4YJAgy2n4HWnrIw4/PFjlDiI0FIvnWKAxMDs3Yfx4SPI9fll5D1LJoVJ/ekWEvyduMhthBZnp5Ck/sYgAHvw==", "id"=>"32"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 32], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.2ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 22:50:14 UTC], ["updated_at", 2017-03-22 22:50:14 UTC], ["id", 32]] +  (6.4ms) commit transaction +Redirected to http://localhost:3000/tasks/32 +Completed 302 Found in 10ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks/32" for ::1 at 2017-03-22 15:50:14 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"32"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 32], ["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: 17.5ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/32" for ::1 at 2017-03-22 15:50:28 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"32"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 32], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 19ms (Views: 16.5ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 15:50: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.2ms) +Completed 200 OK in 23ms (Views: 20.6ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 15:50:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 20ms (Views: 18.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 15:50:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 25ms (Views: 23.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 15:50:36 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["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.4ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/29/mark_complete" for ::1 at 2017-03-22 15:50:38 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"2la+fBCgu/2vnl9w13sWibgV+rFZ3SXR3U7h+QP7Fv2JpCkHjswiVxqscSfKZbiwSI3+uoS+un2MSOIbrCNuXA==", "id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 22:50:38 UTC], ["updated_at", 2017-03-22 22:50:38 UTC], ["id", 29]] +  (6.3ms) commit transaction +Redirected to http://localhost:3000/tasks/29 +Completed 302 Found in 10ms (ActiveRecord: 6.7ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 15:50:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["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: 17.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 15:50: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 (2.5ms) +Completed 200 OK in 22ms (Views: 19.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/33" for ::1 at 2017-03-22 15:50:43 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"33"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 33], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 22ms (Views: 18.7ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/33/mark_complete" for ::1 at 2017-03-22 15:50:44 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"z6y7E2bwXQuwc35HdjRt3a/cvhwrQw6h58umBs/z+8GcXixo+JzEoQVBUBBrKsPkX0S6F/YgkQ22zaXkYCuDYA==", "id"=>"33"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 33], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.2ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 22:50:44 UTC], ["updated_at", 2017-03-22 22:50:44 UTC], ["id", 33]] +  (6.6ms) commit transaction +Redirected to http://localhost:3000/tasks/33 +Completed 302 Found in 10ms (ActiveRecord: 7.0ms) + + +Started GET "/tasks/33" for ::1 at 2017-03-22 15:50:44 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"33"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 33], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 19ms (Views: 16.5ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/33" for ::1 at 2017-03-22 15:51:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"33"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 33], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 19ms (Views: 17.1ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 15:51: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.3ms) +Completed 200 OK in 22ms (Views: 20.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 15:51:21 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 26ms (Views: 23.5ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/29/mark_complete" for ::1 at 2017-03-22 15:51:22 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"xOfjbafgEtfRVi18E0Fx8vZtaaSTlSgWZ23Fhu/xGC6XFXQWOYyLfWRkAysOX9/LBvVtr072t7o2a8ZkQClgjw==", "id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 22:51:22 UTC], ["updated_at", 2017-03-22 22:51:22 UTC], ["id", 29]] +  (6.5ms) commit transaction +Redirected to http://localhost:3000/tasks/29 +Completed 302 Found in 10ms (ActiveRecord: 6.9ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 15:51:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 18ms (Views: 16.2ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 15:51:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 22ms (Views: 19.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/30" for ::1 at 2017-03-22 15:51:28 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"30"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 30], ["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.3ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/30" for ::1 at 2017-03-22 16:03:20 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"30"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 30], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 18ms (Views: 15.8ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 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.2ms) +Completed 200 OK in 21ms (Views: 19.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:05:03 -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.3ms) +Completed 200 OK in 20ms (Views: 18.6ms | ActiveRecord: 0.1ms) + + +Started POST "/tasks" for ::1 at 2017-03-22 16:05:06 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"IjsQ1O/tLdNak1mS3h4ZHTdShJqYKzP12rlfx33OikZxyYevcYG0ee+hd8XDALckx8qAkUVIrFmLv1wl0hby5w=="} +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + + + +NoMethodError (undefined method `[]' for nil:NilClass): + +app/controllers/tasks_controller.rb:17:in `create' + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (3.1ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.6ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (58.5ms) +Started GET "/tasks/29" for ::1 at 2017-03-22 16:05:41 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 22ms (Views: 19.2ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/29/mark_complete" for ::1 at 2017-03-22 16:05:42 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"hd73X0yxHS9qNNHWmv81p1B9qOfD17LiH0YX6h2k713WLGAk0t2Ehd8G/4GH4ZueoOWs7B60LU5OQBQIsnyX/A==", "id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.2ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:05:42 UTC], ["updated_at", 2017-03-22 23:05:42 UTC], ["id", 29]] +  (6.7ms) commit transaction +Redirected to http://localhost:3000/tasks/29 +Completed 302 Found in 10ms (ActiveRecord: 7.1ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 16:05:42 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 22ms (Views: 19.0ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:05: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 (3.6ms) +Completed 200 OK in 24ms (Views: 22.0ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks" for ::1 at 2017-03-22 16:05:46 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"vGKOjSl9ZEny/olBgEOcNhgBd0nU3x+OE73zGIANulxeuUw02bW+usoIKUvTWzZWD73INkmh0/jQhZ5gg4y7QQ=="} +Can't verify CSRF token authenticity. +Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms) + + + +ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken): + +actionpack (5.0.2) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' +actionpack (5.0.2) lib/action_controller/metal/request_forgery_protection.rb:223:in `handle_unverified_request' +actionpack (5.0.2) lib/action_controller/metal/request_forgery_protection.rb:218:in `verify_authenticity_token' +activesupport (5.0.2) lib/active_support/callbacks.rb:382:in `block in make_lambda' +activesupport (5.0.2) lib/active_support/callbacks.rb:169:in `block (2 levels) in halting' +actionpack (5.0.2) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in ' +activesupport (5.0.2) lib/active_support/callbacks.rb:170:in `block in halting' +activesupport (5.0.2) lib/active_support/callbacks.rb:454:in `block in call' +activesupport (5.0.2) lib/active_support/callbacks.rb:454:in `each' +activesupport (5.0.2) lib/active_support/callbacks.rb:454: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: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/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (2.8ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.2ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (59.4ms) +Started GET "/tasks/29" for ::1 at 2017-03-22 16:05:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 20ms (Views: 17.6ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/29/mark_complete" for ::1 at 2017-03-22 16:05:53 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"GHA2Bg4OX9Tgpwq5BhjAJLc1ImvZHSy5BxQr8nYCac1LgqF9kGLGflWVJO4bBm4dR60mYAR+sxVWEigQ2doRbA==", "id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:05:53 UTC], ["updated_at", 2017-03-22 23:05:53 UTC], ["id", 29]] +  (6.2ms) commit transaction +Redirected to http://localhost:3000/tasks/29 +Completed 302 Found in 10ms (ActiveRecord: 6.7ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 16:05:53 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["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.5ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:08:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 22ms (Views: 19.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:11:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.0ms) + + + +SyntaxError (/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:8: syntax error, unexpected '(', expecting ')' +_path, method: :mark_complete(task.id) );@output_buffer.safe + ^ +/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:8: syntax error, unexpected ')', expecting keyword_end +hod: :mark_complete(task.id) );@output_buffer.safe_append=' + ^ +/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:18: syntax error, unexpected keyword_ensure, expecting end-of-input + ensure + ^): + +app/views/tasks/index.html.erb:8: syntax error, unexpected '(', expecting ')' +app/views/tasks/index.html.erb:8: syntax error, unexpected ')', expecting keyword_end +app/views/tasks/index.html.erb:18: syntax error, unexpected keyword_ensure, expecting end-of-input + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.3ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.6ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (59.7ms) +Started GET "/tasks" for ::1 at 2017-03-22 16:15:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Rendered tasks/index.html.erb within layouts/application (6.7ms) +Completed 200 OK in 28ms (Views: 21.6ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 16:15:32 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["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: 16.7ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/29/mark_complete" for ::1 at 2017-03-22 16:15:34 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"vHA/kYOb3Cn2qPMdqECLsOhnodwm7ULCUVa2v/pA9XbvgqjqHfdFg0Oa3Uq1XiWJGP+l1/uO3W4AULVdVZiN1w==", "id"=>"29"} +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + + + +ArgumentError (wrong number of arguments (given 0, expected 1)): + +app/controllers/tasks_controller.rb:44:in `mark_complete' + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (2.5ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.2ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (60.1ms) +Started PATCH "/tasks/29/mark_complete" for ::1 at 2017-03-22 16:15:45 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"vHA/kYOb3Cn2qPMdqECLsOhnodwm7ULCUVa2v/pA9XbvgqjqHfdFg0Oa3Uq1XiWJGP+l1/uO3W4AULVdVZiN1w==", "id"=>"29"} +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.2ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:15:45 UTC], ["updated_at", 2017-03-22 23:15:45 UTC], ["id", 29]] +  (6.2ms) commit transaction +Redirected to http://localhost:3000/tasks/29 +Completed 302 Found in 22ms (ActiveRecord: 7.1ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 16:15:45 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 20ms (Views: 17.9ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/29/mark_complete" for ::1 at 2017-03-22 16:15:46 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"g2/8HZp3mINQEmRbI9J+gY5jcHvxTRl8fiHvAeipfGvQnWtmBBsBKeUgSgw+zNC4fvt0cCwuhtAvJ+zjR3EEyg==", "id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (1.7ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:15:46 UTC], ["updated_at", 2017-03-22 23:15:46 UTC], ["id", 29]] +  (6.3ms) commit transaction +Redirected to http://localhost:3000/tasks/29 +Completed 302 Found in 12ms (ActiveRecord: 8.2ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 16:15:46 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 21ms (Views: 17.9ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/29/mark_complete" for ::1 at 2017-03-22 16:15:48 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"8bASdX6XSLHYjpTHRCMa0qKPkFJTDyw7+FFw8R35xciiQoUO4PvRG228upBZPbTrUheUWY5ss5epV3MTsiG9aQ==", "id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.2ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:15:48 UTC], ["updated_at", 2017-03-22 23:15:48 UTC], ["id", 29]] +  (6.5ms) commit transaction +Redirected to http://localhost:3000/tasks/29 +Completed 302 Found in 10ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 16:15:48 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["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: 18.3ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/29/mark_complete" for ::1 at 2017-03-22 16:15:49 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"W8FPgnqNrbcDxEk3Cf4QfXwfeguLoE1Z33EpEwUZaeYIM9j55OE0Hbb2Z2AU4L5EjId+AFbD0vWOdyrxqsERRw==", "id"=>"29"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:15:49 UTC], ["updated_at", 2017-03-22 23:15:49 UTC], ["id", 29]] +  (6.3ms) commit transaction +Redirected to http://localhost:3000/tasks/29 +Completed 302 Found in 10ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 16:15:49 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 21ms (Views: 18.2ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:15:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 23ms (Views: 21.1ms | ActiveRecord: 0.2ms) + + +Started GET "/" for ::1 at 2017-03-22 16:15:58 -0700 +Processing by Rails::WelcomeController#index as HTML + Parameters: {"internal"=>true} + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb (2.1ms) +Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:16: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.2ms) +Completed 200 OK in 20ms (Views: 18.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 16:16:30 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (6.8ms) +Completed 200 OK in 26ms (Views: 22.6ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/29/mark_complete" for ::1 at 2017-03-22 16:16:31 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"ee0s+YM2amujCtPFdCz8xD52XEgRPYxSUTBEKw/K8QMqH7uCHVrzwRY4/ZJpMlL9zu5YQ8xeE/4ANkfJoBKJog==", "id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:16:31 UTC], ["updated_at", 2017-03-22 23:16:31 UTC], ["id", 29]] +  (6.4ms) commit transaction +Redirected to http://localhost:3000/tasks/29 +Completed 302 Found in 10ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 16:16:31 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 22ms (Views: 19.3ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:16:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 21ms (Views: 19.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/36" for ::1 at 2017-03-22 16:16:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"36"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 36], ["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: 17.3ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/37" for ::1 at 2017-03-22 16:16:40 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"37"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 37], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 23ms (Views: 19.9ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/37/mark_complete" for ::1 at 2017-03-22 16:16:41 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"1ytVnBnC0ZufTtKm6sS+sJM4bmirPA5UbMQhlnevd/aE2cLnh65IMSp8/PH32hCJY6BqY3Zfkfg9wiJ02HcPVw==", "id"=>"37"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 37], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.2ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:16:41 UTC], ["updated_at", 2017-03-22 23:16:41 UTC], ["id", 37]] +  (6.3ms) commit transaction +Redirected to http://localhost:3000/tasks/37 +Completed 302 Found in 9ms (ActiveRecord: 6.7ms) + + +Started GET "/tasks/37" for ::1 at 2017-03-22 16:16:41 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"37"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 37], ["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.6ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:16: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.4ms) +Completed 200 OK in 23ms (Views: 20.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:23:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (5.3ms) +Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms) + + + +SyntaxError (/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:9: syntax error, unexpected '<', expecting ')' + <%= link_to task[:name], task_p + ^ +/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:15: syntax error, unexpected keyword_end, expecting ')' +'.freeze; end + ^ +/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:19: syntax error, unexpected keyword_ensure, expecting ')' + ensure + ^ +/Users/sofia/Desktop/ada/week7/TaskList/app/views/tasks/index.html.erb:21: syntax error, unexpected keyword_end, expecting ')' + end + ^): + +app/views/tasks/index.html.erb:9: syntax error, unexpected '<', expecting ')' +app/views/tasks/index.html.erb:15: syntax error, unexpected keyword_end, expecting ')' +app/views/tasks/index.html.erb:19: syntax error, unexpected keyword_ensure, expecting ')' +app/views/tasks/index.html.erb:21: syntax error, unexpected keyword_end, expecting ')' + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.5ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (7.7ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (66.2ms) +Started GET "/tasks" for ::1 at 2017-03-22 16:23: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 (5.0ms) +Completed 200 OK in 21ms (Views: 19.5ms | ActiveRecord: 0.1ms) + + +Started POST "/tasks/29/mark_complete" for ::1 at 2017-03-22 16:23:42 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks/29/mark_complete"): + +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/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.1ms) + Rendered collection of /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [9 times] (2.4ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.3ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (79.1ms) +Started POST "/tasks/30/mark_complete" for ::1 at 2017-03-22 16:23:46 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks/30/mark_complete"): + +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/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.1ms) + Rendered collection of /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [9 times] (2.2ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.0ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (81.7ms) +Started POST "/tasks/30/mark_complete" for ::1 at 2017-03-22 16:24:26 -0700 + +ArgumentError (Missing :controller key on routes definition, please check your routes.): + +config/routes.rb:17:in `block in ' +config/routes.rb:1:in `' + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (2.7ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.4ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (61.8ms) +Started GET "/tasks" for ::1 at 2017-03-22 16:24:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Rendered tasks/index.html.erb within layouts/application (6.9ms) +Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.5ms) + + + +ActionView::Template::Error (No route matches {:action=>"mark_complete", :controller=>"tasks", :id=>29}): + 5:
          + 6: <% @tasks.each do |task| %> + 7:
        • + 8: <%= button_to "completed_at", {:controller => "tasks", :action => "mark_complete", :id => task.id } %> + 9: <%= link_to task[:name], task_path(task.id) %> + 10: <% unless task.completed_at.nil? %> + 11: x + +app/views/tasks/index.html.erb:8:in `block in _app_views_tasks_index_html_erb___2313161071385913223_70253254518620' +app/views/tasks/index.html.erb:6:in `_app_views_tasks_index_html_erb___2313161071385913223_70253254518620' + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (3.9ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.6ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (57.8ms) +Started GET "/" for ::1 at 2017-03-22 16:24:39 -0700 + +ActionController::RoutingError (No route matches [GET] "/"): + +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/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.8ms) + Rendered collection of /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [8 times] (1.8ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.1ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (75.1ms) +Started GET "/tasks" for ::1 at 2017-03-22 16:24:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (No route matches {:action=>"mark_complete", :controller=>"tasks", :id=>29}): + 5:
            + 6: <% @tasks.each do |task| %> + 7:
          • + 8: <%= button_to "completed_at", {:controller => "tasks", :action => "mark_complete", :id => task.id } %> + 9: <%= link_to task[:name], task_path(task.id) %> + 10: <% unless task.completed_at.nil? %> + 11: x + +app/views/tasks/index.html.erb:8:in `block in _app_views_tasks_index_html_erb___2313161071385913223_70253255210280' +app/views/tasks/index.html.erb:6:in `_app_views_tasks_index_html_erb___2313161071385913223_70253255210280' + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.8ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (5.8ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (61.9ms) +Started GET "/tasks" for ::1 at 2017-03-22 16:24:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Rendered tasks/index.html.erb within layouts/application (9.1ms) +Completed 200 OK in 29ms (Views: 23.1ms | ActiveRecord: 0.7ms) + + +Started POST "/tasks/29/mark_complete" for ::1 at 2017-03-22 16:24:57 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks/29/mark_complete"): + +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/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.4ms) + Rendered collection of /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [9 times] (1.9ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.8ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (73.5ms) +Started GET "/tasks" for ::1 at 2017-03-22 16:25:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Rendered tasks/index.html.erb within layouts/application (10.2ms) +Completed 200 OK in 30ms (Views: 24.6ms | ActiveRecord: 0.8ms) + + +Started POST "/tasks/29/mark_complete" for ::1 at 2017-03-22 16:25:24 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"u7r0/Q3+oyF3eTXeY9WPSM2VnzI3PY2ZV07aIEANeRHoSGOGk5I6i8JLG4l+yyFxPQ2bOepeEjUGSNnC79UBsA==", "id"=>"29"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:25:24 UTC], ["updated_at", 2017-03-22 23:25:24 UTC], ["id", 29]] +  (6.2ms) commit transaction +Redirected to http://localhost:3000/tasks/29 +Completed 302 Found in 11ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 16:25:24 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 28ms (Views: 26.0ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 16:25:29 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 22ms (Views: 19.4ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/29/mark_complete" for ::1 at 2017-03-22 16:25:30 -0700 + +ActionController::RoutingError (No route matches [PATCH] "/tasks/29/mark_complete"): + +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/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) + Rendered collection of /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [9 times] (2.0ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.8ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (73.6ms) +Started GET "/tasks" for ::1 at 2017-03-22 16:25: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 (3.5ms) +Completed 200 OK in 18ms (Views: 16.4ms | ActiveRecord: 0.1ms) + + +Started POST "/tasks/33/mark_complete" for ::1 at 2017-03-22 16:25:55 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"Lu3zXwKWQvXBI9NXX2wiOqyZn2GGPTqgS7jzlfYV1Qx9H2QknPrbX3QR/QBCcowDXAGbaltepQwavvB3Wc2trQ==", "id"=>"33"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 33], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.5ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:25:55 UTC], ["updated_at", 2017-03-22 23:25:55 UTC], ["id", 33]] +  (6.4ms) commit transaction +Redirected to http://localhost:3000/tasks/33 +Completed 302 Found in 11ms (ActiveRecord: 7.2ms) + + +Started GET "/tasks/33" for ::1 at 2017-03-22 16:25:55 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"33"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 33], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 22ms (Views: 19.5ms | ActiveRecord: 0.1ms) + + +Started POST "/tasks/34/mark_complete" for ::1 at 2017-03-22 16:26:02 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"Lu3zXwKWQvXBI9NXX2wiOqyZn2GGPTqgS7jzlfYV1Qx9H2QknPrbX3QR/QBCcowDXAGbaltepQwavvB3Wc2trQ==", "id"=>"34"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 34], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.2ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:26:02 UTC], ["updated_at", 2017-03-22 23:26:02 UTC], ["id", 34]] +  (6.6ms) commit transaction +Redirected to http://localhost:3000/tasks/34 +Completed 302 Found in 10ms (ActiveRecord: 6.9ms) + + +Started GET "/tasks/34" for ::1 at 2017-03-22 16:26:02 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"34"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 34], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 23ms (Views: 20.5ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:26: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 (4.9ms) +Completed 200 OK in 25ms (Views: 22.5ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/36/mark_complete" for ::1 at 2017-03-22 16:26:17 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"sZ0YVFtxlrOhMZ//OuMVKqRe5jwc7Nmd0eAzuxvy1DXOaisWPDjsjqnMLyc++VBJAMBFqxdGmorZse4+InV8QQ==", "id"=>"36"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 36], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (1.9ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:26:17 UTC], ["updated_at", 2017-03-22 23:26:17 UTC], ["id", 36]] +  (6.3ms) commit transaction +Redirected to http://localhost:3000/tasks/36 +Completed 302 Found in 12ms (ActiveRecord: 8.4ms) + + +Started GET "/tasks/36" for ::1 at 2017-03-22 16:26:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"36"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 36], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 21ms (Views: 18.9ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:26:24 -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 25ms (Views: 22.8ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/29/mark_complete" for ::1 at 2017-03-22 16:26:29 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"elyvmaoqDTwpoor0yGH9G3tCadj3WW9Vyb/aA4WDc44smsx8tqbUuj/bwAJsmYCnncnhq5R7kwGokEYIoq6WSA==", "id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.2ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:26:29 UTC], ["updated_at", 2017-03-22 23:26:29 UTC], ["id", 29]] +  (6.3ms) commit transaction +Redirected to http://localhost:3000/tasks/29 +Completed 302 Found in 9ms (ActiveRecord: 6.6ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 16:26:29 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 20ms (Views: 18.4ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/29/mark_complete" for ::1 at 2017-03-22 16:26:30 -0700 + +ActionController::RoutingError (No route matches [PATCH] "/tasks/29/mark_complete"): + +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/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.9ms) + Rendered collection of /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [9 times] (2.3ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.8ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (74.2ms) +Started GET "/tasks" for ::1 at 2017-03-22 16:26:37 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.7ms) +Completed 200 OK in 30ms (Views: 28.1ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/29/mark_complete" for ::1 at 2017-03-22 16:26:44 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"8A4kSWJHCVr6R4HXo/2Uae7Z8liofCyMkRFOicu1ZRymyEesfsvQ3Ow+yyEHBenVCFJ6K8te0NjwPtKC7JiA2g==", "id"=>"29"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:26:44 UTC], ["updated_at", 2017-03-22 23:26:44 UTC], ["id", 29]] +  (6.2ms) commit transaction +Redirected to http://localhost:3000/tasks/29 +Completed 302 Found in 10ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 16:26:44 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 22ms (Views: 18.4ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/29/mark_complete" for ::1 at 2017-03-22 16:26:54 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"7gtukJ5Z3B4SnMXM3V/VW4Ty4k3yWmiOim3LqVzmhHm9+fnrADVFtKeu65vAQXtidGrmRi859yLba8hL8z782A==", "id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.2ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:26:54 UTC], ["updated_at", 2017-03-22 23:26:54 UTC], ["id", 29]] +  (6.3ms) commit transaction +Redirected to http://localhost:3000/tasks/29 +Completed 302 Found in 10ms (ActiveRecord: 6.7ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 16:26:54 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 21ms (Views: 18.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 16:27:12 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 20ms (Views: 17.2ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/29/mark_complete" for ::1 at 2017-03-22 16:27:17 -0700 + +ActionController::RoutingError (No route matches [PATCH] "/tasks/29/mark_complete"): + +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/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms) + Rendered collection of /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [9 times] (1.9ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.8ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (76.6ms) +Started PATCH "/tasks/29/mark_complete" for ::1 at 2017-03-22 16:27:54 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"fEWsfW0GrTPWsWbsFQHKTaKXYskv5upRRZoFZ0wrp4cvtzsG82o0mWODSLsIH2R0Ug9mwvKFdf0UnAaF4/PfJg==", "id"=>"29"} +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:27:54 UTC], ["updated_at", 2017-03-22 23:27:54 UTC], ["id", 29]] +  (6.3ms) commit transaction +Redirected to http://localhost:3000/tasks/29 +Completed 302 Found in 24ms (ActiveRecord: 7.3ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 16:27:54 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["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.8ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/29/mark_complete" for ::1 at 2017-03-22 16:27:55 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"AABIntijEkg+gW5otyNLni9zIlzq+3FOf/RSBzCNQdNT8t/lRs+L4ouzQD+qPeWn3+smVzeY7uIu8lHln1U5cg==", "id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:27:55 UTC], ["updated_at", 2017-03-22 23:27:55 UTC], ["id", 29]] +  (6.8ms) commit transaction +Redirected to http://localhost:3000/tasks/29 +Completed 302 Found in 11ms (ActiveRecord: 7.4ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 16:27:55 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 21ms (Views: 17.9ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/29/mark_complete" for ::1 at 2017-03-22 16:27:56 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"bA69toWCIi6ofXPpuyyJn+IZWhJO/LKMxzhrKlA8kZw//CrNG+67hB1PXb6mMiemEoFeGZOfLSCWPmjI/+TpPQ==", "id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:27:56 UTC], ["updated_at", 2017-03-22 23:27:56 UTC], ["id", 29]] +  (6.4ms) commit transaction +Redirected to http://localhost:3000/tasks/29 +Completed 302 Found in 9ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 16:27:56 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 22ms (Views: 19.5ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/29/mark_complete" for ::1 at 2017-03-22 16:27:57 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"U2D/Rm9IGJgyTL4ts5ILhKl1gptwyJL5VjvSZ1tR6/sAkmg98SSBMod+kHqujKW9We2GkK2rDVUHPdGF9ImTWg==", "id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:27:57 UTC], ["updated_at", 2017-03-22 23:27:57 UTC], ["id", 29]] +  (6.2ms) commit transaction +Redirected to http://localhost:3000/tasks/29 +Completed 302 Found in 9ms (ActiveRecord: 6.6ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 16:27:57 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 22ms (Views: 19.0ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/29/mark_complete" for ::1 at 2017-03-22 16:27:58 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"UFuUdSN75l0EOJpjUwIRpwuoVuGqz5XskEg1TmP83zkDqQMOvRd/97EKtDROHL+e+zBS6nesCkDBTjaszCSnmA==", "id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:27:58 UTC], ["updated_at", 2017-03-22 23:27:58 UTC], ["id", 29]] +  (6.3ms) commit transaction +Redirected to http://localhost:3000/tasks/29 +Completed 302 Found in 10ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 16:27:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 23ms (Views: 20.6ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/29" for ::1 at 2017-03-22 16:28:00 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 29], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 24ms (Views: 22.1ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:28:02 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 25ms (Views: 22.2ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/36/mark_complete" for ::1 at 2017-03-22 16:28:06 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"jz+1r6duO6boOy5VrnSln7eOI8yJJnsAehHGDm4J/sLwyIbtwCdBm+DGno2qbuD8ExCAW4KMOBdyQBuLV45Wtg==", "id"=>"36"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 36], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.2ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:28:06 UTC], ["updated_at", 2017-03-22 23:28:06 UTC], ["id", 36]] +  (6.7ms) commit transaction +Redirected to http://localhost:3000/tasks/36 +Completed 302 Found in 10ms (ActiveRecord: 7.1ms) + + +Started GET "/tasks/36" for ::1 at 2017-03-22 16:28:06 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"36"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 36], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 20ms (Views: 17.9ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/36/mark_complete" for ::1 at 2017-03-22 16:28:09 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"sRr+HeTHb1SNQU8t0zW9dvQw7KLtmCaOWyWzoVIAP0Pi6Glmeqv2/jhzYXrOKxNPBKjoqTD7uSIKI7BD/dhH4g==", "id"=>"36"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 36], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:28:09 UTC], ["updated_at", 2017-03-22 23:28:09 UTC], ["id", 36]] +  (6.3ms) commit transaction +Redirected to http://localhost:3000/tasks/36 +Completed 302 Found in 10ms (ActiveRecord: 6.9ms) + + +Started GET "/tasks/36" for ::1 at 2017-03-22 16:28:09 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"36"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 36], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 23ms (Views: 19.9ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:28: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 (5.4ms) +Completed 200 OK in 25ms (Views: 22.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:28:46 -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" +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Rendered tasks/index.html.erb within layouts/application (12.5ms) +Completed 200 OK in 183ms (Views: 172.0ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:28:50 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.7ms) +Completed 200 OK in 20ms (Views: 18.6ms | ActiveRecord: 0.3ms) + + +Started GET "/" for ::1 at 2017-03-22 16:29:31 -0700 + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by Rails::WelcomeController#index as HTML + Parameters: {"internal"=>true} + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb (3.4ms) +Completed 200 OK in 18ms (Views: 8.9ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:29:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Rendered tasks/index.html.erb within layouts/application (14.6ms) +Completed 200 OK in 195ms (Views: 189.6ms | ActiveRecord: 0.7ms) + + + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", :environment]] + ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.0ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", :environment]] + ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.0ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", :environment]] +DEPRECATION WARNING: Passing #original_exception is deprecated and has no effect. Exceptions will automatically capture the original exception. (called from load at /Users/sofia/.rvm/rubies/ruby-2.4.0/bin/rake:22) +  (1.0ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" varchar, "completed_at" time, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES (20170322160753) +  (0.1ms) select sqlite_version(*) +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES +(20170321201815); + + +  (0.9ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", 2017-03-22 23:32:40 UTC], ["updated_at", 2017-03-22 23:32:40 UTC]] +  (0.5ms) 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.0ms) begin transaction +  (0.1ms) commit transaction +  (1.0ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" varchar, "completed_at" time, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES (20170322160753) +  (0.1ms) select sqlite_version(*) +  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES +(20170321201815); + + +  (1.2ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ActiveRecord::InternalMetadata Load (0.4ms) 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-22 23:32:40 UTC], ["updated_at", 2017-03-22 23:32:40 UTC]] +  (0.6ms) 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.0ms) begin transaction +  (0.0ms) commit transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The First Task"], ["description", "Wake up"], ["created_at", 2017-03-22 23:32:40 UTC], ["updated_at", 2017-03-22 23:32:40 UTC]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Go to Brunch"], ["description", "with friends"], ["created_at", 2017-03-22 23:32:40 UTC], ["updated_at", 2017-03-22 23:32:40 UTC]] +  (0.6ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Go to Lunch"], ["description", "with family"], ["created_at", 2017-03-22 23:32:40 UTC], ["updated_at", 2017-03-22 23:32:40 UTC]] +  (0.6ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Go to Second Lunch"], ["description", "with puppy"], ["created_at", 2017-03-22 23:32:40 UTC], ["updated_at", 2017-03-22 23:32:40 UTC]] +  (1.2ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Play Video Games"], ["description", "I will beat my friend"], ["created_at", 2017-03-22 23:32:40 UTC], ["updated_at", 2017-03-22 23:32:40 UTC]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction + SQL (1.0ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "High Five Somebody You Don't Know"], ["description", "yay~!"], ["created_at", 2017-03-22 23:32:40 UTC], ["updated_at", 2017-03-22 23:32:40 UTC]] +  (0.7ms) commit transaction +  (0.0ms) begin transaction + SQL (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Plant Flowers"], ["description", "beautiful!"], ["created_at", 2017-03-22 23:32:40 UTC], ["updated_at", 2017-03-22 23:32:40 UTC]] +  (0.8ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Call Mom"], ["description", "I love my mom"], ["created_at", 2017-03-22 23:32:40 UTC], ["updated_at", 2017-03-22 23:32:40 UTC]] +  (0.6ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "She worries, you know."], ["description", "I am fine!"], ["created_at", 2017-03-22 23:32:40 UTC], ["updated_at", 2017-03-22 23:32:40 UTC]] +  (0.6ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Nap."], ["description", "relax!"], ["created_at", 2017-03-22 23:32:40 UTC], ["updated_at", 2017-03-22 23:32:40 UTC]] +  (0.7ms) commit transaction +Started GET "/tasks" for ::1 at 2017-03-22 16:32:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.4ms) + + + +ActionView::Template::Error (SQLite3::IOException: disk I/O error: SELECT "tasks".* FROM "tasks"): + 3: + 4:
            + 5:
              + 6: <% @tasks.each do |task| %> + 7:
            • + 8: <%= button_to "completed_at", {:controller => "tasks", :action => "mark_complete", :id => task.id } %> + 9: <%= link_to task[:name], task_path(task.id) %> + +app/views/tasks/index.html.erb:6:in `_app_views_tasks_index_html_erb__1147871705808655687_70163971458540' + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (14.2ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.5ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.5ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (68.8ms) +Started GET "/" for ::1 at 2017-03-22 16:33:01 -0700 +Processing by Rails::WelcomeController#index as HTML + Parameters: {"internal"=>true} + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb (2.6ms) +Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.0ms) + + +Started GET "/" for ::1 at 2017-03-22 16:33:42 -0700 + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by Rails::WelcomeController#index as HTML + Parameters: {"internal"=>true} + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb (2.9ms) +Completed 200 OK in 15ms (Views: 6.6ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:33:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Rendered tasks/index.html.erb within layouts/application (13.5ms) +Completed 200 OK in 168ms (Views: 163.1ms | ActiveRecord: 0.7ms) + + +Started POST "/tasks/1/mark_complete" for ::1 at 2017-03-22 16:33:49 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"WFHJwKIzOCGjNGGGA3rM7DAtRXLBlv4jhSbYNwCJc8ULo167PF+hixYGT9EeZGLVwLVBeRz1YY/UINvVr1ELZA==", "id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:33:49 UTC], ["updated_at", 2017-03-22 23:33:49 UTC], ["id", 1]] +  (6.2ms) commit transaction +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 11ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-22 16:33:49 -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.1ms) +Completed 200 OK in 20ms (Views: 17.1ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/1/mark_complete" for ::1 at 2017-03-22 16:33:51 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"y2A6fmh2Z51Gg9UYLAIoG9hPp5SYgLNeE203Y5vkedOYkq0F9hr+N/Ox+08xHIYiKNejn0XjLPJCazSBNDwBcg==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:33:51 UTC], ["updated_at", 2017-03-22 23:33:51 UTC], ["id", 1]] +  (6.1ms) commit transaction +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 9ms (ActiveRecord: 6.6ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-22 16:33: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 (1.1ms) +Completed 200 OK in 41ms (Views: 37.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:33:53 -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.8ms) +Completed 200 OK in 26ms (Views: 23.7ms | ActiveRecord: 0.1ms) + + +Started POST "/tasks/1/mark_complete" for ::1 at 2017-03-22 16:33:59 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"7CAZg9Hv+dVb7MRin3XntzS9lRk1mq13zjcyou94pH0nSKDNyqHI0x6sp2h54oaipZjIzCSoyNiOk+OYE7y6Jw==", "id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:33:59 UTC], ["updated_at", 2017-03-22 23:33:59 UTC], ["id", 1]] +  (6.2ms) commit transaction +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 10ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-22 16:33:59 -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.1ms) +Completed 200 OK in 22ms (Views: 20.0ms | ActiveRecord: 0.1ms) + + +Started POST "/tasks/2/mark_complete" for ::1 at 2017-03-22 16:34:02 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"UqsmEfe53416FIVZj3BN4bo9QzyaInc8kIS1j7iwxioBWbFqadVGJ88mqw6SbuPYSqVHN0dB6JDBgrZtF2i+iw==", "id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.2ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:34:02 UTC], ["updated_at", 2017-03-22 23:34:02 UTC], ["id", 2]] +  (6.4ms) commit transaction +Redirected to http://localhost:3000/tasks/2 +Completed 302 Found in 10ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-22 16:34:02 -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.6ms) +Completed 200 OK in 36ms (Views: 32.5ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/2/mark_complete" for ::1 at 2017-03-22 16:34:08 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"Rt1PgSH0MJblrO0Cxy3djG/WKcN+/077Mz9GkQFH614VL9j6v5ipPFCew1XaM3O1n04tyKOc0VdiOUVzrp+T/w==", "id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.2ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:34:08 UTC], ["updated_at", 2017-03-22 23:34:08 UTC], ["id", 2]] +  (6.2ms) commit transaction +Redirected to http://localhost:3000/tasks/2 +Completed 302 Found in 10ms (ActiveRecord: 6.5ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-22 16:34: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 (1.3ms) +Completed 200 OK in 28ms (Views: 25.6ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:34:13 -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 (6.2ms) +Completed 200 OK in 34ms (Views: 31.5ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/10" for ::1 at 2017-03-22 16:34:24 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"10"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 20ms (Views: 17.0ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:34: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.5ms) +Completed 200 OK in 26ms (Views: 23.6ms | ActiveRecord: 0.4ms) + + +Started POST "/tasks/10/mark_complete" for ::1 at 2017-03-22 16:34:30 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"xId2+yoMqTepTQm1RG4SRICVMzqQuv68/+ihQU9FPCXJPu2fAUmZNBDMOMywW4zPvzD2GUcQE+H/SciJaN1Yww==", "id"=>"10"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:34:30 UTC], ["updated_at", 2017-03-22 23:34:30 UTC], ["id", 10]] +  (6.4ms) commit transaction +Redirected to http://localhost:3000/tasks/10 +Completed 302 Found in 10ms (ActiveRecord: 6.9ms) + + +Started GET "/tasks/10" for ::1 at 2017-03-22 16:34:30 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"10"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 22ms (Views: 19.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 16:34: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 (4.7ms) +Completed 200 OK in 25ms (Views: 22.4ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/1/mark_complete" for ::1 at 2017-03-22 16:52:38 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"KzoXEIsjubyPDBYy8RQ2BmHhyyDsKV72S1mBjA3kfMrgUq5ekG2IuspMdTgXg1cT8MSW9f0bO1kL/VC28SBikA==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.2ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:52:38 UTC], ["updated_at", 2017-03-22 23:52:38 UTC], ["id", 1]] +  (6.4ms) commit transaction +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 10ms (ActiveRecord: 6.9ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-22 16:52:38 -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.1ms) +Completed 200 OK in 26ms (Views: 23.6ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/1/mark_complete" for ::1 at 2017-03-22 16:52:43 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"DWnZxQRZN8Om38qQviAad/lvhKpyaJ9cPhXdqk7lL7Fem06+mjWuaRPt5MejPrROCfeAoa8LAPBvE95I4T1XEA==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.2ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-22 23:52:43 UTC], ["updated_at", 2017-03-22 23:52:43 UTC], ["id", 1]] +  (6.3ms) commit transaction +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 10ms (ActiveRecord: 6.7ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-22 16:52:43 -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 21ms (Views: 18.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-22 18:18: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 (4.2ms) +Completed 200 OK in 22ms (Views: 19.8ms | ActiveRecord: 0.1ms) + + +Started POST "/tasks/1/mark_complete" for ::1 at 2017-03-22 18:18:50 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"gQo3tqniatL5S4Wn2WkSxY0lUyJG7Swx45NO6B6mTBLS+KDNN47zeEx5q/DEd7z8fb1XKZuOs52ylU0KsX40sw==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (7.0ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-23 01:18:50 UTC], ["updated_at", 2017-03-23 01:18:50 UTC], ["id", 1]] +  (0.6ms) commit transaction +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 11ms (ActiveRecord: 7.7ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-22 18:18: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 (0.9ms) +Completed 200 OK in 19ms (Views: 17.3ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/1/mark_complete" for ::1 at 2017-03-22 18:18:52 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"rYv64OZFFfW50vzpmxssCYP0d9UVJdZN2gclRhk0BsT+eW2beCmMXwzg0r6GBYIwc2xz3shGSeGLASaktux+ZQ==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-23 01:18:52 UTC], ["updated_at", 2017-03-23 01:18:52 UTC], ["id", 1]] +  (6.2ms) commit transaction +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 9ms (ActiveRecord: 6.6ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-22 18:18:52 -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 22ms (Views: 19.5ms | ActiveRecord: 0.2ms) + + +Started GET "/" for ::1 at 2017-03-23 09:42:29 -0700 + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by Rails::WelcomeController#index as HTML + Parameters: {"internal"=>true} + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb (3.2ms) +Completed 200 OK in 18ms (Views: 8.6ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-23 09:42:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Rendered tasks/index.html.erb within layouts/application (13.7ms) +Completed 200 OK in 176ms (Views: 171.1ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-23 09:42:36 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (16.9ms) +Completed 200 OK in 32ms (Views: 30.1ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-23 09:42:41 -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 37ms (Views: 33.6ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/2/edit" for ::1 at 2017-03-23 09:42:46 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.1ms) +Completed 200 OK in 29ms (Views: 20.6ms | ActiveRecord: 0.2ms) + + +Started GET "/" for ::1 at 2017-03-23 19:33:42 -0700 + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by Rails::WelcomeController#index as HTML + Parameters: {"internal"=>true} + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb (3.6ms) +Completed 200 OK in 19ms (Views: 9.3ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-23 19:33:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Rendered tasks/index.html.erb within layouts/application (11.8ms) +Completed 200 OK in 184ms (Views: 178.8ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2017-03-23 19:39: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 (11.0ms) +Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined method `id' for nil:NilClass): + 5:
                + 6: <% @tasks.each do |task| %> + 7:
              • + 8: <%= button_to "completed_at", "/tasks/#{@task.id}/mark_complete" %> + 9: <%= link_to task[:name], task_path(task.id) %> + 10: <% unless task.completed_at.nil? %> + 11: x + +app/views/tasks/index.html.erb:8:in `block in _app_views_tasks_index_html_erb___4234203741854365567_70162452024720' +app/views/tasks/index.html.erb:6:in `_app_views_tasks_index_html_erb___4234203741854365567_70162452024720' + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (10.2ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (70.8ms) +Started GET "/tasks" for ::1 at 2017-03-23 19:39:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 36ms (Views: 34.2ms | ActiveRecord: 0.1ms) + + +Started POST "/tasks/1/mark_complete" for ::1 at 2017-03-23 19:39:41 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"NbTDSZRyVkJT0I7csO0nJtokZeagzYFL6uPm55J8cUFmRlQyCh7P6ObioIut84kfKrxh7X2uHue75eUFPaQJ4A==", "id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 02:39:41 UTC], ["updated_at", 2017-03-24 02:39:41 UTC], ["id", 1]] +  (0.6ms) commit transaction +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 7ms (ActiveRecord: 1.3ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-23 19:39: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 (0.8ms) +Completed 200 OK in 18ms (Views: 15.1ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/1/mark_complete" for ::1 at 2017-03-23 19:39:43 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"/3VUTSSHWmMAQlAgIc3Vkgf6HdWQ0If86yZ6xQSec1ush8M2uuvDybVwfnc803ur92IZ3k2zGFC6IHknq0YL+g==", "id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.2ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 02:39:43 UTC], ["updated_at", 2017-03-24 02:39:43 UTC], ["id", 1]] +  (0.6ms) commit transaction +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 4ms (ActiveRecord: 1.0ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-23 19:39:43 -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 21ms (Views: 18.7ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-23 19:39: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 (3.3ms) +Completed 200 OK in 24ms (Views: 21.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-23 19:43:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 23ms (Views: 20.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-23 19:45: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 (3.0ms) +Completed 200 OK in 44ms (Views: 42.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-23 19:46: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 (4.6ms) +Completed 200 OK in 29ms (Views: 27.2ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/1/mark_complete" for ::1 at 2017-03-23 19:46:43 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"7YnGT650na7KfmzJ0ykwA7KIjQj0ppD5Ud1qLz8Ol5C+e1E0MBgEBH9MQp7ON546QhCJAynFD1UA22nNkNbvMQ==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 02:46:43 UTC], ["updated_at", 2017-03-24 02:46:43 UTC], ["id", 1]] +  (6.4ms) commit transaction +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 10ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-23 19:46:43 -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 21ms (Views: 18.4ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/1/mark_complete" for ::1 at 2017-03-23 19:46:45 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"UuYfnkHd5wujq7L9fdMpTi8sUGSuePRYY0KfndKr+icBFIjl37F+oRaZnKpgzYd337RUb3Mba/QyRJx/fXOChg==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 02:46:45 UTC], ["updated_at", 2017-03-24 02:46:45 UTC], ["id", 1]] +  (0.7ms) commit transaction +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 4ms (ActiveRecord: 1.1ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-23 19:46:45 -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.1ms) +Completed 200 OK in 21ms (Views: 18.6ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-23 19:46: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.9ms) +Completed 200 OK in 28ms (Views: 25.9ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/1/mark_complete" for ::1 at 2017-03-23 19:46:48 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"3JfaKia2vm0PFMa0XRuVDBAaeDcbTTV9qcOgse0e7RkX/2NkPfiPa0pUpb67jPQZgT8l4gp/UNLpZ3GLEdrzQw==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 02:46:48 UTC], ["updated_at", 2017-03-24 02:46:48 UTC], ["id", 1]] +  (6.3ms) commit transaction +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 10ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-23 19:46:48 -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 21ms (Views: 18.4ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/1/mark_complete" for ::1 at 2017-03-23 19:46:49 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"Wu/qysyPGmNFjbPVEc/XDHoAE2+lSHKfLSL+AGoSb7UJHX2xUuODyfC/nYIM0Xk1ipgXZHgr7TN8JP3ixcoXFA==", "id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.2ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 02:46:49 UTC], ["updated_at", 2017-03-24 02:46:49 UTC], ["id", 1]] +  (6.7ms) commit transaction +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 10ms (ActiveRecord: 7.2ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-23 19:46:49 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 25ms (Views: 20.5ms | ActiveRecord: 0.5ms) + + +Started PATCH "/tasks/1/mark_complete" for ::1 at 2017-03-23 19:46:57 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"8X+Fqy1gI5gNIVbi8oGflpyqqFnG2IHiFiQcWUZQBbqijRLQswy6MrgTeLXvnzGvbDKsUhu7Hk5HIh+76Yh9Gw==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.2ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 02:46:57 UTC], ["updated_at", 2017-03-24 02:46:57 UTC], ["id", 1]] +  (6.3ms) commit transaction +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 9ms (ActiveRecord: 6.6ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-23 19:46: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 (1.2ms) +Completed 200 OK in 23ms (Views: 19.6ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-23 19:47: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 (3.1ms) +Completed 200 OK in 24ms (Views: 21.3ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/1/mark_complete" for ::1 at 2017-03-23 19:47:29 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"bgzlbYNFgKXvvK2EeDUSSGw1jPzoW/Lv8uq699E1WvKlZFwjmAuxo6r8zo6eonNd/RDRKflpl0CyTmvNLfFEqA==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 02:47:29 UTC], ["updated_at", 2017-03-24 02:47:29 UTC], ["id", 1]] +  (6.3ms) commit transaction +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 10ms (ActiveRecord: 6.7ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-23 19:47: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 (1.2ms) +Completed 200 OK in 26ms (Views: 23.1ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/1/mark_complete" for ::1 at 2017-03-23 19:47:34 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"MA0dqyA8ov2I6/LCIQMrpIcY6kcvlfmqlilR+Ys5/cBj/4rQvlA7Vz3Z3JU8HYWdd4DuTPL2ZgbHL1IbJOGFYQ==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 02:47:34 UTC], ["updated_at", 2017-03-24 02:47:34 UTC], ["id", 1]] +  (6.4ms) commit transaction +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 10ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-23 19:47:34 -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 21ms (Views: 18.7ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-23 19:47: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 23ms (Views: 21.1ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/1/mark_complete" for ::1 at 2017-03-23 19:47:56 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"iSZItm2bkt/Mvt6ofABYP9k/xOg0PKSSsXnL/oqunmpCTvH4dtWj2Yn+vaKalzkqSBqZPSUOwT3x3RrEdmqAMA==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 02:47:56 UTC], ["updated_at", 2017-03-24 02:47:56 UTC], ["id", 1]] +  (6.3ms) commit transaction +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 10ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-23 19:47:56 -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.1ms) +Completed 200 OK in 23ms (Views: 20.0ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/1/mark_complete" for ::1 at 2017-03-23 19:48:07 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"2CAN4hWMjtqeCcYcPNGw3WyzE+5fG8wh/XJBSX3v7f6L0pqZi+AXcCs76Eshzx7knCsX5YJ4U42sdEKr0jeVXw==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (1.1ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 02:48:07 UTC], ["updated_at", 2017-03-24 02:48:07 UTC], ["id", 1]] +  (6.3ms) commit transaction +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 11ms (ActiveRecord: 7.6ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-23 19:48: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 (1.2ms) +Completed 200 OK in 23ms (Views: 19.8ms | ActiveRecord: 0.1ms) + + +Started POST "/tasks/1/mark_complete" for ::1 at 2017-03-23 19:48:13 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"2CAN4hWMjtqeCcYcPNGw3WyzE+5fG8wh/XJBSX3v7f6L0pqZi+AXcCs76Eshzx7knCsX5YJ4U42sdEKr0jeVXw==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.2ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 02:48:13 UTC], ["updated_at", 2017-03-24 02:48:13 UTC], ["id", 1]] +  (0.7ms) commit transaction +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 4ms (ActiveRecord: 1.1ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-23 19:48:13 -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 27ms (Views: 23.8ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/1/mark_complete" for ::1 at 2017-03-23 19:48:14 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"EVXnwHL1oqd5mEvRhQdYXoiOAP1hj5OKzhmhFhAlOodCp3C77Jk7DcyqZYaYGfZneBYE9rzsDCafH6L0v/1CJg==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 02:48:14 UTC], ["updated_at", 2017-03-24 02:48:14 UTC], ["id", 1]] +  (6.3ms) commit transaction +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 10ms (ActiveRecord: 6.7ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-23 19:48:14 -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 25ms (Views: 21.2ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/1/mark_complete" for ::1 at 2017-03-23 19:48:20 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"/EGa4JEp7+yiV1r7rqd60rtwc/SqgXIC/ltYpcQuF+uvsw2bD0V2RhdldKyzudTrS+h3/3fi7a6vXVtHa/ZvSg==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 02:48:20 UTC], ["updated_at", 2017-03-24 02:48:20 UTC], ["id", 1]] +  (6.1ms) commit transaction +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 9ms (ActiveRecord: 6.5ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-23 19:48:20 -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.1ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-23 19:48: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 200 OK in 23ms (Views: 20.4ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/1/mark_complete" for ::1 at 2017-03-23 19:48:48 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"4i3zTAIGxp0ed++U4uMCWeQiyGmldDlv416SxydlcLUpRUoCGUj3m1s3jJ4EdGNMdQeVvLRGXMCj+kP926Fu7w==", "id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 02:48:48 UTC], ["updated_at", 2017-03-24 02:48:48 UTC], ["id", 1]] +  (6.3ms) commit transaction +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 11ms (ActiveRecord: 7.1ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-23 19:48:48 -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.1ms) +Completed 200 OK in 29ms (Views: 26.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-23 19:50:26 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Rendered tasks/index.html.erb within layouts/application (8.3ms) +Completed 200 OK in 28ms (Views: 22.5ms | ActiveRecord: 0.7ms) + + +Started POST "/tasks/1/mark_complete" for ::1 at 2017-03-23 19:50:27 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"Bs/kswTWUi+N0kihheOzqV6z0+PDcBCtWz1SGwqSWnTNp139H5hjKciSK6tjdNK8z5aONtJCdQIbmYMh9lZELg==", "id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 02:50:27 UTC], ["updated_at", 2017-03-24 02:50:27 UTC], ["id", 1]] +  (2.5ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 3.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-23 19:50: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 (4.7ms) +Completed 200 OK in 24ms (Views: 21.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-23 19:50: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 (1.0ms) +Completed 200 OK in 21ms (Views: 17.9ms | ActiveRecord: 0.1ms) + + +Started POST "/tasks/1/mark_complete" for ::1 at 2017-03-23 19:50:33 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"SiSpN8rFkvre9apuprF1UpTpKkCr5qOa6hj1I6TE3/kZ1j5MVKkLUGvHhDm7r9trZHEuS3aFPDa7HvbBCxynWA==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 02:50:33 UTC], ["updated_at", 2017-03-24 02:50:33 UTC], ["id", 1]] +  (0.9ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 5ms (ActiveRecord: 1.5ms) + + +Started GET "/tasks" for ::1 at 2017-03-23 19:50:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 29ms (Views: 27.5ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/2/mark_complete" for ::1 at 2017-03-23 19:50:38 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"FpeZuuFqsyv3ORx1wOQdnQM/w5g8gYIZ5+MP43JB0GtFZQ7BfwYqgUILMiLd+rOk86fHk+HiHbW25QwB3Zmoyg==", "id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 02:50:38 UTC], ["updated_at", 2017-03-24 02:50:38 UTC], ["id", 2]] +  (6.4ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks" for ::1 at 2017-03-23 19:50:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 24ms (Views: 21.8ms | ActiveRecord: 0.3ms) + + +Started GET "/" for ::1 at 2017-03-23 21:45:15 -0700 + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by Rails::WelcomeController#index as HTML + Parameters: {"internal"=>true} + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb (2.5ms) +Completed 200 OK in 16ms (Views: 6.3ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-23 21:45:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Rendered tasks/index.html.erb within layouts/application (8.1ms) +Completed 200 OK in 163ms (Views: 158.6ms | ActiveRecord: 0.5ms) + + +Started POST "/tasks/1/mark_complete" for ::1 at 2017-03-23 21:45:21 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"97lqGreLXr7VnPdcpnMcCJ1BzFWp34MNfQapCOlVIqOkS/1hKefHFGCu2Qu7bbIxbdnIXnS8HKEsAKrqRo1aAg==", "id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 04:45:21 UTC], ["updated_at", 2017-03-24 04:45:21 UTC], ["id", 1]] +  (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-23 21:45: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.6ms) +Completed 200 OK in 19ms (Views: 17.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-23 21:45:24 -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 31ms (Views: 28.1ms | ActiveRecord: 0.2ms) + + From 79097d7c22bcf422d5a2e1a53ff7703ed5eafdab Mon Sep 17 00:00:00 2001 From: Sofia Kim Date: Fri, 24 Mar 2017 09:33:28 -0700 Subject: [PATCH 3/6] delete message changed --- app/views/tasks/show.html.erb | 2 +- db/development.sqlite3 | Bin 28672 -> 28672 bytes log/development.log | 360 ++++++++++++++++++++++++++++++++++ 3 files changed, 361 insertions(+), 1 deletion(-) diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb index 1ac86da4f..577ff495b 100644 --- a/app/views/tasks/show.html.erb +++ b/app/views/tasks/show.html.erb @@ -3,7 +3,7 @@ <%= link_to "Back to task list", tasks_path %> -<%= link_to "Delete", task_path(@task.id), method: :delete, data: {confirm: "Really delete the article?"} %> +<%= link_to "Delete", task_path(@task.id), method: :delete, data: {confirm: "Really delete the task?"} %> <%= link_to "Edit", edit_task_path(@task.id) %> diff --git a/db/development.sqlite3 b/db/development.sqlite3 index a6b34d55a58297d628c5b9f4a2aaf860a8eca7aa..affab3a2947958a9260448ff441730a937de013b 100644 GIT binary patch delta 295 zcmZp8z}WDBae_3X`9v9KM)Qpc3;CtFFEVg)M=|hJ@=xSj%jeDef_Dn96L%Dk1dqhV zMmuiyQciXTOGU@YZ)CIuOcV^wtc(q;3=Q-QOf5_dCU1}tQ#La+Gqo@>Ff`XSFxE9f zRbpXa!1I*BeezXl=gAkPWdz}}=6VK(MrKAPlQ+tU%A1)OT9{&*08(RYXl6dSQbv;> zXt9x{m8rR&g^8i1p%GA@sxXq6k*S#(KN~~r=9etrue} + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb (2.8ms) +Completed 200 OK in 17ms (Views: 6.7ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09:28:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Rendered tasks/index.html.erb within layouts/application (9.9ms) +Completed 200 OK in 170ms (Views: 165.3ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-24 09:28:32 -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 22ms (Views: 16.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1/edit" for ::1 at 2017-03-24 09:28:36 -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 (12.7ms) +Completed 200 OK in 53ms (Views: 44.1ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09:28:44 -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.9ms) +Completed 200 OK in 21ms (Views: 19.1ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09: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 (3.3ms) +Completed 200 OK in 23ms (Views: 20.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09:29:45 -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 32ms (Views: 30.0ms | ActiveRecord: 0.1ms) + + +Started POST "/tasks/1/mark_complete" for ::1 at 2017-03-24 09:29:46 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"/x9QiCotfacdPt8DLL4D53kAKAoyEXX2DHz6GuHlt6Gs7cfztEHkDagM8VQxoK3eiZgsAe9y6lpdevn4Tj3PAA==", "id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 16:29:46 UTC], ["updated_at", 2017-03-24 16:29:46 UTC], ["id", 1]] +  (6.2ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 12ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09: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 (5.5ms) +Completed 200 OK in 30ms (Views: 28.1ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/2/mark_complete" for ::1 at 2017-03-24 09:29:47 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"N/RypTDZU+b3n5T/U+fnq+yMDK9QfZ0cnvFG2xcfs6tkBuXerrXKTEKtuqhO+UmSHBQIpI0eArDP90U5uMfLCg==", "id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 16:29:47 UTC], ["updated_at", 2017-03-24 16:29:47 UTC], ["id", 2]] +  (6.5ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 7.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09:29: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 (5.9ms) +Completed 200 OK in 41ms (Views: 38.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-24 09:29:51 -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: 18.6ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/1/mark_complete" for ::1 at 2017-03-24 09:29:52 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"jCq7m542pRz5srrDWgwsDy9OPXp8jDzcATllPCNr02ff2CzgAFo8tkyAlJRHEoI239Y5caHvo3BQP2bejLOrxg==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.5ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 16:29:52 UTC], ["updated_at", 2017-03-24 16:29:52 UTC], ["id", 1]] +  (6.3ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 6.9ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09:29: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 (3.4ms) +Completed 200 OK in 24ms (Views: 21.6ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/1/mark_complete" for ::1 at 2017-03-24 09:29:53 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"YinqulO5O6W0NGyVs+QNUO9IheShPZvxr7xxIuEnWL8x233BzdWiDwEGQsKu+qNpH9CB73xeBF3+unLATv8gHg==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 16:29:53 UTC], ["updated_at", 2017-03-24 16:29:53 UTC], ["id", 1]] +  (6.4ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 11ms (ActiveRecord: 6.9ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09:29: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.8ms) +Completed 200 OK in 29ms (Views: 25.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-24 09:29:55 -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.1ms) +Completed 200 OK in 22ms (Views: 18.8ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/1/mark_complete" for ::1 at 2017-03-24 09:29:56 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"bJpPAntewvt9y7pykffE8lE6T1jEEUG54X/Rh95L4Go/aNh55TJbUcj5lCWM6WrLoaJLUxly3hWwedJlcZOYyw==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 16:29:56 UTC], ["updated_at", 2017-03-24 16:29:56 UTC], ["id", 1]] +  (6.4ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 7.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09:29:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 31ms (Views: 28.7ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/1/mark_complete" for ::1 at 2017-03-24 09:29:57 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"ip6I5VqOIp7wNDMJc6Oi4v+HhyHsp13YaWuqLNvzbS7ZbB+exOK7NEUGHV5uvQzbDx+DKjHEwnQ4banOdCsVjw==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 16:29:57 UTC], ["updated_at", 2017-03-24 16:29:57 UTC], ["id", 1]] +  (6.4ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 6.9ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09:29:57 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 24ms (Views: 21.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-24 09:29:59 -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.1ms) +Completed 200 OK in 22ms (Views: 19.0ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-24 09:30:04 -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.0ms) +Completed 200 OK in 22ms (Views: 18.9ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/9" for ::1 at 2017-03-24 09:30:07 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 23ms (Views: 19.5ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/9/mark_complete" for ::1 at 2017-03-24 09:30:10 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"Sj1P8RcJJ2kLzJY8OgJFqmdd8V9oKUqKFf2uzpRi1IAZz9iKiWW+w77+uGsnHOuTl8X1VLVK1SZE+60sO7qsIQ==", "id"=>"9"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 16:30:10 UTC], ["updated_at", 2017-03-24 16:30:10 UTC], ["id", 9]] +  (6.4ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09:30: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.5ms) +Completed 200 OK in 32ms (Views: 28.4ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/10/mark_complete" for ::1 at 2017-03-24 09:30:12 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"H19EG/WMP7Eh8mE5S7rqIW/zmZNSEutt/mcHzfT4V/FMrdNga+CmG5TAT25WpEQYn2udmI9xdMGvYQQvWyAvUA==", "id"=>"10"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 16:30:12 UTC], ["updated_at", 2017-03-24 16:30:12 UTC], ["id", 10]] +  (6.2ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09:30: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 (4.2ms) +Completed 200 OK in 26ms (Views: 22.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/10" for ::1 at 2017-03-24 09:30:13 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"10"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 23ms (Views: 20.2ms | ActiveRecord: 0.1ms) + + +Started POST "/tasks/10/mark_complete" for ::1 at 2017-03-24 09:30:17 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"Z323z+0BNNqZTij2L2vApFGPxfggL0rC2TzuY8wutnU0jyC0c22tcCx8BqEydW6doRfB8/1M1W6IOu2BY/bO1A==", "id"=>"10"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.2ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 16:30:17 UTC], ["updated_at", 2017-03-24 16:30:17 UTC], ["id", 10]] +  (6.3ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 6.7ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09:30: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 (3.4ms) +Completed 200 OK in 25ms (Views: 22.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/10" for ::1 at 2017-03-24 09:30:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"10"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 21ms (Views: 18.7ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/9" for ::1 at 2017-03-24 09:30:20 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 29ms (Views: 25.7ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/9/edit" for ::1 at 2017-03-24 09:30:22 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"9"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.8ms) +Completed 200 OK in 23ms (Views: 19.5ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/8" for ::1 at 2017-03-24 09:30:28 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"8"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 23ms (Views: 19.7ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/3" for ::1 at 2017-03-24 09:30:55 -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]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 22ms (Views: 19.0ms | ActiveRecord: 0.1ms) + + +Started DELETE "/tasks/3" for ::1 at 2017-03-24 09:31:01 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"kBbnBgJJ4oQgHRCSYOUYG/NH2UJu+xY76nv1TJEk9VjD5HB9nCV7LpUvPsV9+7YiA9/dSbOYiZe7ffauPvyN+Q==", "id"=>"3"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 3]] +  (6.4ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09:31:01 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.8ms) +Completed 200 OK in 28ms (Views: 24.4ms | ActiveRecord: 0.6ms) + + From fee4ebf866eb20e8c7fbc9eb44035b94923a2662 Mon Sep 17 00:00:00 2001 From: Sofia Kim Date: Tue, 28 Mar 2017 14:14:41 -0700 Subject: [PATCH 4/6] render partial added --- Gemfile | 2 + Gemfile.lock | 2 + app/controllers/tasks_controller.rb | 5 +- app/views/tasks/_form.html.erb | 10 + app/views/tasks/edit.html.erb | 5 +- app/views/tasks/new.html.erb | 5 +- db/development.sqlite3 | Bin 28672 -> 28672 bytes log/development.log | 1802 +++++++++++++++++++++++++++ 8 files changed, 1826 insertions(+), 5 deletions(-) create mode 100644 app/views/tasks/_form.html.erb diff --git a/Gemfile b/Gemfile index b5fbf94e0..e5ce2c8b0 100644 --- a/Gemfile +++ b/Gemfile @@ -51,3 +51,5 @@ end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] + +gem 'hirb' diff --git a/Gemfile.lock b/Gemfile.lock index 559a4476d..363dd4211 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -55,6 +55,7 @@ GEM ffi (1.9.18) globalid (0.3.7) activesupport (>= 4.1.0) + hirb (0.7.3) i18n (0.8.1) jbuilder (2.6.3) activesupport (>= 3.0.0, < 5.2) @@ -156,6 +157,7 @@ PLATFORMS DEPENDENCIES byebug coffee-rails (~> 4.2) + hirb jbuilder (~> 2.5) jquery-rails listen (~> 3.0.5) diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index 6f20b5b11..bd00dd835 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -44,8 +44,11 @@ def update #patch request doesn't need view only Get request needs view def mark_complete @task = Task.find(params[:id]) @task.update({:completed_at=>Time.now}) - # redirect_to task_path(@task.id) redirect_to tasks_path + ## redirect_to task_path(@task.id) + + # @tasks = Task.all + # render :index end end diff --git a/app/views/tasks/_form.html.erb b/app/views/tasks/_form.html.erb new file mode 100644 index 000000000..224eab00b --- /dev/null +++ b/app/views/tasks/_form.html.erb @@ -0,0 +1,10 @@ + +<%= form_for @task do |f| %> + +<%= f.label :name %> +<%= f.text_field :name %> +<%= f.label :description %> +<%= f.text_field :description %> +<%= f.submit %> +<% end %> + diff --git a/app/views/tasks/edit.html.erb b/app/views/tasks/edit.html.erb index 79506477b..7c60d634c 100644 --- a/app/views/tasks/edit.html.erb +++ b/app/views/tasks/edit.html.erb @@ -1,8 +1,9 @@ -<%= form_for @task do |f| %> + +<%= render partial: "form", locals: { submit_text: "New"}%> diff --git a/app/views/tasks/new.html.erb b/app/views/tasks/new.html.erb index 79506477b..8cffcd98c 100644 --- a/app/views/tasks/new.html.erb +++ b/app/views/tasks/new.html.erb @@ -1,8 +1,9 @@ -<%= form_for @task do |f| %> + +<%= render partial: "form", locals: { submit_text: "New"} %> diff --git a/db/development.sqlite3 b/db/development.sqlite3 index affab3a2947958a9260448ff441730a937de013b..7bbaecb80434a2a35ce0a381b752b43cc51270a6 100644 GIT binary patch delta 612 zcmaix&uY|A6vl6A?X4s;aS(OrBx!1$jtUdbx&ISTj4ni66x}IxbDt{;4A1&N{8vn?ft&*-0%F({;{`z>>YNzm80msw=!D$7;%JL=zku)yW`u{4ySL<6 zuGsfUqkTqUOu>s;O5$E=AI53RR58d4lo=SEGgZe9}WVvPk#Mh@7b9>JvlXg|OZDgM14hrz_h^*V?!yR_WlmV$vPW2x_4qrh?dmi`Sr{}bH(2go3br~m)} delta 531 zcmZWl&r2IY7@d_QYt3vD5q~wCWMkCOmMrsoW>+X~JqRjBJO&CbMN!dOic)hCJ@--> z1+Vq)!Cw3udhE3)FG8>V3)-28B6t|)ec$)K_a5Kzt#f?qd@DQh)Sq+Y_1gDhIsXg1 z$aetj7EcRTg+=d=cjmpzci(I)}5Md$+>&f5v zL#2l%#X@d7F3`XI>4Jz!6muCWh9gWYcbY00(MKz0<34Z*7owO0@1r`^sH|-wP z?LfDxo@Msiq-$A|v|UXz02_^)YST<$mMO})O*`2`0D!NJ21t_my?(0X!bvjcX~|# diff --git a/log/development.log b/log/development.log index 77045990c..fc34e24a9 100644 --- a/log/development.log +++ b/log/development.log @@ -7386,3 +7386,1805 @@ Processing by TasksController#index as HTML Completed 200 OK in 28ms (Views: 24.4ms | ActiveRecord: 0.6ms) +Started POST "/tasks/1/mark_complete" for ::1 at 2017-03-24 09:40:49 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"9JA5NM1B0ZoBsXK9xR9qOB2YVZSrDRqW8XWKgDCux9KnYq5PUy1IMLSDXOrYAcQB7QBRn3ZuhTqgc4lin3a/cw==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.2ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 16:40:49 UTC], ["updated_at", 2017-03-24 16:40:49 UTC], ["id", 1]] +  (6.4ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09:40:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 29ms (Views: 27.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/9" for ::1 at 2017-03-24 09:40:53 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 21ms (Views: 17.9ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/7" for ::1 at 2017-03-24 09:40:55 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 23ms (Views: 19.7ms | ActiveRecord: 0.1ms) + + +Started POST "/tasks/7/mark_complete" for ::1 at 2017-03-24 09:41:00 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"rW9Z3HGLvUIWV7dVbRmpw54jP1BHQCdF2BlCTqWKuAb+nc6n7+ck6KNlmQJwBwf6brs7W5ojuOmJH0GsClLApw==", "id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] +  (0.2ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 16:41:00 UTC], ["updated_at", 2017-03-24 16:41:00 UTC], ["id", 7]] +  (6.5ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 7.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09:41: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 (3.2ms) +Completed 200 OK in 26ms (Views: 23.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/7" for ::1 at 2017-03-24 09:41:02 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 20ms (Views: 18.0ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09:41: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 (3.6ms) +Completed 200 OK in 25ms (Views: 22.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09:44:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Rendered tasks/index.html.erb within layouts/application (7.2ms) +Completed 200 OK in 26ms (Views: 21.2ms | ActiveRecord: 0.7ms) + + +Started POST "/tasks/10/mark_complete" for ::1 at 2017-03-24 09:44:56 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"xoieGO/mdkPfWf6RiRUa3kg2+g6UbLyDtUjYNMreDOmVegljcYrv6Wpr0MaUC7TnuK7+BUkPIy/kTtvWZQZ0SA==", "id"=>"10"} + 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 22ms (Views: 20.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/10" for ::1 at 2017-03-24 09:44:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"10"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 23ms (Views: 19.6ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/10/mark_complete" for ::1 at 2017-03-24 09:44:59 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"VD52QtcaIMQmcNpXGVqjzhJEpxicliAzW4b8GtonR1UHzOE5SXa5bpNC9AAERA334tyjE0H1v58KgP/4df8/9A==", "id"=>"10"} + 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.7ms) +Completed 200 OK in 20ms (Views: 19.5ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/10/mark_complete" for ::1 at 2017-03-24 09:45:35 -0700 + +ActionController::RoutingError (No route matches [GET] "/tasks/10/mark_complete"): + +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/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.5ms) + Rendered collection of /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [10 times] (14.5ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.5ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (89.8ms) +Started GET "/tasks/10/mark_complete" for ::1 at 2017-03-24 09:45:50 -0700 + +ActionController::RoutingError (No route matches [GET] "/tasks/10/mark_complete"): + +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/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.8ms) + Rendered collection of /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [10 times] (2.1ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.7ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (69.0ms) +Started GET "/tasks/10/mark_complete" for ::1 at 2017-03-24 09:45:54 -0700 + +ActionController::RoutingError (No route matches [GET] "/tasks/10/mark_complete"): + +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/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.9ms) + Rendered collection of /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [10 times] (2.6ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.2ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (79.7ms) +Started GET "/tasks/10" for ::1 at 2017-03-24 09:46:14 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"10"} +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 27ms (Views: 16.2ms | ActiveRecord: 0.8ms) + + +Started PATCH "/tasks/10/mark_complete" for ::1 at 2017-03-24 09:46:15 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"vETHr6x8dV356yU+2KsM0a2NchmHkMbrfrMzXbzTV9rvtlDUMhDs90zZC2nFtaLoXRV2ElrzWUcvtTC/Ewsvew==", "id"=>"10"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 16:46:15 UTC], ["updated_at", 2017-03-24 16:46:15 UTC], ["id", 10]] +  (6.5ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 7.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09:46:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 22ms (Views: 20.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/10" for ::1 at 2017-03-24 09:46:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"10"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 23ms (Views: 20.2ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/10/mark_complete" for ::1 at 2017-03-24 09:46:19 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"dDrdPYPLoKw/bUxSG1GJoLzhwjmLWfiWkv90ycv3HRUnyEpGHac5BopfYgUGTyeZTHnGMlY6ZzrD+XcrZC9ltA==", "id"=>"10"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 16:46:19 UTC], ["updated_at", 2017-03-24 16:46:19 UTC], ["id", 10]] +  (6.3ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09:46: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 (3.0ms) +Completed 200 OK in 26ms (Views: 23.9ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/10/mark_complete" for ::1 at 2017-03-24 09:46:21 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"kWawokF8eOIraVnYhB0eKPht+jW42dNTwnf0To7BCBrClCfZ3xDhSJ5bd4+ZA7ARCPX+PmW6TP+TcfesIRlwuw==", "id"=>"10"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 16:46:21 UTC], ["updated_at", 2017-03-24 16:46:21 UTC], ["id", 10]] +  (6.4ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 12ms (ActiveRecord: 7.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09:46:21 -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 (10.8ms) +Completed 200 OK in 34ms (Views: 30.8ms | ActiveRecord: 0.7ms) + + +Started POST "/tasks/10/mark_complete" for ::1 at 2017-03-24 09:46:22 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"KxcVluOZnoOtTnW4jaFwwpIcL0ofoIQHhNhvr/iwqZR45YLtffUHKRh8W++Qv977YoQrQcLDG6vV3mxNV2jRNQ==", "id"=>"10"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 16:46:22 UTC], ["updated_at", 2017-03-24 16:46:22 UTC], ["id", 10]] +  (6.7ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 11ms (ActiveRecord: 7.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09:46:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 25ms (Views: 22.1ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/10/mark_complete" for ::1 at 2017-03-24 09:46:23 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"Dww7C87l0PvoVi43jMyn/eXoxLLeVqz3e5qviiFhefBc/qxwUIlJUV1kAGCR0gnEFXDAuQM1M1sqnKxojrkBUQ==", "id"=>"10"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 16:46:23 UTC], ["updated_at", 2017-03-24 16:46:23 UTC], ["id", 10]] +  (6.3ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09:46: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 (3.2ms) +Completed 200 OK in 25ms (Views: 22.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/10" for ::1 at 2017-03-24 09:46:25 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"10"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 23ms (Views: 20.1ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09:46: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 (3.8ms) +Completed 200 OK in 30ms (Views: 28.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/8" for ::1 at 2017-03-24 09:46:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"8"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 22ms (Views: 19.4ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/8/mark_complete" for ::1 at 2017-03-24 09:46:53 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"CB4o0aZ4/lBbLiV8Zmeb4nyC/Yu+2UhT8Xf6tWGwsHlb7L+qOBRn+u4cCyt7eTXbjBr5gGO61/+gcflXzmjI2A==", "id"=>"8"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 16:46:53 UTC], ["updated_at", 2017-03-24 16:46:53 UTC], ["id", 8]] +  (6.2ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 6.7ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09:46:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 23ms (Views: 20.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/8" for ::1 at 2017-03-24 09:46:54 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"8"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 20ms (Views: 17.3ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/8/mark_complete" for ::1 at 2017-03-24 09:46:58 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"fzTBzuYjZfwwEXGTftY45awkAEBUPd2nen816vNQohssxla1eE/8VoUjX8RjyJbcXLwES4leQgsreTYIXIjaug==", "id"=>"8"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 16:46:58 UTC], ["updated_at", 2017-03-24 16:46:58 UTC], ["id", 8]] +  (6.4ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 6.9ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09:46:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 25ms (Views: 23.0ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/10/mark_complete" for ::1 at 2017-03-24 09:47:10 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"ZoIxY5YCLb9TvZZGVRwrEAozthtZB31zFxeogQW51Kw1cKYYCG60FeaPuBFIAoUp+quyEIRk4t9GEatjqmGsDQ==", "id"=>"10"} +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.2ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 16:47:10 UTC], ["updated_at", 2017-03-24 16:47:10 UTC], ["id", 10]] +  (6.3ms) commit transaction + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 500 Internal Server Error in 27ms (ActiveRecord: 7.5ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 3: + 4:
                + 5:
                  + 6: <% @tasks.each do |task| %> + 7:
                • + 8: <%= link_to task[:name], task_path(task.id) %> + 9: <%= button_to "completed_at", "/tasks/#{task.id}/mark_complete" %> + +app/views/tasks/index.html.erb:6:in `_app_views_tasks_index_html_erb__3204902789306216316_70171766425600' +app/controllers/tasks_controller.rb:50:in `mark_complete' + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (3.5ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.4ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (59.7ms) +Started POST "/tasks/10/mark_complete" for ::1 at 2017-03-24 09:47:40 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"ZoIxY5YCLb9TvZZGVRwrEAozthtZB31zFxeogQW51Kw1cKYYCG60FeaPuBFIAoUp+quyEIRk4t9GEatjqmGsDQ==", "id"=>"10"} +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.2ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 16:47:40 UTC], ["updated_at", 2017-03-24 16:47:40 UTC], ["id", 10]] +  (6.2ms) commit transaction + 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 38ms (Views: 20.6ms | ActiveRecord: 7.5ms) + + +Started GET "/tasks/9" for ::1 at 2017-03-24 09:47:42 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 29ms (Views: 25.9ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/9/mark_complete" for ::1 at 2017-03-24 09:47:44 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"DJvhUugMj2YyuVFL+L7bm9TzCkAnTABEZ4dl0mWM5I1faXYpdmAWzIeLfxzloHWiJGsOS/ovn+g2gWYwylScLA==", "id"=>"9"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 16:47:44 UTC], ["updated_at", 2017-03-24 16:47:44 UTC], ["id", 9]] +  (6.2ms) commit transaction + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 34ms (Views: 24.1ms | ActiveRecord: 7.2ms) + + +Started GET "/tasks/8" for ::1 at 2017-03-24 09:47:48 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"8"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 34ms (Views: 31.4ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/8/mark_complete" for ::1 at 2017-03-24 09:47:50 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"Saarbgqnoy1KoUvRDlC8sPJf5JrK8BXBB3HJeqWhgNQaVDwVlMs6h/+TZYYTThKJAsfgkReTim1Wd8qYCnn4dQ==", "id"=>"8"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (1.2ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 16:47:50 UTC], ["updated_at", 2017-03-24 16:47:50 UTC], ["id", 8]] +  (6.4ms) commit transaction + 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 46ms (Views: 33.6ms | ActiveRecord: 7.9ms) + + +Started GET "/tasks/6" for ::1 at 2017-03-24 09:47:52 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 37ms (Views: 33.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/6/edit" for ::1 at 2017-03-24 09:47:55 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"6"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.3ms) +Completed 200 OK in 24ms (Views: 21.1ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/6" for ::1 at 2017-03-24 09:47:59 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"8TYhFDzWMet7+k/hCOsF50CfprHNC+UIy8lu7tY4i1w5X4gSlTvGqjm/hRbFLpDLzSbgY7m7CCgK6SU8t29FIw==", "task"=>{"name"=>"High Five Somebody You Don't Know", "description"=>"22"}, "commit"=>"Update Task", "id"=>"6"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.2ms) UPDATE "tasks" SET "description" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["description", "22"], ["updated_at", 2017-03-24 16:47:59 UTC], ["id", 6]] +  (0.6ms) commit transaction +Redirected to http://localhost:3000/tasks/6 +Completed 302 Found in 3ms (ActiveRecord: 0.9ms) + + +Started GET "/tasks/6" for ::1 at 2017-03-24 09:48:00 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 19ms (Views: 17.4ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09:48:02 -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.0ms) +Completed 200 OK in 23ms (Views: 21.4ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/8" for ::1 at 2017-03-24 09:48:04 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"8"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 23ms (Views: 19.3ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/9" for ::1 at 2017-03-24 09:48:08 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 31ms (Views: 28.0ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/4" for ::1 at 2017-03-24 09:48:12 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"4"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 4], ["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.1ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 09:49:23 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Rendered tasks/index.html.erb within layouts/application (7.5ms) +Completed 200 OK in 27ms (Views: 21.7ms | ActiveRecord: 0.8ms) + + +Started POST "/tasks/9/mark_complete" for ::1 at 2017-03-24 09:49:25 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"yg4iW2qOMQ3jr7GoEwP3QAWcLm/0RXYdXgjMnPL5ZkaZ/LUg9OKop1adn/8OHVl59QQqZCkm6bEPDs9+XSEe5w==", "id"=>"9"} + 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 21ms (Views: 20.4ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/9" for ::1 at 2017-03-24 09:49:27 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 22ms (Views: 18.9ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/9/mark_complete" for ::1 at 2017-03-24 09:49:27 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"CWWkCJYRY1M+fyQtCaVutxqkh6aynWhatDM9iObN4aNalzNzCH36+YtNCnoUu8CO6jyDrW/+9/blNT5qSRWZAg==", "id"=>"9"} + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (8.3ms) +Completed 200 OK in 25ms (Views: 24.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/9/mark_complete" for ::1 at 2017-03-24 10:00:53 -0700 + +ActionController::RoutingError (No route matches [GET] "/tasks/9/mark_complete"): + +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/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.9ms) + Rendered collection of /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [10 times] (2.4ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.8ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (74.7ms) +Started GET "/tasks/9" for ::1 at 2017-03-24 10:01:10 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 27ms (Views: 17.2ms | ActiveRecord: 0.7ms) + + +Started PATCH "/tasks/9/mark_complete" for ::1 at 2017-03-24 10:01:12 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"rYyt90j26ezMQTnvqQQtmgrgrkzmQxw33801riDZL0T+fjqM1ppwRnlzF7i0GoOj+niqRzsgg5uOyzZMjwFX5Q==", "id"=>"9"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 17:01:12 UTC], ["updated_at", 2017-03-24 17:01:12 UTC], ["id", 9]] +  (6.4ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 6.9ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 10:01:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 29ms (Views: 26.9ms | ActiveRecord: 0.3ms) + + +Started POST "/tasks/1/mark_complete" for ::1 at 2017-03-24 10:01:14 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"HJwUiVflcneg5u6eX2ZWl1C1lsT1bhITJ1Nmj4ixEHVPboPyyYnr3RXUwMlCePiuoC2SzygNjb92VWVtJ2lo1A==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 17:01:14 UTC], ["updated_at", 2017-03-24 17:01:14 UTC], ["id", 1]] +  (6.3ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 10:01: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.0ms) +Completed 200 OK in 29ms (Views: 25.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-24 10:01:16 -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 21ms (Views: 18.9ms | ActiveRecord: 0.1ms) + + +Started POST "/tasks/1/mark_complete" for ::1 at 2017-03-24 10:01:19 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"pJrH/s03jwvsrDpclxV3GEIZWT/lodF1d/Ly5FcCfrT3aFCFU1sWoVmeFAuKC9khsoFdNDjCTtkm9PEG+NoGFQ==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 17:01:19 UTC], ["updated_at", 2017-03-24 17:01:19 UTC], ["id", 1]] +  (6.3ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 10:01:19 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 26ms (Views: 23.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-24 10:01:20 -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.3ms) +Completed 200 OK in 27ms (Views: 24.6ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/1/mark_complete" for ::1 at 2017-03-24 10:01:24 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"2UCDgTv1YxrC0RVH9NjojNMdBAVN1kaU/8Dz3eaR4AqKshT6pZn6sHfjOxDpxka1I4UADpC12TiuxvA/SUmYqw==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 17:01:24 UTC], ["updated_at", 2017-03-24 17:01:24 UTC], ["id", 1]] +  (6.4ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 6.9ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 10:01:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 25ms (Views: 23.0ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/1/mark_complete" for ::1 at 2017-03-24 10:01:25 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"eVafBP0cZtJLIwO2ADMc6wn0deyM6oRZehw4vs5syIIqpAh/Y3D/eP4RLeEdLbLS+Wxx51GJG/UrGjtcYbSwIw==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 17:01:25 UTC], ["updated_at", 2017-03-24 17:01:25 UTC], ["id", 1]] +  (6.2ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 6.6ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 10:01: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 (2.8ms) +Completed 200 OK in 25ms (Views: 22.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-24 10:01:27 -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.1ms) +Completed 200 OK in 22ms (Views: 19.6ms | ActiveRecord: 0.1ms) + + +Started POST "/tasks/2/mark_complete" for ::1 at 2017-03-24 10:01:31 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"2rnnLiQbpnG8knAhBKz56qe3sipTgcy6Wy9z8/e2ez6JS3BVunc/2wmgXnYZslfTVy+2IY7iUxYKKXARWG4Dnw==", "id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 17:01:31 UTC], ["updated_at", 2017-03-24 17:01:31 UTC], ["id", 2]] +  (6.4ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 11ms (ActiveRecord: 7.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 10:01: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 33ms (Views: 30.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-24 10:01:32 -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.2ms) +Completed 200 OK in 24ms (Views: 21.1ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 10:23:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 20ms (Views: 18.5ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/1/mark_complete" for ::1 at 2017-03-24 10:23:14 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"iuNnep0o1jmfY2Xq1rAJcM9I4ge/pnpuRp032YqnKEvZEfABA0RPkypRS73LrqdJP9DmDGLF5cIXmzQ7JX9Q6g==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 17:23:14 UTC], ["updated_at", 2017-03-24 17:23:14 UTC], ["id", 1]] +  (6.5ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 6.9ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 10:23:14 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 29ms (Views: 25.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-24 10:23: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 (1.0ms) +Completed 200 OK in 23ms (Views: 20.1ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-24 10:23:34 -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 (6.2ms) +Completed 200 OK in 26ms (Views: 23.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1/edit" for ::1 at 2017-03-24 10:23:35 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.4ms) + Rendered tasks/edit.html.erb within layouts/application (6.5ms) +Completed 200 OK in 28ms (Views: 25.2ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-24 10:23:41 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.5ms) + Rendered tasks/new.html.erb within layouts/application (4.7ms) +Completed 200 OK in 26ms (Views: 22.6ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-24 10:23:43 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.3ms) + Rendered tasks/new.html.erb within layouts/application (4.1ms) +Completed 200 OK in 21ms (Views: 19.5ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 10:23:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 29ms (Views: 27.6ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-24 10:26:39 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.3ms) + Rendered tasks/new.html.erb within layouts/application (5.7ms) +Completed 200 OK in 29ms (Views: 26.4ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-24 10:26:45 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.8ms) + Rendered tasks/new.html.erb within layouts/application (5.1ms) +Completed 200 OK in 28ms (Views: 25.2ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-24 10:26:59 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Bgagin3JoRoamwPQKWNW0Q15ibwmG+KxeJ4ZtlaHTh9RLN1McKX/cNJDWZhjOnTyoPHSg9SLgfpi85wpbj9Xmg==", "task"=>{"name"=>"lunch", "description"=>"egg"}, "commit"=>"Create Task"} +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "tasks" ("name", "description", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "lunch"], ["description", "egg"], ["completed_at", 2002-05-07 18:30:16 UTC], ["created_at", 2017-03-24 17:26:59 UTC], ["updated_at", 2017-03-24 17:26:59 UTC]] +  (0.7ms) commit transaction +Redirected to http://localhost:3000/tasks/11 +Completed 302 Found in 5ms (ActiveRecord: 1.1ms) + + +Started GET "/tasks/11" for ::1 at 2017-03-24 10:26:59 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 34ms (Views: 31.1ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/11/edit" for ::1 at 2017-03-24 10:27:18 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"11"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.8ms) + Rendered tasks/edit.html.erb within layouts/application (7.2ms) +Completed 200 OK in 37ms (Views: 34.1ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/11" for ::1 at 2017-03-24 10:27:35 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"QAYNSm6ysUKDwKZs7eUMdWIPS0bzTFVJCXx4OQy16TP5R7gMCtsmRdPzUkk4cSFNzfU09BkAlfkgxz/DUeZIDg==", "task"=>{"name"=>"lunch", "description"=>"two eggs"}, "commit"=>"Update Task", "id"=>"11"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.5ms) UPDATE "tasks" SET "description" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["description", "two eggs"], ["updated_at", 2017-03-24 17:27:35 UTC], ["id", 11]] +  (1.2ms) commit transaction +Redirected to http://localhost:3000/tasks/11 +Completed 302 Found in 14ms (ActiveRecord: 1.8ms) + + +Started GET "/tasks/11" for ::1 at 2017-03-24 10:27:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 22ms (Views: 20.0ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 10:27:37 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 23ms (Views: 20.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/11" for ::1 at 2017-03-24 10:27:39 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 22ms (Views: 19.0ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/11/mark_complete" for ::1 at 2017-03-24 10:27:42 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"/8fpVpFXT5Jw/NoUJlx1u7TRi9LOrrDjm0kN/7fyevCsNX4tDzvWOMXO9EM7QtuCREmP2RPNL0/KTw4dGCoCUQ==", "id"=>"11"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 17:27:42 UTC], ["updated_at", 2017-03-24 17:27:42 UTC], ["id", 11]] +  (6.2ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 6.6ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 10:27:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 25ms (Views: 21.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/11" for ::1 at 2017-03-24 10:27:43 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 29ms (Views: 25.7ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/11/edit" for ::1 at 2017-03-24 10:27:46 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"11"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.8ms) + Rendered tasks/edit.html.erb within layouts/application (5.3ms) +Completed 200 OK in 26ms (Views: 22.9ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/11" for ::1 at 2017-03-24 10:28:13 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Jhr7zPPWpIlswcLe0LyxXyGIYHk120MmKHGwIbRwk1ufW06Kl78zjjzyNvsFKJxnjnIfy9+Xg5YByvfb6SMyZg==", "task"=>{"name"=>"lunch", "description"=>"two eggs"}, "commit"=>"Update Task", "id"=>"11"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]] +  (0.1ms) begin transaction +  (0.0ms) commit transaction +Redirected to http://localhost:3000/tasks/11 +Completed 302 Found in 3ms (ActiveRecord: 0.3ms) + + +Started GET "/tasks/11" for ::1 at 2017-03-24 10:28:13 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 21ms (Views: 18.4ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/11" for ::1 at 2017-03-24 10:28:16 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 22ms (Views: 19.6ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/11" for ::1 at 2017-03-24 10:28:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 19ms (Views: 16.9ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 10:28:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 33ms (Views: 31.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-24 10:29:17 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.6ms) + Rendered tasks/new.html.erb within layouts/application (4.9ms) +Completed 200 OK in 25ms (Views: 22.2ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-24 10:54:46 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.4ms) + Rendered tasks/new.html.erb within layouts/application (4.6ms) +Completed 200 OK in 22ms (Views: 20.0ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 10:54:49 -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.4ms) +Completed 200 OK in 24ms (Views: 22.2ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 13: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 (3.3ms) +Completed 200 OK in 26ms (Views: 24.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-24 13:33: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 (1.1ms) +Completed 200 OK in 25ms (Views: 21.8ms | ActiveRecord: 0.1ms) + + +Started GET "/" for ::1 at 2017-03-24 14:50:56 -0700 +Processing by Rails::WelcomeController#index as HTML + Parameters: {"internal"=>true} + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb (2.1ms) +Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 14:51: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 (2.6ms) +Completed 200 OK in 17ms (Views: 15.3ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/11" for ::1 at 2017-03-24 14:51:06 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 18ms (Views: 15.3ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/11/edit" for ::1 at 2017-03-24 14:51:09 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"11"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.7ms) + Rendered tasks/edit.html.erb within layouts/application (4.4ms) +Completed 200 OK in 28ms (Views: 24.9ms | ActiveRecord: 0.1ms) + + +Started DELETE "/tasks/11" for ::1 at 2017-03-24 14:51:28 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"aWAZxFUFh2mwTT9sg4aQiN2ZwwahNlAUPOc6sqooBI46ko6/y2kewwV/ETuemD6xLQHHDXxVz7ht4TlQBfB8Lw==", "id"=>"11"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 11], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 11]] +  (6.1ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 6.6ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 14:51:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 20ms (Views: 18.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 14:51:35 -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 17ms (Views: 15.8ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-24 14:51: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 (0.8ms) +Completed 200 OK in 19ms (Views: 15.8ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/1/edit" for ::1 at 2017-03-24 14:51: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/_form.html.erb (1.5ms) + Rendered tasks/edit.html.erb within layouts/application (4.3ms) +Completed 200 OK in 26ms (Views: 22.9ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/1" for ::1 at 2017-03-24 14:51:43 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"cShXwf5ljagNTTuVC2SG4FPT8gMJkT81Eny7zkONh6mUX/bhNVV9sfAF3D11z2huW9z+EBuVAkXJx+d9aK68IQ==", "task"=>{"name"=>"The First Task", "description"=>"Wake up late"}, "commit"=>"Update Task", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.2ms) UPDATE "tasks" SET "description" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["description", "Wake up late"], ["updated_at", 2017-03-24 21:51:43 UTC], ["id", 1]] +  (0.9ms) commit transaction +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 4ms (ActiveRecord: 1.3ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-24 14:51:43 -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 25ms (Views: 22.2ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 14:51: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.0ms) +Completed 200 OK in 21ms (Views: 19.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-24 14:51:51 -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.1ms) +Completed 200 OK in 22ms (Views: 18.4ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-24 14:51:55 -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: 17.8ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/4" for ::1 at 2017-03-24 14:51:57 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"4"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 4], ["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: 19.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/5" for ::1 at 2017-03-24 14:52:01 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"5"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (6.5ms) +Completed 200 OK in 27ms (Views: 23.9ms | ActiveRecord: 0.1ms) + + +Started POST "/tasks/5/mark_complete" for ::1 at 2017-03-24 14:52:06 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"aMB+D87lXiKAikLKm6JxR6CRRBw7J1YkYzQ4tuYC4POcYiT5NlBQ9xnUYpc+BHrxvBZz1Eu5G35/f6BxcFjc5Q==", "id"=>"5"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-24 21:52:06 UTC], ["updated_at", 2017-03-24 21:52:06 UTC], ["id", 5]] +  (6.2ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 6.7ms) + + +Started GET "/tasks" for ::1 at 2017-03-24 14:52: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.0ms) +Completed 200 OK in 21ms (Views: 18.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/5" for ::1 at 2017-03-24 14:52:08 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"5"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 22ms (Views: 19.5ms | ActiveRecord: 0.1ms) + + +Started GET "/animals" for ::1 at 2017-03-24 14:58:21 -0700 + ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" + +ActionController::RoutingError (No route matches [GET] "/animals"): + +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/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.0ms) + Rendered collection of /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [10 times] (2.6ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (6.2ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (8.5ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (91.8ms) +Started GET "/" for ::1 at 2017-03-24 14:58:32 -0700 +Processing by Rails::WelcomeController#index as HTML + Parameters: {"internal"=>true} + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb (2.1ms) +Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.0ms) + + +Started GET "/animals" for ::1 at 2017-03-24 14:58:37 -0700 + +ActionController::RoutingError (No route matches [GET] "/animals"): + +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/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.8ms) + Rendered collection of /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [10 times] (2.1ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.7ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (69.6ms) +Started GET "/" for ::1 at 2017-03-24 14:59:19 -0700 +Processing by Rails::WelcomeController#index as HTML + Parameters: {"internal"=>true} + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb (2.4ms) +Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.0ms) + + +Started GET "/animals" for ::1 at 2017-03-24 14:59:22 -0700 + +ActionController::RoutingError (No route matches [GET] "/animals"): + +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/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.0ms) + Rendered collection of /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [10 times] (2.2ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.7ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (76.1ms) +Started GET "/tasks" for ::1 at 2017-03-24 14:59:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Rendered tasks/index.html.erb within layouts/application (6.8ms) +Completed 200 OK in 177ms (Views: 170.8ms | ActiveRecord: 0.5ms) + + + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) +Started GET "/" for ::1 at 2017-03-26 15:31:53 -0700 + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by Rails::WelcomeController#index as HTML + Parameters: {"internal"=>true} + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb (3.7ms) +Completed 200 OK in 19ms (Views: 9.0ms | ActiveRecord: 0.0ms) + + +Started GET "/" for ::1 at 2017-03-26 15:31:53 -0700 +Processing by Rails::WelcomeController#index as HTML + Parameters: {"internal"=>true} + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb (2.3ms) +Completed 200 OK in 8ms (Views: 4.4ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-26 15:31:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Rendered tasks/index.html.erb within layouts/application (10.5ms) +Completed 200 OK in 191ms (Views: 183.7ms | ActiveRecord: 0.5ms) + + +Started GET "/" for ::1 at 2017-03-28 14:08:59 -0700 + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by Rails::WelcomeController#index as HTML + Parameters: {"internal"=>true} + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb (3.1ms) +Completed 200 OK in 19ms (Views: 8.9ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-28 14:09:02 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Rendered tasks/index.html.erb within layouts/application (11.7ms) +Completed 200 OK in 228ms (Views: 220.3ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-28 14:09:06 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Started GET "/tasks/1" for ::1 at 2017-03-28 14:09:06 -0700 +Completed 200 OK in 41ms (Views: 33.8ms | ActiveRecord: 0.2ms) + + +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 17ms (Views: 14.9ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/1/mark_complete" for ::1 at 2017-03-28 14:09:08 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"k18ssD77wDVpEsTt0wSGoWgHUyCU90PjvYcSodjhBXjArbvLoJdZn9wg6rrOGiiYmJ9XK0mU3E/sgRFDdzl92Q==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-28 21:09:08 UTC], ["updated_at", 2017-03-28 21:09:08 UTC], ["id", 1]] +  (1.0ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 5ms (ActiveRecord: 1.5ms) + + +Started GET "/tasks" for ::1 at 2017-03-28 14:09: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.7ms) +Completed 200 OK in 19ms (Views: 17.6ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-28 14:09: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 (1.3ms) +Completed 200 OK in 21ms (Views: 18.2ms | ActiveRecord: 0.1ms) + + +Started POST "/tasks/8/mark_complete" for ::1 at 2017-03-28 14:09:15 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"y8VvDFviVcQwvQGmrteFwex+MiYRPKCzd+H1Z9jMa52YN/h3xY7MboWPL/GzySv4HOY2LcxfPx8m5/aFdxQTPA==", "id"=>"8"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-28 21:09:15 UTC], ["updated_at", 2017-03-28 21:09:15 UTC], ["id", 8]] +  (0.7ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 4ms (ActiveRecord: 1.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-28 14:09:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 22ms (Views: 20.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/8" for ::1 at 2017-03-28 14:09:16 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"8"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 20ms (Views: 17.6ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/10" for ::1 at 2017-03-28 14:09:20 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"10"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 21ms (Views: 18.6ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-28 14:09:23 -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.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-28 14:09:25 -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 22ms (Views: 19.3ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/1" for ::1 at 2017-03-28 14:12:51 -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 23ms (Views: 19.6ms | ActiveRecord: 0.1ms) + + +Started DELETE "/tasks/1" for ::1 at 2017-03-28 14:12:55 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"npfh80PjvI8hbPoVakVORfpUeQcw08ItguPn7zXuwBjNZXaI3Y8lJZRe1EJ3W+B8Csx9DO2wXYHT5eQNmja4uQ==", "id"=>"1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 1]] +  (6.5ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 7.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-28 14:12: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 (3.9ms) +Completed 200 OK in 24ms (Views: 22.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-28 14:12:57 -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 26ms (Views: 23.4ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/2/edit" for ::1 at 2017-03-28 14:12:58 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.5ms) + Rendered tasks/edit.html.erb within layouts/application (25.1ms) +Completed 200 OK in 46ms (Views: 43.2ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/2" for ::1 at 2017-03-28 14:13:06 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"2q02mFFluvxFGnVgS3034NZIN3W9q2c2h4NtHcy4H8d4jW71ckPSZy60f1HchhiYSnqmgwDFqLUsE+HjuR6/WA==", "task"=>{"name"=>"Go to Brunch", "description"=>"with 2 friends"}, "commit"=>"Update Task", "id"=>"2"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "description" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["description", "with 2 friends"], ["updated_at", 2017-03-28 21:13:06 UTC], ["id", 2]] +  (0.6ms) commit transaction +Redirected to http://localhost:3000/tasks/2 +Completed 302 Found in 3ms (ActiveRecord: 1.0ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-28 14:13:06 -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.2ms) +Completed 200 OK in 23ms (Views: 21.1ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-28 14:13:10 -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.6ms) +Completed 200 OK in 21ms (Views: 19.3ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-28 14:13:12 -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 21ms (Views: 17.7ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/4" for ::1 at 2017-03-28 14:13:19 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"4"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 4], ["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: 17.7ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/4" for ::1 at 2017-03-28 14:13:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"4"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 22ms (Views: 18.7ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/4/mark_complete" for ::1 at 2017-03-28 14:13:25 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"o38i/bxRjL+jXgHBeRYiUIZWxC1YTh6REJHr/AasUqvwjbWGIj0VFRZsL5ZkCIxpds7AJoUtgT1Bl+geqXQqCg==", "id"=>"4"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-28 21:13:25 UTC], ["updated_at", 2017-03-28 21:13:25 UTC], ["id", 4]] +  (6.4ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks" for ::1 at 2017-03-28 14:13:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 23ms (Views: 21.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/4" for ::1 at 2017-03-28 14:13:26 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"4"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 21ms (Views: 18.7ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/5" for ::1 at 2017-03-28 14:13:29 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"5"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 20ms (Views: 18.2ms | ActiveRecord: 0.1ms) + + From a2859de0393a6513ce419996f25c0ebf6fb77eab Mon Sep 17 00:00:00 2001 From: Sofia Kim Date: Tue, 28 Mar 2017 14:35:49 -0700 Subject: [PATCH 5/6] strong params added --- app/controllers/tasks_controller.rb | 11 +- app/helpers/tasks_helper.rb | 3 + db/development.sqlite3 | Bin 28672 -> 28672 bytes log/development.log | 473 ++++++++++++++++++++++++++++ 4 files changed, 480 insertions(+), 7 deletions(-) diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index bd00dd835..b40b4f175 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -1,5 +1,5 @@ class TasksController < ApplicationController - + include TasksHelper def index @tasks = Task.all end @@ -14,7 +14,8 @@ def new end def create - @task = Task.new({:name=>params[:task][:name], :description=>params[:task][:description], :completed_at=>Time.at(rand * Time.now.to_i)}) + @task = Task.new(task_params) + # @task = Task.new({:name=>params[:task][:name], :description=>params[:task][:description], :completed_at=>Time.at(rand * Time.now.to_i)}) if @task.save redirect_to task_path(@task.id) else @@ -34,7 +35,7 @@ def edit #link will still go to the show, but need a separate page def update #patch request doesn't need view only Get request needs view task = Task.find(params[:id]) - if task.update({:name=>params[:task][:name], :description=>params[:task][:description]}) + if task.update(task_params) redirect_to task_path(task.id) else render :edit #render to edit page @@ -45,10 +46,6 @@ def mark_complete @task = Task.find(params[:id]) @task.update({:completed_at=>Time.now}) redirect_to tasks_path - ## redirect_to task_path(@task.id) - - # @tasks = Task.all - # render :index end end diff --git a/app/helpers/tasks_helper.rb b/app/helpers/tasks_helper.rb index ce894d00c..242e9f563 100644 --- a/app/helpers/tasks_helper.rb +++ b/app/helpers/tasks_helper.rb @@ -1,2 +1,5 @@ module TasksHelper + def task_params + params.require(:task).permit(:name, :description, :completed_at) + end end diff --git a/db/development.sqlite3 b/db/development.sqlite3 index 7bbaecb80434a2a35ce0a381b752b43cc51270a6..9a6857d88ee9be2c2aae839814f22554ce6018ff 100644 GIT binary patch delta 585 zcmZ{hKT8}z7{+&Fad`i>5Q%?InQ(|$>@YL$%bk(7rBGo%crS6rGxJfiiQV zt*ai;C?Y=LJ`hA%EP@y!95O0-@b+t)h)XO%gp|BbeqSwrbzNTmX%WyLD$d%x4X|bR zGib9I=iPoU)yETZh)IMAx1LZYt@(0yWv&hogTS1Ej6`{~^02qyhmNf-v-!WJJ#EmI z8t5;Liu18;-;?1m)5ElTh}82mdh1}DgaC6MP{H3P_2}-g6 diff --git a/log/development.log b/log/development.log index fc34e24a9..bbdda6603 100644 --- a/log/development.log +++ b/log/development.log @@ -9188,3 +9188,476 @@ Processing by TasksController#show as HTML Completed 200 OK in 20ms (Views: 18.2ms | ActiveRecord: 0.1ms) +Started GET "/tasks" for ::1 at 2017-03-28 14:19:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Rendered tasks/index.html.erb within layouts/application (7.8ms) +Completed 200 OK in 37ms (Views: 29.9ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-28 14:20:00 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.8ms) + Rendered tasks/new.html.erb within layouts/application (5.3ms) +Completed 200 OK in 24ms (Views: 21.7ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-28 14:20:18 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"/PFwqMKMd7GS/67w855UWnYitQlLqhcyI+/QLyJj+8mr2w1uz+Ap21on9Li5x3Z526ruNrk6dHk5glWwGtviTA==", "task"=>{"name"=>"Call friend", "description"=>"say your love them"}, "commit"=>"Create Task"} +Completed 500 Internal Server Error in 119ms (ActiveRecord: 0.0ms) + + + +NameError (undefined local variable or method `task_params' for # +Did you mean? task_path): + +app/controllers/tasks_controller.rb:17:in `create' + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (2.4ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (92.6ms) +Started POST "/tasks" for ::1 at 2017-03-28 14:21:33 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"yM8nXjdqv+Qo7v0VacEwGphMsNpketA1qP5M1awY1hebPbAlqQYmTp3c00J0354jaNS00bkZT5n5+E83A8Cutg==", "task"=>{"name"=>"Call friend", "description"=>"say your love them"}, "commit"=>"Create Task"} +Completed 500 Internal Server Error in 109ms (ActiveRecord: 0.0ms) + + + +NameError (undefined local variable or method `task_params' for # +Did you mean? task_path): + +app/controllers/tasks_controller.rb:17:in `create' + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (3.2ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.8ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (102.9ms) +Started POST "/tasks" for ::1 at 2017-03-28 14:21:48 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"yM8nXjdqv+Qo7v0VacEwGphMsNpketA1qP5M1awY1hebPbAlqQYmTp3c00J0354jaNS00bkZT5n5+E83A8Cutg==", "task"=>{"name"=>"Call friend", "description"=>"say your love them"}, "commit"=>"Create Task"} +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) +  (0.0ms) begin transaction + SQL (0.3ms) INSERT INTO "tasks" ("name", "description", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Call friend"], ["description", "say your love them"], ["completed_at", 1990-04-30 12:56:39 UTC], ["created_at", 2017-03-28 21:21:48 UTC], ["updated_at", 2017-03-28 21:21:48 UTC]] +  (1.0ms) commit transaction +Redirected to http://localhost:3000/tasks/12 +Completed 302 Found in 15ms (ActiveRecord: 2.0ms) + + +Started GET "/tasks/12" for ::1 at 2017-03-28 14:21:48 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"12"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 12], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 21ms (Views: 18.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-28 14:21:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 36ms (Views: 34.0ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/2/mark_complete" for ::1 at 2017-03-28 14:23:09 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"uF2g6KH3XuNK9AIG/F3NFH80dtyADSx+FodVTQbjqvpHgfTi24s6qTJ32SAKj3sufS1toax3J8zC7RgnLBNKFw==", "id"=>"2"} +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-28 21:23:09 UTC], ["updated_at", 2017-03-28 21:23:09 UTC], ["id", 2]] +  (6.3ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 23ms (ActiveRecord: 7.4ms) + + +Started GET "/tasks" for ::1 at 2017-03-28 14:23: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 (3.6ms) +Completed 200 OK in 25ms (Views: 22.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-28 14:23:09 -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.0ms) +Completed 200 OK in 24ms (Views: 21.2ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-28 14:23:11 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.2ms) + Rendered tasks/new.html.erb within layouts/application (6.5ms) +Completed 200 OK in 31ms (Views: 28.4ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-28 14:23:22 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"YLZKDHV7ZRcAsxiKWMxnd8ilKEtIdePUhWt0qE1nnXE3nDfKeBc7fchrQsISlUVUZS1zdLrlgJ+fBvE3dd+E9A==", "task"=>{"name"=>"Apple", "description"=>"pick apples"}, "commit"=>"Create Task"} +Completed 500 Internal Server Error in 115ms (ActiveRecord: 0.0ms) + + + +NameError (undefined local variable or method `task_params' for # +Did you mean? task_path): + +app/controllers/tasks_controller.rb:17:in `create' + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (2.3ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.0ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (85.4ms) + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] +Started POST "/tasks" for ::1 at 2017-03-28 14:31:36 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"YLZKDHV7ZRcAsxiKWMxnd8ilKEtIdePUhWt0qE1nnXE3nDfKeBc7fchrQsISlUVUZS1zdLrlgJ+fBvE3dd+E9A==", "task"=>{"name"=>"Apple", "description"=>"pick apples"}, "commit"=>"Create Task"} +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) +  (0.0ms) begin transaction + SQL (1.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Apple"], ["description", "pick apples"], ["created_at", 2017-03-28 21:31:36 UTC], ["updated_at", 2017-03-28 21:31:36 UTC]] +  (6.2ms) commit transaction +Redirected to http://localhost:3000/tasks/13 +Completed 302 Found in 20ms (ActiveRecord: 8.5ms) + + +Started GET "/tasks/13" for ::1 at 2017-03-28 14:31:36 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"13"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 13], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 19ms (Views: 16.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-28 14:31: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.3ms) +Completed 200 OK in 21ms (Views: 19.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-28 14:31:40 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.3ms) + Rendered tasks/new.html.erb within layouts/application (4.9ms) +Completed 200 OK in 24ms (Views: 22.2ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-28 14:31:50 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"zhs31rAia4omFtG927sq0VFEDpebj+4q2GnSMfYYHQqZMUoQvU414O7Oi/WR4gjy/MxVqGkfjWHCBFeuzqAEjw==", "task"=>{"name"=>"Programming", "description"=>"I can do this!"}, "commit"=>"Create Task"} +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Programming"], ["description", "I can do this!"], ["created_at", 2017-03-28 21:31:50 UTC], ["updated_at", 2017-03-28 21:31:50 UTC]] +  (0.6ms) commit transaction +Redirected to http://localhost:3000/tasks/14 +Completed 302 Found in 3ms (ActiveRecord: 1.0ms) + + +Started GET "/tasks/14" for ::1 at 2017-03-28 14:31:50 -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 (1.1ms) +Completed 200 OK in 20ms (Views: 17.9ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/14/mark_complete" for ::1 at 2017-03-28 14:31:53 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"GM4hmJh9Rn5ivTIlUISt++7JuyPkAqIK1NdyfhVHvTJLPLbjBhHf1NePHHJNmgPCHlG/KDlhPaaF0XGcup/Fkw==", "id"=>"14"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-28 21:31:53 UTC], ["updated_at", 2017-03-28 21:31:53 UTC], ["id", 14]] +  (3.3ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 3.7ms) + + +Started GET "/tasks" for ::1 at 2017-03-28 14:31:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 22ms (Views: 20.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/14" for ::1 at 2017-03-28 14:31:56 -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 (1.4ms) +Completed 200 OK in 22ms (Views: 19.3ms | ActiveRecord: 0.1ms) + + +Started DELETE "/tasks/14" for ::1 at 2017-03-28 14:32:00 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"uS2MWXjRpfoQ9WAFfj3fVg7jjfUyZm6syvZjbFqovu7q3xsi5r08UKXHTlJjI3Fv/nuJ/u8F8QCb8GCO9XDGTw==", "id"=>"14"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 14], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 14]] +  (0.7ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 4ms (ActiveRecord: 1.3ms) + + +Started GET "/tasks" for ::1 at 2017-03-28 14:32: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 (3.2ms) +Completed 200 OK in 24ms (Views: 21.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-28 14:32:06 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.5ms) + Rendered tasks/new.html.erb within layouts/application (4.7ms) +Completed 200 OK in 25ms (Views: 22.7ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-28 14:32:22 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMCo9V8gUrDT2aNcoVFNGuLLf1aXBJ0j/53bFeQodNJ36tUzUkwM2hsB+RTrCG85T0MkaWWU/mjl8F6K3JBtVw==", "task"=>{"name"=>"Clean a house", "description"=>"Cook"}, "commit"=>"Create Task"} +  (0.0ms) begin transaction + SQL (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Clean a house"], ["description", "Cook"], ["created_at", 2017-03-28 21:32:22 UTC], ["updated_at", 2017-03-28 21:32:22 UTC]] +  (0.6ms) commit transaction +Redirected to http://localhost:3000/tasks/15 +Completed 302 Found in 3ms (ActiveRecord: 0.9ms) + + +Started GET "/tasks/15" for ::1 at 2017-03-28 14:32:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"15"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 15], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 23ms (Views: 19.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/15/edit" for ::1 at 2017-03-28 14:32:29 -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]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.4ms) + Rendered tasks/edit.html.erb within layouts/application (5.8ms) +Completed 200 OK in 25ms (Views: 21.8ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/15" for ::1 at 2017-03-28 14:32:31 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"kwcn+aBjKgVd8YAiLC9IVXy8+4sMKmU6DIPktgDK3YT7nS+X8c1zDSPeozuhK49Rtkc5sIxJma2UGwikLzdiTA==", "task"=>{"name"=>"Clean a house", "description"=>"Cook"}, "commit"=>"Update Task", "id"=>"15"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 15], ["LIMIT", 1]] +  (0.1ms) begin transaction +  (0.0ms) commit transaction +Redirected to http://localhost:3000/tasks/15 +Completed 302 Found in 3ms (ActiveRecord: 0.2ms) + + +Started GET "/tasks/15" for ::1 at 2017-03-28 14:32:31 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"15"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 15], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 19ms (Views: 17.3ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/15/mark_complete" for ::1 at 2017-03-28 14:32:32 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"EIn6dpYsJyJfwu0WPexrffF3FQGyalMtIMPspaol4TVDe20NCEC+iOrww0Eg8sVEAe8RCm8JzIFxxe9HBf2ZlA==", "id"=>"15"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 15], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-28 21:32:32 UTC], ["updated_at", 2017-03-28 21:32:32 UTC], ["id", 15]] +  (6.3ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 6.7ms) + + +Started GET "/tasks" for ::1 at 2017-03-28 14:32: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.4ms) +Completed 200 OK in 29ms (Views: 26.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/15" for ::1 at 2017-03-28 14:32:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"15"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 15], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 23ms (Views: 19.9ms | ActiveRecord: 0.1ms) + + +Started DELETE "/tasks/15" for ::1 at 2017-03-28 14:32:40 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"10duI+iMSenv2R7dHuarD897dfxtGT+h7gf2Tp4DeE2EtflYduDQQ1rrMIoD+AU2P+Nx97B6oA2/AfWsMdsA7A==", "id"=>"15"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 15], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 15]] +  (6.6ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 7.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-28 14:32: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.2ms) +Completed 200 OK in 26ms (Views: 23.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-28 14:33:27 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + 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 29ms (Views: 15.2ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/2/edit" for ::1 at 2017-03-28 14:33: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/_form.html.erb (2.5ms) + Rendered tasks/edit.html.erb within layouts/application (6.4ms) +Completed 200 OK in 26ms (Views: 23.1ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/2" for ::1 at 2017-03-28 14:33:35 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"VVe/8GiIWbgXLzhVKdeLwzLf1C1QRli1OA8r8iy7S3H3d+edS64xI3yBMmS+LKS7ru1F2+0olzaTn6cMWR3r7g==", "task"=>{"name"=>"Go to Brunch", "description"=>"diet"}, "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.4ms) UPDATE "tasks" SET "description" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["description", "diet"], ["updated_at", 2017-03-28 21:33:35 UTC], ["id", 2]] +  (0.9ms) commit transaction +Redirected to http://localhost:3000/tasks/2 +Completed 302 Found in 5ms (ActiveRecord: 1.5ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-28 14:33:35 -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.2ms) +Completed 200 OK in 22ms (Views: 19.4ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-28 14:33: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.2ms) +Completed 200 OK in 23ms (Views: 20.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-28 14:33:40 -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.0ms) +Completed 200 OK in 22ms (Views: 19.1ms | ActiveRecord: 0.1ms) + + + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] From dc0519b3f1b7850df0fafbceec0007cb01b6f0ac Mon Sep 17 00:00:00 2001 From: Sofia Kim Date: Thu, 30 Mar 2017 19:50:24 -0700 Subject: [PATCH 6/6] strong params added --- app/controllers/tasks_controller.rb | 1 + db/development.sqlite3 | Bin 28672 -> 28672 bytes log/development.log | 408 ++++++++++++++++++++++++++++ 3 files changed, 409 insertions(+) diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index b40b4f175..71fc21a47 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -37,6 +37,7 @@ def update #patch request doesn't need view only Get request needs view task = Task.find(params[:id]) if task.update(task_params) redirect_to task_path(task.id) + else render :edit #render to edit page end diff --git a/db/development.sqlite3 b/db/development.sqlite3 index 9a6857d88ee9be2c2aae839814f22554ce6018ff..8b368cb510726a73645a18d20258befc0bf636e5 100644 GIT binary patch delta 262 zcmZp8z}WDBae_2s)rOXlU}pRuvAn``q* zDFY@(^U1eljO%j**cnun9UUFZ6H8Ky6bf<@^Gb?KGKx}D6-t0av5|qHxvqh+uCbwl zfsvJo1rX_(n_8GynqbP9=$RRs8JlB~0qe0eH^}B>XRzc2+7_IVs!*O^RHTuaTCAf` znO~}qotIy(2Q$;iLcz$;%GlD%#8A(`%*f2#c(S96=;V{Ke1c#Z6H6-tLp@6aa}!gO P%`ardg%|}E88`p{&wxYl delta 225 zcmZp8z}WDBae_2s;zSu|#>9;YEBM8Dx%f74_wv5xSLWg5E#xWXmgGz3pRuvAn``q* zDFY@(lgYPaj13r6MI9X--SZVn@)ewlO7oI4QZiFZj0_CTbq$PljVu(546Tfetqd&n z3`~p+EsQ5S%806hSVpL7jE${~P4!F+jV&xqOF7vYEEOj=%1WwuDkSDAq-Ex%D#DeU sC>WYs85mj_8tGY>7@HazfsCAdQkG8;MaIO?%zX0;S#cpo{zV2308wi=F#rGn diff --git a/log/development.log b/log/development.log index bbdda6603..11e838dec 100644 --- a/log/development.log +++ b/log/development.log @@ -9661,3 +9661,411 @@ Completed 200 OK in 22ms (Views: 19.1ms | ActiveRecord: 0.1ms) Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] +Started GET "/tasks" for ::1 at 2017-03-28 14:39:07 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Rendered tasks/index.html.erb within layouts/application (8.6ms) +Completed 200 OK in 33ms (Views: 23.8ms | ActiveRecord: 0.7ms) + + +Started POST "/tasks/2/mark_complete" for ::1 at 2017-03-28 14:39:08 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"giGfg0vQPnwAhjqUFoq+8vQD6ri9wmsO7Yma0Q3T/Mt9/cuJMaxaNngF4bLgWAjI9hrxxZG4YLw549e7JyMcJg==", "id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-28 21:39:08 UTC], ["updated_at", 2017-03-28 21:39:08 UTC], ["id", 2]] +  (6.3ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 11ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks" for ::1 at 2017-03-28 14:39: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.9ms) +Completed 200 OK in 23ms (Views: 20.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/2" for ::1 at 2017-03-28 14:39:09 -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 20ms (Views: 17.7ms | ActiveRecord: 0.1ms) + + +Started DELETE "/tasks/2" for ::1 at 2017-03-28 14:39:12 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"DzktypDThIt5tLehtqpAqrv2VWsSytAOv3pibpgSIKxcy7qxDr8dIcyGmfartO6TS25RYM+pT6LufGGMN8pYDQ==", "id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 2]] +  (6.8ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 7.5ms) + + +Started GET "/tasks" for ::1 at 2017-03-28 14:39:12 -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 27ms (Views: 23.0ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/7" for ::1 at 2017-03-28 14:39:13 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 21ms (Views: 18.1ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-28 14:39: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 (3.0ms) +Completed 200 OK in 24ms (Views: 22.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/9" for ::1 at 2017-03-28 14:39:19 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 20ms (Views: 18.2ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/9/mark_complete" for ::1 at 2017-03-28 14:39:20 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"5rOEG3cs1zjYwCGPfXlqds6AglPtubNZEEbCZpCr6H21QRNg6UBOkm3yD9hgZ8RPPhiGWDDaLPVBQMGEP3OQ3A==", "id"=>"9"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.4ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-28 21:39:20 UTC], ["updated_at", 2017-03-28 21:39:20 UTC], ["id", 9]] +  (6.4ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 7.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-28 14:39:20 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 23ms (Views: 20.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/9" for ::1 at 2017-03-28 14:39:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 21ms (Views: 18.1ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/9/mark_complete" for ::1 at 2017-03-28 14:39:24 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"J/bOS+wgnblze9rTprIQfT2N7mgJm5emhs3RRYkDF750BFkwckwEE8ZJ9IS7rL5EzRXqY9T4CArXy9KnJttvHw==", "id"=>"9"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.5ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-28 21:39:24 UTC], ["updated_at", 2017-03-28 21:39:24 UTC], ["id", 9]] +  (6.2ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 11ms (ActiveRecord: 7.0ms) + + +Started GET "/tasks" for ::1 at 2017-03-28 14:39:24 -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 24ms (Views: 21.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/9" for ::1 at 2017-03-28 14:39:25 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 24ms (Views: 20.7ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-28 14:39: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 (3.8ms) +Completed 200 OK in 25ms (Views: 22.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/9" for ::1 at 2017-03-28 14:39:31 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 22ms (Views: 19.0ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/9/edit" for ::1 at 2017-03-28 14:39:33 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"9"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.0ms) + Rendered tasks/edit.html.erb within layouts/application (5.7ms) +Completed 200 OK in 26ms (Views: 23.5ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/9" for ::1 at 2017-03-28 14:39:38 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"rBY3Y5Hxsee3x+v8/d4C3frqLs2qT6i0PJ2Z6+lR830KurzdjKaiLoof/KGbp7HqG7S+ZBDk+y3WECv7MmpnCw==", "task"=>{"name"=>"She worries, you know.", "description"=>"I love her"}, "commit"=>"Update Task", "id"=>"9"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "description" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["description", "I love her"], ["updated_at", 2017-03-28 21:39:38 UTC], ["id", 9]] +  (0.6ms) commit transaction +Redirected to http://localhost:3000/tasks/9 +Completed 302 Found in 4ms (ActiveRecord: 1.0ms) + + +Started GET "/tasks/9" for ::1 at 2017-03-28 14:39:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 29ms (Views: 26.5ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/9/mark_complete" for ::1 at 2017-03-28 14:39:41 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"k6xuUOWe0858jcJkXXtuYkgewe6pQmo5sRxeNNUUOnfAXvkre/JKZMm/7DNAZcBbuIbF5XQh9ZXgGl3WesxC1g==", "id"=>"9"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-28 21:39:41 UTC], ["updated_at", 2017-03-28 21:39:41 UTC], ["id", 9]] +  (6.4ms) commit transaction +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 6.8ms) + + +Started GET "/tasks" for ::1 at 2017-03-28 14:39: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.2ms) +Completed 200 OK in 24ms (Views: 22.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/9" for ::1 at 2017-03-28 14:39:43 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 21ms (Views: 18.4ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-28 14:39: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 (3.3ms) +Completed 200 OK in 25ms (Views: 22.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/9" for ::1 at 2017-03-28 14:39:48 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 22ms (Views: 19.1ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks/9/edit" for ::1 at 2017-03-28 14:45:33 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"9"} +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.3ms) + Rendered tasks/edit.html.erb within layouts/application (4.8ms) +Completed 200 OK in 33ms (Views: 19.5ms | ActiveRecord: 0.8ms) + + +Started PATCH "/tasks/9" for ::1 at 2017-03-28 14:49:01 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"V0jO6tYi+8DJqfG87P7v5PAmW6ncBynXskdWFF5Arwnx5EVUy3XoCfRx5uGKh1zTEXjLAGasek5YyuQEhXs7fw==", "task"=>{"name"=>"She worries, you know.", "description"=>""}, "commit"=>"Update Task", "id"=>"9"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] +  (0.0ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "description" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["description", ""], ["updated_at", 2017-03-28 21:49:01 UTC], ["id", 9]] +  (0.6ms) commit transaction +Redirected to http://localhost:3000/tasks/9 +Completed 500 Internal Server Error in 5ms (ActiveRecord: 1.0ms) + + + +NoMethodError (undefined method `name' for nil:NilClass): + +app/controllers/tasks_controller.rb:41:in `update' + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (3.1ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) + Rendering /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) + Rendered /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (66.7ms) +Started PATCH "/tasks/9" for ::1 at 2017-03-28 14:49:16 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"V0jO6tYi+8DJqfG87P7v5PAmW6ncBynXskdWFF5Arwnx5EVUy3XoCfRx5uGKh1zTEXjLAGasek5YyuQEhXs7fw==", "task"=>{"name"=>"She worries, you know.", "description"=>""}, "commit"=>"Update Task", "id"=>"9"} +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] +  (0.0ms) begin transaction +  (0.0ms) commit transaction +Redirected to http://localhost:3000/tasks/9 +Completed 302 Found in 13ms (ActiveRecord: 1.0ms) + + +Started GET "/tasks/9" for ::1 at 2017-03-28 14:49:16 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 17ms (Views: 15.2ms | ActiveRecord: 0.1ms) + + +Started GET "/tasks" for ::1 at 2017-03-28 14:49:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 23ms (Views: 20.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-30 19:48:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" +DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This +still causes `String`s to be parsed as if they were in `Time.zone`, +and `Time`s to be converted to `Time.zone`. + +To keep the old behavior, you must add the following to your initializer: + + config.active_record.time_zone_aware_types = [:datetime] + +To silence this deprecation warning, add the following: + + config.active_record.time_zone_aware_types = [:datetime, :time] + (called from block (2 levels) in inherited at /Users/sofia/.rvm/gems/ruby-2.4.0@global/gems/activerecord-5.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb:78) + Rendered tasks/index.html.erb within layouts/application (18.1ms) +Completed 200 OK in 63ms (Views: 50.3ms | ActiveRecord: 1.5ms) + + +Started GET "/tasks/new" for ::1 at 2017-03-30 19:48:33 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.9ms) + Rendered tasks/new.html.erb within layouts/application (10.0ms) +Completed 200 OK in 35ms (Views: 32.0ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2017-03-30 19:48:44 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"V8HVko+wBaeZE5B13lNlfL2FG7XC/0+LHvb8uqRDKLoA66hUgtxbzVHLyj2UCkdfEA1AijBvLMAEm3klnPsxPw==", "task"=>{"name"=>"water plants", "description"=>"three trees"}, "commit"=>"Create Task"} +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "water plants"], ["description", "three trees"], ["created_at", 2017-03-31 02:48:44 UTC], ["updated_at", 2017-03-31 02:48:44 UTC]] +  (0.8ms) commit transaction +Redirected to http://localhost:3000/tasks/16 +Completed 302 Found in 6ms (ActiveRecord: 1.3ms) + + +Started GET "/tasks/16" for ::1 at 2017-03-30 19:48:44 -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 (0.9ms) +Completed 200 OK in 23ms (Views: 18.6ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2017-03-30 19:48:46 -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.5ms) +Completed 200 OK in 28ms (Views: 25.2ms | ActiveRecord: 0.1ms) + + +Started POST "/tasks/16/mark_complete" for ::1 at 2017-03-30 19:48:48 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"5t3Dv9xMk9EFjeebIq46SR/G7jT05omFlPFxKuvG+ov1spJzH4VJIkqTg6NcFZ3ByfOoZ++7nH2p0blkp7fPYA==", "id"=>"16"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 16], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.3ms) UPDATE "tasks" SET "completed_at" = ?, "updated_at" = ? WHERE "tasks"."id" = ? [["completed_at", 2017-03-31 02:48:48 UTC], ["updated_at", 2017-03-31 02:48:48 UTC], ["id", 16]] +  (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-30 19:48:48 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.3ms) +Completed 200 OK in 36ms (Views: 33.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/16" for ::1 at 2017-03-30 19:48:49 -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 (8.0ms) +Completed 200 OK in 39ms (Views: 35.9ms | ActiveRecord: 0.1ms) + +