diff --git a/Gemfile b/Gemfile new file mode 100644 index 000000000..13ab51252 --- /dev/null +++ b/Gemfile @@ -0,0 +1,54 @@ +source 'https://rubygems.org' + +git_source(:github) do |repo_name| + repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") + "https://github.com/#{repo_name}.git" +end + + +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '~> 5.1.4' +# Use sqlite3 as the database for Active Record +gem 'sqlite3' +# Use Puma as the app server +gem 'puma', '~> 3.7' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 5.0' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# See https://github.com/rails/execjs#readme for more supported runtimes +# gem 'therubyracer', platforms: :ruby + +# Use CoffeeScript for .coffee assets and views +gem 'coffee-rails', '~> 4.2' +# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks +gem 'turbolinks', '~> 5' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.5' +# Use Redis adapter to run Action Cable in production +# gem 'redis', '~> 3.0' +# Use ActiveModel has_secure_password +# gem 'bcrypt', '~> 3.1.7' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +group :development, :test do + # Call 'byebug' anywhere in the code to stop execution and get a debugger console + gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] + # Adds support for Capybara system testing and selenium driver + gem 'capybara', '~> 2.13' + gem 'selenium-webdriver' +end + +group :development do + # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. + gem 'web-console', '>= 3.3.0' + gem 'listen', '>= 3.0.5', '< 3.2' + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' + gem 'spring-watcher-listen', '~> 2.0.0' +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 000000000..c585836de --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,198 @@ +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.1.4) + actionpack (= 5.1.4) + nio4r (~> 2.0) + websocket-driver (~> 0.6.1) + actionmailer (5.1.4) + actionpack (= 5.1.4) + actionview (= 5.1.4) + activejob (= 5.1.4) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.1.4) + actionview (= 5.1.4) + activesupport (= 5.1.4) + rack (~> 2.0) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.1.4) + activesupport (= 5.1.4) + builder (~> 3.1) + erubi (~> 1.4) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.1.4) + activesupport (= 5.1.4) + globalid (>= 0.3.6) + activemodel (5.1.4) + activesupport (= 5.1.4) + activerecord (5.1.4) + activemodel (= 5.1.4) + activesupport (= 5.1.4) + arel (~> 8.0) + activesupport (5.1.4) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (~> 0.7) + minitest (~> 5.1) + tzinfo (~> 1.1) + addressable (2.5.2) + public_suffix (>= 2.0.2, < 4.0) + arel (8.0.0) + bindex (0.5.0) + builder (3.2.3) + byebug (9.1.0) + capybara (2.15.1) + addressable + mini_mime (>= 0.1.3) + nokogiri (>= 1.3.3) + rack (>= 1.0.0) + rack-test (>= 0.5.4) + xpath (~> 2.0) + childprocess (0.8.0) + ffi (~> 1.0, >= 1.0.11) + coffee-rails (4.2.2) + coffee-script (>= 2.2.0) + railties (>= 4.0.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + concurrent-ruby (1.0.5) + crass (1.0.2) + erubi (1.6.1) + execjs (2.7.0) + ffi (1.9.18) + globalid (0.4.0) + activesupport (>= 4.2.0) + i18n (0.8.6) + jbuilder (2.7.0) + activesupport (>= 4.2.0) + multi_json (>= 1.2) + listen (3.1.5) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + ruby_dep (~> 1.2) + loofah (2.1.1) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.6.6) + mime-types (>= 1.16, < 4) + method_source (0.9.0) + mime-types (3.1) + mime-types-data (~> 3.2015) + mime-types-data (3.2016.0521) + mini_mime (0.1.4) + mini_portile2 (2.3.0) + minitest (5.10.3) + multi_json (1.12.2) + nio4r (2.1.0) + nokogiri (1.8.1) + mini_portile2 (~> 2.3.0) + public_suffix (3.0.0) + puma (3.10.0) + rack (2.0.3) + rack-test (0.7.0) + rack (>= 1.0, < 3) + rails (5.1.4) + actioncable (= 5.1.4) + actionmailer (= 5.1.4) + actionpack (= 5.1.4) + actionview (= 5.1.4) + activejob (= 5.1.4) + activemodel (= 5.1.4) + activerecord (= 5.1.4) + activesupport (= 5.1.4) + bundler (>= 1.3.0) + railties (= 5.1.4) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.0.3) + loofah (~> 2.0) + railties (5.1.4) + actionpack (= 5.1.4) + activesupport (= 5.1.4) + method_source + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (12.1.0) + rb-fsevent (0.10.2) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + ruby_dep (1.5.0) + rubyzip (1.2.1) + sass (3.5.1) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sass-rails (5.0.6) + railties (>= 4.0.0, < 6) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + selenium-webdriver (3.6.0) + childprocess (~> 0.5) + rubyzip (~> 1.0) + spring (2.0.2) + activesupport (>= 4.2) + spring-watcher-listen (2.0.1) + listen (>= 2.7, < 4.0) + spring (>= 1.2, < 3.0) + sprockets (3.7.1) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + sqlite3 (1.3.13) + thor (0.20.0) + thread_safe (0.3.6) + tilt (2.0.8) + turbolinks (5.0.1) + turbolinks-source (~> 5) + turbolinks-source (5.0.3) + tzinfo (1.2.3) + thread_safe (~> 0.1) + uglifier (3.2.0) + execjs (>= 0.3.0, < 3) + web-console (3.5.1) + actionview (>= 5.0) + activemodel (>= 5.0) + bindex (>= 0.4.0) + railties (>= 5.0) + websocket-driver (0.6.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.2) + xpath (2.1.0) + nokogiri (~> 1.3) + +PLATFORMS + ruby + +DEPENDENCIES + byebug + capybara (~> 2.13) + coffee-rails (~> 4.2) + jbuilder (~> 2.5) + listen (>= 3.0.5, < 3.2) + puma (~> 3.7) + rails (~> 5.1.4) + sass-rails (~> 5.0) + selenium-webdriver + spring + spring-watcher-listen (~> 2.0.0) + sqlite3 + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +BUNDLED WITH + 1.15.4 diff --git a/README.md b/README.md index 781e83f1f..c33d973e2 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,6 @@ This wave is where we introduce ActiveRecord to create a model. We use the model - you may need to update the view as well to use the model fields rather than the hard-coded data - ## Wave 2 In this wave, we will expand the actions we support and introduce forms for user interactivity and persistence. diff --git a/Rakefile b/Rakefile new file mode 100644 index 000000000..e85f91391 --- /dev/null +++ b/Rakefile @@ -0,0 +1,6 @@ +# Add your own tasks in files placed in lib/tasks ending in .rake, +# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. + +require_relative 'config/application' + +Rails.application.load_tasks diff --git a/app/assets/config/manifest.js b/app/assets/config/manifest.js new file mode 100644 index 000000000..b16e53d6d --- /dev/null +++ b/app/assets/config/manifest.js @@ -0,0 +1,3 @@ +//= link_tree ../images +//= link_directory ../javascripts .js +//= link_directory ../stylesheets .css diff --git a/app/assets/images/.keep b/app/assets/images/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js new file mode 100644 index 000000000..46b20359f --- /dev/null +++ b/app/assets/javascripts/application.js @@ -0,0 +1,15 @@ +// This is a manifest file that'll be compiled into application.js, which will include all the files +// listed below. +// +// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's +// vendor/assets/javascripts directory can be referenced here using a relative path. +// +// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the +// compiled file. JavaScript code in this file should be added after the last require_* statement. +// +// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details +// about supported directives. +// +//= require rails-ujs +//= require turbolinks +//= require_tree . diff --git a/app/assets/javascripts/cable.js b/app/assets/javascripts/cable.js new file mode 100644 index 000000000..739aa5f02 --- /dev/null +++ b/app/assets/javascripts/cable.js @@ -0,0 +1,13 @@ +// Action Cable provides the framework to deal with WebSockets in Rails. +// You can generate new channels where WebSocket features live using the `rails generate channel` command. +// +//= require action_cable +//= require_self +//= require_tree ./channels + +(function() { + this.App || (this.App = {}); + + App.cable = ActionCable.createConsumer(); + +}).call(this); diff --git a/app/assets/javascripts/channels/.keep b/app/assets/javascripts/channels/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/app/assets/javascripts/tasks.coffee b/app/assets/javascripts/tasks.coffee new file mode 100644 index 000000000..24f83d18b --- /dev/null +++ b/app/assets/javascripts/tasks.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css new file mode 100644 index 000000000..d05ea0f51 --- /dev/null +++ b/app/assets/stylesheets/application.css @@ -0,0 +1,15 @@ +/* + * This is a manifest file that'll be compiled into application.css, which will include all the files + * listed below. + * + * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's + * vendor/assets/stylesheets directory can be referenced here using a relative path. + * + * You're free to add application-wide styles to this file and they'll appear at the bottom of the + * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS + * files in this directory. Styles in this file should be added after the last require_* statement. + * It is generally better to create a new file per style scope. + * + *= require_tree . + *= require_self + */ diff --git a/app/assets/stylesheets/tasks.scss b/app/assets/stylesheets/tasks.scss new file mode 100644 index 000000000..36c36cce3 --- /dev/null +++ b/app/assets/stylesheets/tasks.scss @@ -0,0 +1,109 @@ +// Place all the styles related to the Tasks controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ + +// Place all the styles related to the Tasks controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ +.title { + margin-left: 30px; +} +// +// h1 { +// text-align: center; +// } + +h2 { + text-align: center; +} + +ul { + float:left; + clear:left; +} + +ul li { + list-style: none; +} + +ul li:first-of-type { + margin-bottom: 30%; + margin-top: -10px; +} + +.task { + border-style: solid; + margin-left: 20px; + padding: 10px; + border-radius: 10px; +} + +main { + margin: 0; + width: 30%; + float: right; + border: 4px solid black; + overflow: scroll; + height: 400px; + border-radius: 2%; + padding: 40px; + margin-right: 400px; + margin-bottom: 3%; +} + +main h2 p { + text-align: center; +} + + + +// section { +// float:right; +// border-style: solid; +// clear:right; +// padding: 10px; +// border-radius: 10px; +// padding-right: 40px; + // margin-left: 10%; + // margin-right: 10%; + // vertical-align: top; + // display: inline-block; + // width: 25%; + // /*top, right, bottom, left*/ + // margin: 0 1%; + // padding: 0 1.5%; + // background-color: gray; + // border-radius: 2%; + // /*position: relative;*/ +// } + +section p { + display: inline-block; +} + +.completed { + text-decoration: line-through; +} + +footer { + text-align: center; + clear: both; + // margin-top: 40% +} + +// #footer { +// margin-top: 30%; +// } + +// .clearfix:after { +// visibility: hidden; +// display: block; +// font-size: 0; +// content: " "; +// clear: both; +// height: 0; +// } +// .clearfix { display: inline-block; } +// /* start commented backslash hack \*/ +// * html .clearfix { height: 1%; } +// .clearfix { display: block; } 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..0bf15f35a --- /dev/null +++ b/app/controllers/tasks_controller.rb @@ -0,0 +1,46 @@ +class TasksController < ApplicationController + def index + @tasks = Task.all #generate all tasks + end + + def new + @task = Task.new #create atemplate of task forrails to use + end + + def create + task = Task.new(title: params[:task][:title], description: params[:task][:description], due_date: params[:task][:due_date], complete: false) + puts params + task.save + + redirect_to home_url + end + + def edit + @task = Task.find(params[:id]) #find a task based on the id requested + end + + def update + task_updates = params.require(:task).permit(:title, :description, :due_date, :complete, :completed_date) # only looks at what's required i.e what's passed + @task = Task.find(params[:id]) + @task.update_attributes(task_updates) + @task.save + + if params[:refresh] + redirect_to home_url + else + redirect_to task_path(@task) #redirect to show + end + end + + def show + @task = Task.find(params[:id]) + end + + def destroy + @task = Task.find(params[:id]) + + @task.destroy + + redirect_to home_url + 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..50b8661fd --- /dev/null +++ b/app/views/layouts/application.html.erb @@ -0,0 +1,32 @@ + + +
+<%= link_to "Unmark Complete", task_path(task.id, {:task => {:complete => false}, :refresh => true}), method: :patch %>
+ <% else %> +<%= link_to "Mark Complete", task_path(task.id, {:task => {:complete => true, :completed_date => DateTime.now}, :refresh => true}), method: :patch %>
+ <% end %> + +<%= link_to "Edit", task_path(task.id) %>
+<%= link_to "Delete", delete_task_path(task.id), method: :delete, data: {confirm: "Are you sure?"} %>
+<%= @task.description %>
+ 7: + 8:<%= @task.due_date %>
+ 9: <%= link_to "Edit Job", edit_task_path(@job.id) %> + 10:<%= @task.description %>
+ 7: + 8:<%= @task.due_date %>
+ 9: <%= link_to "Edit Job", edit_task_path(@job.id) %> + 10:<%= @task.description %>
+ 7: + 8:<%= @task.due_date %>
+ 9: <%= link_to "Edit Job", edit_task_path(@job.id) %> + 10: + +app/views/tasks/show.html.erb:9:in `_app_views_tasks_show_html_erb___2417451196553789439_70168179874080' +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-26 21:41:04 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.6ms) +Completed 500 Internal Server Error in 39ms (ActiveRecord: 1.4ms) + + + +ActionView::Template::Error (undefined method `id' for nil:NilClass): + 6:<%= @task.description %>
+ 7: + 8:<%= @task.due_date %>
+ 9: <%= link_to "Edit Job", edit_task_path(@job.id) %> + 10: + +app/views/tasks/show.html.erb:9:in `_app_views_tasks_show_html_erb___2417451196553789439_70168192539060' +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-26 21:41:45 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["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 42ms (Views: 38.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1/edit" for 127.0.0.1 at 2017-09-26 21:41:49 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} +Completed 406 Not Acceptable in 82ms (ActiveRecord: 0.0ms) + + + +ActionController::UnknownFormat (TasksController#edit is missing a template for this request format and variant. + +request.formats: ["text/html"] +request.variant: [] + +NOTE! For XHR/Ajax or API requests, this action would normally respond with 204 No Content: an empty white screen. Since you're loading it in a web browser, we assume that you expected to actually render a template, not nothing, so we're showing an error to be extra-clear. If you expect 204 No Content, carry on. That's what you'll get from an XHR or API request. Give it a shot.): + +actionpack (5.1.4) lib/action_controller/metal/implicit_render.rb:53:in `default_render' +actionpack (5.1.4) lib/action_controller/metal/basic_implicit_render.rb:4:in `block in send_action' +actionpack (5.1.4) lib/action_controller/metal/basic_implicit_render.rb:4:in `tap' +actionpack (5.1.4) lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action' +actionpack (5.1.4) lib/abstract_controller/base.rb:186:in `process_action' +actionpack (5.1.4) lib/action_controller/metal/rendering.rb:30:in `process_action' +actionpack (5.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' +activesupport (5.1.4) lib/active_support/callbacks.rb:131:in `run_callbacks' +actionpack (5.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action' +actionpack (5.1.4) lib/action_controller/metal/rescue.rb:20:in `process_action' +actionpack (5.1.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' +activesupport (5.1.4) lib/active_support/notifications.rb:166:in `block in instrument' +activesupport (5.1.4) lib/active_support/notifications/instrumenter.rb:21:in `instrument' +activesupport (5.1.4) lib/active_support/notifications.rb:166:in `instrument' +actionpack (5.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' +actionpack (5.1.4) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' +activerecord (5.1.4) lib/active_record/railties/controller_runtime.rb:22:in `process_action' +actionpack (5.1.4) lib/abstract_controller/base.rb:124:in `process' +actionview (5.1.4) lib/action_view/rendering.rb:30:in `process' +actionpack (5.1.4) lib/action_controller/metal.rb:189:in `dispatch' +actionpack (5.1.4) lib/action_controller/metal.rb:253:in `dispatch' +actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' +actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:31:in `serve' +actionpack (5.1.4) lib/action_dispatch/journey/router.rb:50:in `block in serve' +actionpack (5.1.4) lib/action_dispatch/journey/router.rb:33:in `each' +actionpack (5.1.4) lib/action_dispatch/journey/router.rb:33:in `serve' +actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:834:in `call' +rack (2.0.3) lib/rack/etag.rb:25:in `call' +rack (2.0.3) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.3) lib/rack/head.rb:12:in `call' +rack (2.0.3) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.3) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/cookies.rb:613:in `call' +activerecord (5.1.4) lib/active_record/migration.rb:556:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' +activesupport (5.1.4) lib/active_support/callbacks.rb:97:in `run_callbacks' +actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:24:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.3) lib/rack/method_override.rb:22:in `call' +rack (2.0.3) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.3) lib/rack/sendfile.rb:111:in `call' +railties (5.1.4) lib/rails/engine.rb:522:in `call' +puma (3.10.0) lib/puma/configuration.rb:225:in `call' +puma (3.10.0) lib/puma/server.rb:605:in `handle_request' +puma (3.10.0) lib/puma/server.rb:437:in `process_client' +puma (3.10.0) lib/puma/server.rb:301:in `block in run' +puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/tasks/1/edit" for 127.0.0.1 at 2017-09-26 21:42:41 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (0.6ms) +Completed 200 OK in 27ms (Views: 24.5ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-26 21:55:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/index.html.erb within layouts/application (5.3ms) +Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined method `id' for nil:NilClass): + 4: <%= @tasks.each do |task| %> + 5:<%= @task.due_date %>
+ 9: <%= link_to "Edit Task", edit_task_path(@task.id) %> + 10: <%= link_to "Delete Task", delete_task_path(@task.id) %> + 11: + +app/views/tasks/show.html.erb:10:in `_app_views_tasks_show_html_erb___2417451196553789439_70168178805200' +Started GET "/tasks/4" for 127.0.0.1 at 2017-09-26 23:02:29 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"4"} + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (150.8ms) +Completed 500 Internal Server Error in 176ms (ActiveRecord: 1.1ms) + + + +ActionView::Template::Error (undefined method `delete_task_path' for #<#<%= @task.due_date %>
+ 9: <%= link_to "Edit Task", edit_task_path(@task.id) %> + 10: <%= link_to "Delete Task", delete_task_path(@task.id) %> + 11: + +app/views/tasks/show.html.erb:10:in `_app_views_tasks_show_html_erb___2417451196553789439_70168162797380' +Started GET "/tasks/4" for 127.0.0.1 at 2017-09-26 23:03:36 -0700 + +NameError (undefined local variable or method `delete_task' for #+ 19: <%= link_to "Add a New Task", tasks_new_path %> + 20:
--> + +app/views/tasks/index.html.erb:19:in `_app_views_tasks_index_html_erb__4044624599206286686_70221679859640' +Started GET "/" for 127.0.0.1 at 2017-09-29 14:32:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (4.2ms) + Rendered tasks/index.html.erb within layouts/application (6.9ms) +Completed 200 OK in 298ms (Views: 294.5ms | ActiveRecord: 0.2ms) + + +Started DELETE "/tasks.5" for 127.0.0.1 at 2017-09-29 14:32:20 -0700 + +ActionController::RoutingError (No route matches [DELETE] "/tasks.5"): + +actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.3) lib/rack/method_override.rb:22:in `call' +rack (2.0.3) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.3) lib/rack/sendfile.rb:111:in `call' +railties (5.1.4) lib/rails/engine.rb:522:in `call' +puma (3.10.0) lib/puma/configuration.rb:225:in `call' +puma (3.10.0) lib/puma/server.rb:605:in `handle_request' +puma (3.10.0) lib/puma/server.rb:437:in `process_client' +puma (3.10.0) lib/puma/server.rb:301:in `block in run' +puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/tasks" for 127.0.0.1 at 2017-09-29 14:34:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (13.5ms) + Rendered tasks/index.html.erb within layouts/application (15.7ms) +Completed 200 OK in 61ms (Views: 48.7ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-29 14:34:15 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_task_summary.html.erb (22.4ms) + Rendered tasks/new.html.erb within layouts/application (27.1ms) +Completed 200 OK in 53ms (Views: 47.4ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-29 14:34:30 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"8SvP5RzOVgGf+Ua6JZJQcdkQaj32rxogRm/jpA4u9KvobWUvf1WePNuOs8QEKbcx9C0XnUy1cG5i0QyE5juBBQ==", "task"=>{"title"=>"Testing", "description"=>"Testing descriptiong", "due_date"=>"2017-09-20"}, "commit"=>"Create Task"} + [1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "tasks" ("title", "description", "due_date", "complete", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["title", "Testing"], ["description", "Testing descriptiong"], ["due_date", "2017-09-20 00:00:00"], ["complete", "f"], ["created_at", "2017-09-29 21:34:30.499813"], ["updated_at", "2017-09-29 21:34:30.499813"]] + [1m[35m (2.9ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3000/ +Completed 302 Found in 11ms (ActiveRecord: 4.3ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-29 14:34:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.4ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (7.0ms) + Rendered tasks/index.html.erb within layouts/application (10.1ms) +Completed 200 OK in 40ms (Views: 33.5ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/7" for 127.0.0.1 at 2017-09-29 14:34:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + [1m[36mTask Load (0.4ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.0ms) +Completed 200 OK in 33ms (Views: 22.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/7/edit" for 127.0.0.1 at 2017-09-29 14:34:36 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"7"} + [1m[36mTask Load (0.1ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_task_summary.html.erb (2.4ms) + Rendered tasks/edit.html.erb within layouts/application (7.6ms) +Completed 200 OK in 32ms (Views: 28.3ms | ActiveRecord: 0.1ms) + + +Started PATCH "/tasks/7" for 127.0.0.1 at 2017-09-29 14:34:44 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"xPpd/5xCxzNZwCCxBFZFdZf9FqPospvkPCRtL0z2O4cgZtMrarv1X85ipI8bvPBhyIZYMO0ZfBvp+cTDx9PMrA==", "task"=>{"title"=>"Testing-two", "description"=>"Testing descriptiong", "due_date"=>"2017-09-20"}, "commit"=>"Update Task", "id"=>"7"} + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "tasks" SET "title" = ?, "updated_at" = ? WHERE "tasks"."id" = ?[0m [["title", "Testing-two"], ["updated_at", "2017-09-29 21:34:44.144376"], ["id", 7]] + [1m[35m (2.4ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 10ms (ActiveRecord: 3.5ms) + + +Started GET "/tasks/7" for 127.0.0.1 at 2017-09-29 14:34:44 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + [1m[36mTask Load (0.3ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.0ms) +Completed 200 OK in 39ms (Views: 34.2ms | ActiveRecord: 0.3ms) + + +Started DELETE "/tasks/7" for 127.0.0.1 at 2017-09-29 14:34:46 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"1hacP4JxHlFAALF8w+uZM0SWN7a+pcNw6JdFmM5M1QYyihLrdIgsPdeiNULcASwnG+15JbsOJI89Sux0RWkiLQ==", "id"=>"7"} + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.5ms)[0m [1m[31mDELETE FROM "tasks" WHERE "tasks"."id" = ?[0m [["id", 7]] + [1m[35m (2.4ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3000/ +Completed 302 Found in 7ms (ActiveRecord: 3.1ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-29 14:34:46 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (4.3ms) + Rendered tasks/index.html.erb within layouts/application (7.9ms) +Completed 200 OK in 34ms (Views: 30.7ms | ActiveRecord: 0.2ms) + + +Started DELETE "/tasks.5" for 127.0.0.1 at 2017-09-29 14:35:10 -0700 + +ActionController::RoutingError (No route matches [DELETE] "/tasks.5"): + +actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.3) lib/rack/method_override.rb:22:in `call' +rack (2.0.3) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.3) lib/rack/sendfile.rb:111:in `call' +railties (5.1.4) lib/rails/engine.rb:522:in `call' +puma (3.10.0) lib/puma/configuration.rb:225:in `call' +puma (3.10.0) lib/puma/server.rb:605:in `handle_request' +puma (3.10.0) lib/puma/server.rb:437:in `process_client' +puma (3.10.0) lib/puma/server.rb:301:in `block in run' +puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-29 14:37:39 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_task_summary.html.erb (3.8ms) + Rendered tasks/new.html.erb within layouts/application (9.4ms) +Completed 200 OK in 42ms (Views: 26.2ms | ActiveRecord: 1.0ms) + + +Started POST "/tasks" for 127.0.0.1 at 2017-09-29 14:37:56 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"0Y/2e7pYXcCXqu+wcpFC5hg7sVsRS19LAEkPCXB4TjnIyVyx2cOV/dPdGs5TKqWmNQbM+6tRNQUk9+ApmG07lw==", "task"=>{"title"=>"Inspection", "description"=>"check water heater", "due_date"=>"2017-09-13"}, "commit"=>"Create Task"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "tasks" ("title", "description", "due_date", "complete", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["title", "Inspection"], ["description", "check water heater"], ["due_date", "2017-09-13 00:00:00"], ["complete", "f"], ["created_at", "2017-09-29 21:37:56.639191"], ["updated_at", "2017-09-29 21:37:56.639191"]] + [1m[35m (2.8ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3000/ +Completed 302 Found in 9ms (ActiveRecord: 3.4ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-29 14:37:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.5ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (6.1ms) + Rendered tasks/index.html.erb within layouts/application (9.4ms) +Completed 200 OK in 38ms (Views: 33.3ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/8" for 127.0.0.1 at 2017-09-29 14:37:59 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"8"} + [1m[36mTask Load (3.0ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 8], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 33ms (Views: 24.3ms | ActiveRecord: 3.0ms) + + +Started GET "/tasks/8/edit" for 127.0.0.1 at 2017-09-29 14:38:01 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"8"} + [1m[36mTask Load (0.4ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 8], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_task_summary.html.erb (3.7ms) + Rendered tasks/edit.html.erb within layouts/application (11.5ms) +Completed 200 OK in 36ms (Views: 31.6ms | ActiveRecord: 0.4ms) + + +Started PATCH "/tasks/8" for 127.0.0.1 at 2017-09-29 14:38:05 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"xfPM6qRex1VpfWjbYsmu5XZIj+rsJWtWtzDs1l/saH0hb0I+Uqf1Of7f7OV9IxvxKTPBeemOjKli7UU61MmfVg==", "task"=>{"title"=>"Inspection 2", "description"=>"check water heater", "due_date"=>"2017-09-13"}, "commit"=>"Update Task", "id"=>"8"} + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 8], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "tasks" SET "title" = ?, "updated_at" = ? WHERE "tasks"."id" = ?[0m [["title", "Inspection 2"], ["updated_at", "2017-09-29 21:38:05.649046"], ["id", 8]] + [1m[35m (2.7ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3000/tasks/8 +Completed 302 Found in 10ms (ActiveRecord: 3.7ms) + + +Started GET "/tasks/8" for 127.0.0.1 at 2017-09-29 14:38:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"8"} + [1m[36mTask Load (0.3ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 8], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.7ms) +Completed 200 OK in 45ms (Views: 39.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/index" for 127.0.0.1 at 2017-09-29 14:38:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (4.5ms) + Rendered tasks/index.html.erb within layouts/application (7.0ms) +Completed 200 OK in 33ms (Views: 28.1ms | ActiveRecord: 0.2ms) + + +Started DELETE "/tasks.8" for 127.0.0.1 at 2017-09-29 14:38:12 -0700 + +ActionController::RoutingError (No route matches [DELETE] "/tasks.8"): + +actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.3) lib/rack/method_override.rb:22:in `call' +rack (2.0.3) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.3) lib/rack/sendfile.rb:111:in `call' +railties (5.1.4) lib/rails/engine.rb:522:in `call' +puma (3.10.0) lib/puma/configuration.rb:225:in `call' +puma (3.10.0) lib/puma/server.rb:605:in `handle_request' +puma (3.10.0) lib/puma/server.rb:437:in `process_client' +puma (3.10.0) lib/puma/server.rb:301:in `block in run' +puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/tasks" for 127.0.0.1 at 2017-09-29 14:40:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (16.9ms) + Rendered tasks/index.html.erb within layouts/application (20.0ms) +Completed 200 OK in 48ms (Views: 40.1ms | ActiveRecord: 1.9ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-29 14:40:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (4.7ms) + Rendered tasks/index.html.erb within layouts/application (6.9ms) +Completed 200 OK in 56ms (Views: 52.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-29 14:41:11 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (4.3ms) + Rendered tasks/index.html.erb within layouts/application (14.6ms) +Completed 200 OK in 63ms (Views: 60.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-29 14:41:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (5.0ms) + Rendered tasks/index.html.erb within layouts/application (7.9ms) +Completed 200 OK in 69ms (Views: 66.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-29 14:41:52 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.3ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (5.2ms) + Rendered tasks/index.html.erb within layouts/application (8.7ms) +Completed 200 OK in 56ms (Views: 53.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-29 14:42:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (4.2ms) + Rendered tasks/index.html.erb within layouts/application (6.5ms) +Completed 200 OK in 32ms (Views: 27.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-29 14:43:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.4ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (7.9ms) + Rendered tasks/index.html.erb within layouts/application (11.0ms) +Completed 200 OK in 43ms (Views: 40.3ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-29 14:43:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (4.7ms) + Rendered tasks/index.html.erb within layouts/application (6.9ms) +Completed 200 OK in 30ms (Views: 25.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for 127.0.0.1 at 2017-09-29 14:43:57 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (4.1ms) + Rendered tasks/index.html.erb within layouts/application (6.8ms) +Completed 200 OK in 56ms (Views: 53.9ms | ActiveRecord: 0.2ms) + + +Started DELETE "/tasks.8" for 127.0.0.1 at 2017-09-29 14:46:11 -0700 + +ActionController::RoutingError (No route matches [DELETE] "/tasks.8"): + +actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.3) lib/rack/method_override.rb:22:in `call' +rack (2.0.3) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.3) lib/rack/sendfile.rb:111:in `call' +railties (5.1.4) lib/rails/engine.rb:522:in `call' +puma (3.10.0) lib/puma/configuration.rb:225:in `call' +puma (3.10.0) lib/puma/server.rb:605:in `handle_request' +puma (3.10.0) lib/puma/server.rb:437:in `process_client' +puma (3.10.0) lib/puma/server.rb:301:in `block in run' +puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/tasks" for 127.0.0.1 at 2017-09-29 14:59:45 -0700 + [1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.3ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (14.2ms) + Rendered tasks/index.html.erb within layouts/application (17.4ms) +Completed 200 OK in 289ms (Views: 272.0ms | ActiveRecord: 0.9ms) + + +Started DELETE "/tasks.8" for 127.0.0.1 at 2017-09-29 14:59:53 -0700 + +ActionController::RoutingError (No route matches [DELETE] "/tasks.8"): + +actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.3) lib/rack/method_override.rb:22:in `call' +rack (2.0.3) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.3) lib/rack/sendfile.rb:111:in `call' +railties (5.1.4) lib/rails/engine.rb:522:in `call' +puma (3.10.0) lib/puma/configuration.rb:225:in `call' +puma (3.10.0) lib/puma/server.rb:605:in `handle_request' +puma (3.10.0) lib/puma/server.rb:437:in `process_client' +puma (3.10.0) lib/puma/server.rb:301:in `block in run' +puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/tasks" for 127.0.0.1 at 2017-09-29 15:01:11 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.4ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (141.2ms) + Rendered tasks/index.html.erb within layouts/application (143.6ms) +Completed 500 Internal Server Error in 152ms (ActiveRecord: 1.1ms) + + + +ActionView::Template::Error (undefined method `tasks' for #<#<%= link_to "Edit", task_path(task.id) %>
+ 18:<%= link_to "Delete", tasks(task.id), method: :delete, data: {confirm: "Are you sure?"} %>
+ 19: + 20: + 21: <% end %> + +app/views/tasks/_form.html.erb:18:in `block in _app_views_tasks__form_html_erb__1292899776269752459_70150152287500' +app/views/tasks/_form.html.erb:7:in `each_with_index' +app/views/tasks/_form.html.erb:7:in `_app_views_tasks__form_html_erb__1292899776269752459_70150152287500' +app/views/tasks/index.html.erb:1:in `_app_views_tasks_index_html_erb___2687757425990212919_70150160167320' +Started GET "/tasks" for 127.0.0.1 at 2017-09-29 15:01:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.3ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (226.7ms) + Rendered tasks/index.html.erb within layouts/application (229.6ms) +Completed 500 Internal Server Error in 239ms (ActiveRecord: 0.3ms) + + + +ActionView::Template::Error (undefined local variable or method `tasks' for #<#<%= link_to "Edit", task_path(task.id) %>
+ 18:<%= link_to "Delete", tasks, method: :delete, data: {confirm: "Are you sure?"} %>
+ 19: + 20: + 21: <% end %> + +app/views/tasks/_form.html.erb:18:in `block in _app_views_tasks__form_html_erb__1292899776269752459_70150166533340' +app/views/tasks/_form.html.erb:7:in `each_with_index' +app/views/tasks/_form.html.erb:7:in `_app_views_tasks__form_html_erb__1292899776269752459_70150166533340' +app/views/tasks/index.html.erb:1:in `_app_views_tasks_index_html_erb___2687757425990212919_70150166565760' +Started GET "/tasks" for 127.0.0.1 at 2017-09-29 15:01:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.3ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (9.7ms) + Rendered tasks/index.html.erb within layouts/application (13.0ms) +Completed 200 OK in 60ms (Views: 56.8ms | ActiveRecord: 0.3ms) + + +Started DELETE "/tasks.8" for 127.0.0.1 at 2017-09-29 15:02:44 -0700 + +ActionController::RoutingError (No route matches [DELETE] "/tasks.8"): + +actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.4) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.3) lib/rack/method_override.rb:22:in `call' +rack (2.0.3) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.3) lib/rack/sendfile.rb:111:in `call' +railties (5.1.4) lib/rails/engine.rb:522:in `call' +puma (3.10.0) lib/puma/configuration.rb:225:in `call' +puma (3.10.0) lib/puma/server.rb:605:in `handle_request' +puma (3.10.0) lib/puma/server.rb:437:in `process_client' +puma (3.10.0) lib/puma/server.rb:301:in `block in run' +puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/" for 127.0.0.1 at 2017-09-29 16:15:53 -0700 + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.4ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (16.6ms) + Rendered tasks/index.html.erb within layouts/application (23.1ms) +Completed 200 OK in 265ms (Views: 244.6ms | ActiveRecord: 1.4ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-29 16:17:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.7ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (11.0ms) + Rendered tasks/index.html.erb within layouts/application (13.9ms) +Completed 200 OK in 50ms (Views: 45.7ms | ActiveRecord: 1.3ms) + + +Started DELETE "/tasks/8" for 127.0.0.1 at 2017-09-29 16:17:35 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"hmf0kQLsvoSHH3X5ATqA3GiB25rJpb88DklON18EsS1i+3pF9BWM6BC98cce0DXIN/qVCcwOWMPblOfb1CFGBg==", "id"=>"8"} + [1m[36mTask Load (0.3ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 8], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.5ms)[0m [1m[31mDELETE FROM "tasks" WHERE "tasks"."id" = ?[0m [["id", 8]] + [1m[35m (2.8ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3000/ +Completed 302 Found in 10ms (ActiveRecord: 3.6ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-29 16:17:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (4.9ms) + Rendered tasks/index.html.erb within layouts/application (8.1ms) +Completed 200 OK in 33ms (Views: 29.9ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/6?refresh=true&task%5Bcomplete%5D=true&task%5Bcompleted_date%5D=2017-09-29T16%3A17%3A35-07%3A00" for 127.0.0.1 at 2017-09-29 16:20:35 -0700 +Processing by TasksController#update as HTML + Parameters: {"authenticity_token"=>"A3ARBxFrZ+dmDeMWfyNi5YqY6HWZAMwo1OwNC/OVwzXn7J/T55JVi/GvZyhgydfx1eOm5pyrK9cBMaTneLA0Hg==", "refresh"=>"true", "task"=>{"complete"=>"true", "completed_date"=>"2017-09-29T16:17:35-07:00"}, "id"=>"6"} + [1m[36mTask Load (0.3ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "tasks" SET "complete" = ?, "completed_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ?[0m [["complete", "t"], ["completed_date", "2017-09-29 23:17:35"], ["updated_at", "2017-09-29 23:20:35.316581"], ["id", 6]] + [1m[35m (4.1ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3000/ +Completed 302 Found in 12ms (ActiveRecord: 5.1ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-29 16:20:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.3ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (7.6ms) + Rendered tasks/index.html.erb within layouts/application (12.8ms) +Completed 200 OK in 62ms (Views: 56.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/6" for 127.0.0.1 at 2017-09-29 16:20:37 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.8ms) +Completed 200 OK in 44ms (Views: 36.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/6" for 127.0.0.1 at 2017-09-29 16:22:14 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (5.4ms) +Completed 200 OK in 46ms (Views: 42.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/index" for 127.0.0.1 at 2017-09-29 16:22:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (4.6ms) + Rendered tasks/index.html.erb within layouts/application (7.0ms) +Completed 200 OK in 52ms (Views: 44.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-29 16:22:21 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mTask Load (0.3ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.0ms) +Completed 200 OK in 38ms (Views: 30.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-29 16:23:37 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mTask Load (0.9ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.9ms) +Completed 200 OK in 43ms (Views: 36.4ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-29 16:24:32 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (5.6ms) +Completed 200 OK in 55ms (Views: 50.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-29 16:24:33 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mTask Load (0.3ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.7ms) +Completed 200 OK in 40ms (Views: 32.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-29 16:26:08 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mTask Load (0.5ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.3ms) +Completed 200 OK in 52ms (Views: 47.2ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-29 16:26:53 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.9ms) +Completed 200 OK in 47ms (Views: 44.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2017-09-29 16:27:45 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.7ms) +Completed 200 OK in 52ms (Views: 47.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/index" for 127.0.0.1 at 2017-09-29 16:28:01 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (3.7ms) + Rendered tasks/index.html.erb within layouts/application (6.0ms) +Completed 200 OK in 35ms (Views: 27.5ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/6?refresh=true&task%5Bcomplete%5D=false" for 127.0.0.1 at 2017-09-29 16:28:04 -0700 +Processing by TasksController#update as HTML + Parameters: {"authenticity_token"=>"oPTI+41b8qBghtdmC5+sAzmOFq9zQsaIPG7fFKubfZxEaEYve6LAzPckU1gUdRkXZvVYPHbpIXfps3b4IL6Ktw==", "refresh"=>"true", "task"=>{"complete"=>"false"}, "id"=>"6"} + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "tasks" SET "complete" = ?, "updated_at" = ? WHERE "tasks"."id" = ?[0m [["complete", "f"], ["updated_at", "2017-09-29 23:28:04.351766"], ["id", 6]] + [1m[35m (8.1ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3000/ +Completed 302 Found in 18ms (ActiveRecord: 9.3ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-29 16:28:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.4ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (6.1ms) + Rendered tasks/index.html.erb within layouts/application (10.1ms) +Completed 200 OK in 47ms (Views: 43.3ms | ActiveRecord: 0.4ms) + + +Started PATCH "/tasks/6?refresh=true&task%5Bcomplete%5D=true&task%5Bcompleted_date%5D=2017-09-29T16%3A28%3A04-07%3A00" for 127.0.0.1 at 2017-09-29 16:28:07 -0700 +Processing by TasksController#update as HTML + Parameters: {"authenticity_token"=>"7AZyfwsriwcFHuLMI+c+jJxIpteUiRG8cbc4xVXy+7IImvyr/dK5a5K8ZvI8DYuYwzPoRJEi9kOkapEp3tcMmQ==", "refresh"=>"true", "task"=>{"complete"=>"true", "completed_date"=>"2017-09-29T16:28:04-07:00"}, "id"=>"6"} + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "tasks" SET "complete" = ?, "completed_date" = ?, "updated_at" = ? WHERE "tasks"."id" = ?[0m [["complete", "t"], ["completed_date", "2017-09-29 23:28:04"], ["updated_at", "2017-09-29 23:28:07.410234"], ["id", 6]] + [1m[35m (1.8ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3000/ +Completed 302 Found in 8ms (ActiveRecord: 2.6ms) + + +Started GET "/" for 127.0.0.1 at 2017-09-29 16:28:07 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.4ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (7.0ms) + Rendered tasks/index.html.erb within layouts/application (10.6ms) +Completed 200 OK in 43ms (Views: 39.1ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/6" for 127.0.0.1 at 2017-09-29 16:28:09 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.3ms) +Completed 200 OK in 43ms (Views: 32.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/index" for 127.0.0.1 at 2017-09-29 16:31:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.3ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (4.3ms) + Rendered tasks/index.html.erb within layouts/application (7.1ms) +Completed 200 OK in 48ms (Views: 40.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/index" for 127.0.0.1 at 2017-09-29 16:31:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.3ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (4.2ms) + Rendered tasks/index.html.erb within layouts/application (6.7ms) +Completed 200 OK in 34ms (Views: 30.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-29 16:31:13 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_task_summary.html.erb (22.7ms) + Rendered tasks/new.html.erb within layouts/application (27.8ms) +Completed 200 OK in 59ms (Views: 51.0ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/index" for 127.0.0.1 at 2017-09-29 16:31:39 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.3ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (6.1ms) + Rendered tasks/index.html.erb within layouts/application (9.9ms) +Completed 200 OK in 49ms (Views: 43.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/index" for 127.0.0.1 at 2017-09-29 16:31:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + [1m[36mTask Load (0.3ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m + Rendered tasks/_form.html.erb (5.9ms) + Rendered tasks/index.html.erb within layouts/application (10.7ms) +Completed 200 OK in 48ms (Views: 42.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for 127.0.0.1 at 2017-09-29 16:31:50 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_task_summary.html.erb (4.1ms) + Rendered tasks/new.html.erb within layouts/application (11.2ms) +Completed 200 OK in 50ms (Views: 43.7ms | ActiveRecord: 0.0ms) + + diff --git a/package.json b/package.json new file mode 100644 index 000000000..f9cbc5515 --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "name": "TaskList", + "private": true, + "dependencies": {} +} diff --git a/public/404.html b/public/404.html new file mode 100644 index 000000000..2be3af26f --- /dev/null +++ b/public/404.html @@ -0,0 +1,67 @@ + + + +You may have mistyped the address or the page may have moved.
+If you are the application owner check the logs for more information.
+Maybe you tried to change something you didn't have access to.
+If you are the application owner check the logs for more information.
+If you are the application owner check the logs for more information.
+