From 3e7764e9fbb7e366c2cb8e7f48da010c16ef83cb Mon Sep 17 00:00:00 2001
From: Cynthia Cobb
Date: Mon, 20 Mar 2017 14:25:22 -0700
Subject: [PATCH 01/34] had to remove ruby gemset file
---
.ruby-gemset | 1 -
.ruby-version | 1 -
2 files changed, 2 deletions(-)
delete mode 100644 .ruby-gemset
delete mode 100644 .ruby-version
diff --git a/.ruby-gemset b/.ruby-gemset
deleted file mode 100644
index 5d2410e51..000000000
--- a/.ruby-gemset
+++ /dev/null
@@ -1 +0,0 @@
-TaskListRails
diff --git a/.ruby-version b/.ruby-version
deleted file mode 100644
index 197c4d5c2..000000000
--- a/.ruby-version
+++ /dev/null
@@ -1 +0,0 @@
-2.4.0
From 750890c5e410a03a2a366c795656a56acc0508ca Mon Sep 17 00:00:00 2001
From: Cynthia Cobb
Date: Mon, 20 Mar 2017 14:32:02 -0700
Subject: [PATCH 02/34] implemented the rails app
---
Gemfile | 53 ++++++
Gemfile.lock | 174 ++++++++++++++++++
Rakefile | 6 +
app/assets/config/manifest.js | 3 +
app/assets/images/.keep | 0
app/assets/javascripts/application.js | 16 ++
app/assets/javascripts/cable.js | 13 ++
app/assets/javascripts/channels/.keep | 0
app/assets/stylesheets/application.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/helpers/application_helper.rb | 2 +
app/jobs/application_job.rb | 2 +
app/mailers/application_mailer.rb | 4 +
app/models/application_record.rb | 3 +
app/models/concerns/.keep | 0
app/views/layouts/application.html.erb | 14 ++
app/views/layouts/mailer.html.erb | 13 ++
app/views/layouts/mailer.text.erb | 1 +
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 | 3 +
config/secrets.yml | 22 +++
config/spring.rb | 6 +
db/seeds.rb | 7 +
lib/assets/.keep | 0
lib/tasks/.keep | 0
log/.keep | 0
public/404.html | 67 +++++++
public/422.html | 67 +++++++
public/500.html | 66 +++++++
public/apple-touch-icon-precomposed.png | 0
public/apple-touch-icon.png | 0
public/favicon.ico | 0
public/robots.txt | 5 +
test/controllers/.keep | 0
test/fixtures/.keep | 0
test/fixtures/files/.keep | 0
test/helpers/.keep | 0
test/integration/.keep | 0
test/mailers/.keep | 0
test/models/.keep | 0
test/test_helper.rb | 10 +
vendor/assets/javascripts/.keep | 0
vendor/assets/stylesheets/.keep | 0
72 files changed, 1092 insertions(+)
create mode 100644 Gemfile
create mode 100644 Gemfile.lock
create mode 100644 Rakefile
create mode 100644 app/assets/config/manifest.js
create mode 100644 app/assets/images/.keep
create mode 100644 app/assets/javascripts/application.js
create mode 100644 app/assets/javascripts/cable.js
create mode 100644 app/assets/javascripts/channels/.keep
create mode 100644 app/assets/stylesheets/application.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/helpers/application_helper.rb
create mode 100644 app/jobs/application_job.rb
create mode 100644 app/mailers/application_mailer.rb
create mode 100644 app/models/application_record.rb
create mode 100644 app/models/concerns/.keep
create mode 100644 app/views/layouts/application.html.erb
create mode 100644 app/views/layouts/mailer.html.erb
create mode 100644 app/views/layouts/mailer.text.erb
create mode 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/seeds.rb
create mode 100644 lib/assets/.keep
create mode 100644 lib/tasks/.keep
create mode 100644 log/.keep
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/fixtures/.keep
create mode 100644 test/fixtures/files/.keep
create mode 100644 test/helpers/.keep
create mode 100644 test/integration/.keep
create mode 100644 test/mailers/.keep
create mode 100644 test/models/.keep
create mode 100644 test/test_helper.rb
create mode 100644 vendor/assets/javascripts/.keep
create mode 100644 vendor/assets/stylesheets/.keep
diff --git a/Gemfile b/Gemfile
new file mode 100644
index 000000000..b5fbf94e0
--- /dev/null
+++ b/Gemfile
@@ -0,0 +1,53 @@
+source 'https://rubygems.org'
+
+git_source(:github) do |repo_name|
+ repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
+ "https://github.com/#{repo_name}.git"
+end
+
+
+# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
+gem 'rails', '~> 5.0.2'
+# Use sqlite3 as the database for Active Record
+gem 'sqlite3'
+# Use Puma as the app server
+gem 'puma', '~> 3.0'
+# Use SCSS for stylesheets
+gem 'sass-rails', '~> 5.0'
+# Use Uglifier as compressor for JavaScript assets
+gem 'uglifier', '>= 1.3.0'
+# Use CoffeeScript for .coffee assets and views
+gem 'coffee-rails', '~> 4.2'
+# See https://github.com/rails/execjs#readme for more supported runtimes
+# gem 'therubyracer', platforms: :ruby
+
+# Use jquery as the JavaScript library
+gem 'jquery-rails'
+# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
+gem 'turbolinks', '~> 5'
+# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
+gem 'jbuilder', '~> 2.5'
+# Use Redis adapter to run Action Cable in production
+# gem 'redis', '~> 3.0'
+# Use ActiveModel has_secure_password
+# gem 'bcrypt', '~> 3.1.7'
+
+# Use Capistrano for deployment
+# gem 'capistrano-rails', group: :development
+
+group :development, :test do
+ # Call 'byebug' anywhere in the code to stop execution and get a debugger console
+ gem 'byebug', platform: :mri
+end
+
+group :development do
+ # Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
+ gem 'web-console', '>= 3.3.0'
+ gem 'listen', '~> 3.0.5'
+ # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
+ gem 'spring'
+ gem 'spring-watcher-listen', '~> 2.0.0'
+end
+
+# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
+gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
diff --git a/Gemfile.lock b/Gemfile.lock
new file mode 100644
index 000000000..559a4476d
--- /dev/null
+++ b/Gemfile.lock
@@ -0,0 +1,174 @@
+GEM
+ remote: https://rubygems.org/
+ specs:
+ actioncable (5.0.2)
+ actionpack (= 5.0.2)
+ nio4r (>= 1.2, < 3.0)
+ websocket-driver (~> 0.6.1)
+ actionmailer (5.0.2)
+ actionpack (= 5.0.2)
+ actionview (= 5.0.2)
+ activejob (= 5.0.2)
+ mail (~> 2.5, >= 2.5.4)
+ rails-dom-testing (~> 2.0)
+ actionpack (5.0.2)
+ actionview (= 5.0.2)
+ activesupport (= 5.0.2)
+ rack (~> 2.0)
+ rack-test (~> 0.6.3)
+ rails-dom-testing (~> 2.0)
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
+ actionview (5.0.2)
+ activesupport (= 5.0.2)
+ builder (~> 3.1)
+ erubis (~> 2.7.0)
+ rails-dom-testing (~> 2.0)
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
+ activejob (5.0.2)
+ activesupport (= 5.0.2)
+ globalid (>= 0.3.6)
+ activemodel (5.0.2)
+ activesupport (= 5.0.2)
+ activerecord (5.0.2)
+ activemodel (= 5.0.2)
+ activesupport (= 5.0.2)
+ arel (~> 7.0)
+ activesupport (5.0.2)
+ concurrent-ruby (~> 1.0, >= 1.0.2)
+ i18n (~> 0.7)
+ minitest (~> 5.1)
+ tzinfo (~> 1.1)
+ arel (7.1.4)
+ builder (3.2.3)
+ byebug (9.0.6)
+ coffee-rails (4.2.1)
+ coffee-script (>= 2.2.0)
+ railties (>= 4.0.0, < 5.2.x)
+ coffee-script (2.4.1)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.12.2)
+ concurrent-ruby (1.0.5)
+ debug_inspector (0.0.2)
+ erubis (2.7.0)
+ execjs (2.7.0)
+ ffi (1.9.18)
+ globalid (0.3.7)
+ activesupport (>= 4.1.0)
+ i18n (0.8.1)
+ jbuilder (2.6.3)
+ activesupport (>= 3.0.0, < 5.2)
+ multi_json (~> 1.2)
+ jquery-rails (4.2.2)
+ rails-dom-testing (>= 1, < 3)
+ railties (>= 4.2.0)
+ thor (>= 0.14, < 2.0)
+ listen (3.0.8)
+ rb-fsevent (~> 0.9, >= 0.9.4)
+ rb-inotify (~> 0.9, >= 0.9.7)
+ loofah (2.0.3)
+ nokogiri (>= 1.5.9)
+ mail (2.6.4)
+ mime-types (>= 1.16, < 4)
+ method_source (0.8.2)
+ mime-types (3.1)
+ mime-types-data (~> 3.2015)
+ mime-types-data (3.2016.0521)
+ mini_portile2 (2.1.0)
+ minitest (5.10.1)
+ multi_json (1.12.1)
+ nio4r (2.0.0)
+ nokogiri (1.7.1)
+ mini_portile2 (~> 2.1.0)
+ puma (3.8.2)
+ rack (2.0.1)
+ rack-test (0.6.3)
+ rack (>= 1.0)
+ rails (5.0.2)
+ actioncable (= 5.0.2)
+ actionmailer (= 5.0.2)
+ actionpack (= 5.0.2)
+ actionview (= 5.0.2)
+ activejob (= 5.0.2)
+ activemodel (= 5.0.2)
+ activerecord (= 5.0.2)
+ activesupport (= 5.0.2)
+ bundler (>= 1.3.0, < 2.0)
+ railties (= 5.0.2)
+ sprockets-rails (>= 2.0.0)
+ rails-dom-testing (2.0.2)
+ activesupport (>= 4.2.0, < 6.0)
+ nokogiri (~> 1.6)
+ rails-html-sanitizer (1.0.3)
+ loofah (~> 2.0)
+ railties (5.0.2)
+ actionpack (= 5.0.2)
+ activesupport (= 5.0.2)
+ method_source
+ rake (>= 0.8.7)
+ thor (>= 0.18.1, < 2.0)
+ rake (12.0.0)
+ rb-fsevent (0.9.8)
+ rb-inotify (0.9.8)
+ ffi (>= 0.5.0)
+ sass (3.4.23)
+ sass-rails (5.0.6)
+ railties (>= 4.0.0, < 6)
+ sass (~> 3.1)
+ sprockets (>= 2.8, < 4.0)
+ sprockets-rails (>= 2.0, < 4.0)
+ tilt (>= 1.1, < 3)
+ spring (2.0.1)
+ activesupport (>= 4.2)
+ spring-watcher-listen (2.0.1)
+ listen (>= 2.7, < 4.0)
+ spring (>= 1.2, < 3.0)
+ sprockets (3.7.1)
+ concurrent-ruby (~> 1.0)
+ rack (> 1, < 3)
+ sprockets-rails (3.2.0)
+ actionpack (>= 4.0)
+ activesupport (>= 4.0)
+ sprockets (>= 3.0.0)
+ sqlite3 (1.3.13)
+ thor (0.19.4)
+ thread_safe (0.3.6)
+ tilt (2.0.7)
+ turbolinks (5.0.1)
+ turbolinks-source (~> 5)
+ turbolinks-source (5.0.0)
+ tzinfo (1.2.2)
+ thread_safe (~> 0.1)
+ uglifier (3.1.9)
+ execjs (>= 0.3.0, < 3)
+ web-console (3.4.0)
+ actionview (>= 5.0)
+ activemodel (>= 5.0)
+ debug_inspector
+ railties (>= 5.0)
+ websocket-driver (0.6.5)
+ websocket-extensions (>= 0.1.0)
+ websocket-extensions (0.1.2)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ byebug
+ coffee-rails (~> 4.2)
+ jbuilder (~> 2.5)
+ jquery-rails
+ listen (~> 3.0.5)
+ puma (~> 3.0)
+ rails (~> 5.0.2)
+ sass-rails (~> 5.0)
+ spring
+ spring-watcher-listen (~> 2.0.0)
+ sqlite3
+ turbolinks (~> 5)
+ tzinfo-data
+ uglifier (>= 1.3.0)
+ web-console (>= 3.3.0)
+
+BUNDLED WITH
+ 1.14.6
diff --git a/Rakefile b/Rakefile
new file mode 100644
index 000000000..e85f91391
--- /dev/null
+++ b/Rakefile
@@ -0,0 +1,6 @@
+# Add your own tasks in files placed in lib/tasks ending in .rake,
+# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
+
+require_relative 'config/application'
+
+Rails.application.load_tasks
diff --git a/app/assets/config/manifest.js b/app/assets/config/manifest.js
new file mode 100644
index 000000000..b16e53d6d
--- /dev/null
+++ b/app/assets/config/manifest.js
@@ -0,0 +1,3 @@
+//= link_tree ../images
+//= link_directory ../javascripts .js
+//= link_directory ../stylesheets .css
diff --git a/app/assets/images/.keep b/app/assets/images/.keep
new file mode 100644
index 000000000..e69de29bb
diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js
new file mode 100644
index 000000000..b12018d09
--- /dev/null
+++ b/app/assets/javascripts/application.js
@@ -0,0 +1,16 @@
+// This is a manifest file that'll be compiled into application.js, which will include all the files
+// listed below.
+//
+// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
+// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
+//
+// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
+// compiled file. JavaScript code in this file should be added after the last require_* statement.
+//
+// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
+// about supported directives.
+//
+//= require jquery
+//= require jquery_ujs
+//= require turbolinks
+//= require_tree .
diff --git a/app/assets/javascripts/cable.js b/app/assets/javascripts/cable.js
new file mode 100644
index 000000000..71ee1e66d
--- /dev/null
+++ b/app/assets/javascripts/cable.js
@@ -0,0 +1,13 @@
+// Action Cable provides the framework to deal with WebSockets in Rails.
+// You can generate new channels where WebSocket features live using the rails generate channel command.
+//
+//= require action_cable
+//= require_self
+//= require_tree ./channels
+
+(function() {
+ this.App || (this.App = {});
+
+ App.cable = ActionCable.createConsumer();
+
+}).call(this);
diff --git a/app/assets/javascripts/channels/.keep b/app/assets/javascripts/channels/.keep
new file mode 100644
index 000000000..e69de29bb
diff --git a/app/assets/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/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/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/jobs/application_job.rb b/app/jobs/application_job.rb
new file mode 100644
index 000000000..a009ace51
--- /dev/null
+++ b/app/jobs/application_job.rb
@@ -0,0 +1,2 @@
+class ApplicationJob < ActiveJob::Base
+end
diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb
new file mode 100644
index 000000000..286b2239d
--- /dev/null
+++ b/app/mailers/application_mailer.rb
@@ -0,0 +1,4 @@
+class ApplicationMailer < ActionMailer::Base
+ default from: 'from@example.com'
+ layout 'mailer'
+end
diff --git a/app/models/application_record.rb b/app/models/application_record.rb
new file mode 100644
index 000000000..10a4cba84
--- /dev/null
+++ b/app/models/application_record.rb
@@ -0,0 +1,3 @@
+class ApplicationRecord < ActiveRecord::Base
+ self.abstract_class = true
+end
diff --git a/app/models/concerns/.keep b/app/models/concerns/.keep
new file mode 100644
index 000000000..e69de29bb
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
new file mode 100644
index 000000000..be7a9f069
--- /dev/null
+++ b/app/views/layouts/application.html.erb
@@ -0,0 +1,14 @@
+
+
+
+ TaskList
+ <%= csrf_meta_tags %>
+
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
+ <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
+
+
+
+ <%= yield %>
+
+
diff --git a/app/views/layouts/mailer.html.erb b/app/views/layouts/mailer.html.erb
new file mode 100644
index 000000000..cbd34d2e9
--- /dev/null
+++ b/app/views/layouts/mailer.html.erb
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+ <%= yield %>
+
+
diff --git a/app/views/layouts/mailer.text.erb b/app/views/layouts/mailer.text.erb
new file mode 100644
index 000000000..37f0bddbd
--- /dev/null
+++ b/app/views/layouts/mailer.text.erb
@@ -0,0 +1 @@
+<%= yield %>
diff --git a/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..787824f88
--- /dev/null
+++ b/config/routes.rb
@@ -0,0 +1,3 @@
+Rails.application.routes.draw do
+ # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
+end
diff --git a/config/secrets.yml b/config/secrets.yml
new file mode 100644
index 000000000..5860e2d80
--- /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: 80b9f330016973239f4db87db078276a00ff1c0e27a866ea1b89b66f3614676094383423fdaee02d217c1ef3cc48e8dc2401d1e9bac9077d59c62e8ca50ccc79
+
+test:
+ secret_key_base: ec486827dd8462f6d4e8082989699221a7fad53a1e7548c8c0d4115014919f9979c13cc0c031f82738fe7aaa14e282fbe0025c41c6d48eb0e31029b9f2e47262
+
+# 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/seeds.rb b/db/seeds.rb
new file mode 100644
index 000000000..1beea2acc
--- /dev/null
+++ b/db/seeds.rb
@@ -0,0 +1,7 @@
+# This file should contain all the record creation needed to seed the database with its default values.
+# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
+#
+# Examples:
+#
+# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
+# Character.create(name: 'Luke', movie: movies.first)
diff --git a/lib/assets/.keep b/lib/assets/.keep
new file mode 100644
index 000000000..e69de29bb
diff --git a/lib/tasks/.keep b/lib/tasks/.keep
new file mode 100644
index 000000000..e69de29bb
diff --git a/log/.keep b/log/.keep
new file mode 100644
index 000000000..e69de29bb
diff --git a/public/404.html b/public/404.html
new file mode 100644
index 000000000..b612547fc
--- /dev/null
+++ b/public/404.html
@@ -0,0 +1,67 @@
+
+
+
+ The page you were looking for doesn't exist (404)
+
+
+
+
+
+
+
+
+
The page you were looking for doesn't exist.
+
You may have mistyped the address or the page may have moved.
+
+
If you are the application owner check the logs for more information.
+
+
+
diff --git a/public/422.html b/public/422.html
new file mode 100644
index 000000000..a21f82b3b
--- /dev/null
+++ b/public/422.html
@@ -0,0 +1,67 @@
+
+
+
+ The change you wanted was rejected (422)
+
+
+
+
+
+
+
+
+
The change you wanted was rejected.
+
Maybe you tried to change something you didn't have access to.
+
+
If you are the application owner check the logs for more information.
+
+
+
diff --git a/public/500.html b/public/500.html
new file mode 100644
index 000000000..061abc587
--- /dev/null
+++ b/public/500.html
@@ -0,0 +1,66 @@
+
+
+
+ We're sorry, but something went wrong (500)
+
+
+
+
+
+
+
+
+
We're sorry, but something went wrong.
+
+
If you are the application owner check the logs for more information.
+
+
+
diff --git a/public/apple-touch-icon-precomposed.png b/public/apple-touch-icon-precomposed.png
new file mode 100644
index 000000000..e69de29bb
diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png
new file mode 100644
index 000000000..e69de29bb
diff --git a/public/favicon.ico b/public/favicon.ico
new file mode 100644
index 000000000..e69de29bb
diff --git a/public/robots.txt b/public/robots.txt
new file mode 100644
index 000000000..3c9c7c01f
--- /dev/null
+++ b/public/robots.txt
@@ -0,0 +1,5 @@
+# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
+#
+# To ban all spiders from the entire site uncomment the next two lines:
+# User-agent: *
+# Disallow: /
diff --git a/test/controllers/.keep b/test/controllers/.keep
new file mode 100644
index 000000000..e69de29bb
diff --git a/test/fixtures/.keep b/test/fixtures/.keep
new file mode 100644
index 000000000..e69de29bb
diff --git a/test/fixtures/files/.keep b/test/fixtures/files/.keep
new file mode 100644
index 000000000..e69de29bb
diff --git a/test/helpers/.keep b/test/helpers/.keep
new file mode 100644
index 000000000..e69de29bb
diff --git a/test/integration/.keep b/test/integration/.keep
new file mode 100644
index 000000000..e69de29bb
diff --git a/test/mailers/.keep b/test/mailers/.keep
new file mode 100644
index 000000000..e69de29bb
diff --git a/test/models/.keep b/test/models/.keep
new file mode 100644
index 000000000..e69de29bb
diff --git a/test/test_helper.rb b/test/test_helper.rb
new file mode 100644
index 000000000..92e39b2d7
--- /dev/null
+++ b/test/test_helper.rb
@@ -0,0 +1,10 @@
+ENV['RAILS_ENV'] ||= 'test'
+require File.expand_path('../../config/environment', __FILE__)
+require 'rails/test_help'
+
+class ActiveSupport::TestCase
+ # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
+ fixtures :all
+
+ # Add more helper methods to be used by all tests here...
+end
diff --git a/vendor/assets/javascripts/.keep b/vendor/assets/javascripts/.keep
new file mode 100644
index 000000000..e69de29bb
diff --git a/vendor/assets/stylesheets/.keep b/vendor/assets/stylesheets/.keep
new file mode 100644
index 000000000..e69de29bb
From 959cba03be1d2c4012105791f0876291afb43e1e Mon Sep 17 00:00:00 2001
From: Cynthia Cobb
Date: Mon, 20 Mar 2017 14:41:19 -0700
Subject: [PATCH 03/34] created the Tasks controller and created the route to
index
---
app/assets/javascripts/tasks.coffee | 3 +++
app/assets/stylesheets/tasks.scss | 3 +++
app/controllers/tasks_controller.rb | 5 +++++
app/helpers/tasks_helper.rb | 2 ++
app/views/tasks/index.html.erb | 2 ++
config/routes.rb | 7 +++++++
log/development.log | 0
test/controllers/tasks_controller_test.rb | 9 +++++++++
8 files changed, 31 insertions(+)
create mode 100644 app/assets/javascripts/tasks.coffee
create mode 100644 app/assets/stylesheets/tasks.scss
create mode 100644 app/controllers/tasks_controller.rb
create mode 100644 app/helpers/tasks_helper.rb
create mode 100644 app/views/tasks/index.html.erb
create mode 100644 log/development.log
create mode 100644 test/controllers/tasks_controller_test.rb
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/tasks.scss b/app/assets/stylesheets/tasks.scss
new file mode 100644
index 000000000..c5e7712d4
--- /dev/null
+++ b/app/assets/stylesheets/tasks.scss
@@ -0,0 +1,3 @@
+// Place all the styles related to the Tasks controller here.
+// They will automatically be included in application.css.
+// You can use Sass (SCSS) here: http://sass-lang.com/
diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb
new file mode 100644
index 000000000..4d57e3bd2
--- /dev/null
+++ b/app/controllers/tasks_controller.rb
@@ -0,0 +1,5 @@
+class TasksController < ApplicationController
+ def index
+ # @task
+ end
+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/views/tasks/index.html.erb b/app/views/tasks/index.html.erb
new file mode 100644
index 000000000..b16c10310
--- /dev/null
+++ b/app/views/tasks/index.html.erb
@@ -0,0 +1,2 @@
+
Tasks#index
+
Find me in app/views/tasks/index.html.erb
diff --git a/config/routes.rb b/config/routes.rb
index 787824f88..e16c3e667 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,3 +1,10 @@
Rails.application.routes.draw do
+ get 'tasks/index'
+
+ # this create a rout to view
+ get 'tasks', to: 'tasks#index'
+
+ # get 'tasks/:id', to: 'tasks#show'
+
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
end
diff --git a/log/development.log b/log/development.log
new file mode 100644
index 000000000..e69de29bb
diff --git a/test/controllers/tasks_controller_test.rb b/test/controllers/tasks_controller_test.rb
new file mode 100644
index 000000000..67683c951
--- /dev/null
+++ b/test/controllers/tasks_controller_test.rb
@@ -0,0 +1,9 @@
+require 'test_helper'
+
+class TasksControllerTest < ActionDispatch::IntegrationTest
+ test "should get index" do
+ get tasks_index_url
+ assert_response :success
+ end
+
+end
From 2f3864d0538a5cce802e8e8b39093e12fa16ad86 Mon Sep 17 00:00:00 2001
From: Cynthia Cobb
Date: Mon, 20 Mar 2017 14:47:53 -0700
Subject: [PATCH 04/34] created aa controller action for task index -an array
of hard-coded tasks
---
app/controllers/tasks_controller.rb | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb
index 4d57e3bd2..a0122d249 100644
--- a/app/controllers/tasks_controller.rb
+++ b/app/controllers/tasks_controller.rb
@@ -1,5 +1,10 @@
class TasksController < ApplicationController
def index
- # @task
+ @tasks = [
+ { task: "grocery shop", complete_by: "date" },
+ { task: "clean bedroom", complete_by: "date" },
+ { task: "homework", complete_by: "date" },
+ { task: "workout-gym", complete_by: "date" }
+ ]
end
end
From 0f7c83268a6c89ce94e1dfaa34e9a64e555d87ff Mon Sep 17 00:00:00 2001
From: Cynthia Cobb
Date: Mon, 20 Mar 2017 15:09:07 -0700
Subject: [PATCH 05/34] have tasks outputting - need to update tasks array to
one provided
---
app/controllers/tasks_controller.rb | 25 ++-
app/views/tasks/index.html.erb | 12 +-
db/development.sqlite3 | 0
log/development.log | 272 ++++++++++++++++++++++++++++
4 files changed, 303 insertions(+), 6 deletions(-)
create mode 100644 db/development.sqlite3
diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb
index a0122d249..fd14de296 100644
--- a/app/controllers/tasks_controller.rb
+++ b/app/controllers/tasks_controller.rb
@@ -1,10 +1,27 @@
class TasksController < ApplicationController
def index
@tasks = [
- { task: "grocery shop", complete_by: "date" },
- { task: "clean bedroom", complete_by: "date" },
- { task: "homework", complete_by: "date" },
- { task: "workout-gym", complete_by: "date" }
+ { task: "grocery shop",
+ description: "Trader Joes: Eggs, Almonds, Oatmeal",
+ due_date: "date",
+ },
+
+ { task: "clean bedroom",
+ description: "vacuum, wash sheets, organize desk",
+ due_date: "date",
+ },
+
+ { task: "homework",
+ description: "finish rails baseline, clean up notes, watch video",
+ due_date: "date" },
+
+ { task: "workout-gym",
+ description: "Belltown Crossfit",
+ due_date: "date",
+ }
]
end
+
+ # def show
+ # end
end
diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb
index b16c10310..56b061a2e 100644
--- a/app/views/tasks/index.html.erb
+++ b/app/views/tasks/index.html.erb
@@ -1,2 +1,10 @@
-
Tasks#index
-
Find me in app/views/tasks/index.html.erb
+
Tasks
+
+
+<% @tasks.each do |task| %>
+
Task: <%=task[:task] %>
+
+
Descrip: <%=task[:description] %>
+
Due Date: <%=task[:due_date]%>
+
+<%end%>
diff --git a/db/development.sqlite3 b/db/development.sqlite3
new file mode 100644
index 000000000..e69de29bb
diff --git a/log/development.log b/log/development.log
index e69de29bb..7e309fd01 100644
--- a/log/development.log
+++ b/log/development.log
@@ -0,0 +1,272 @@
+Started GET "/books" for ::1 at 2017-03-20 14:48:34 -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/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.6ms)
+ Rendered collection of /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [2 times] (3.1ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (12.1ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (18.8ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (166.1ms)
+Started GET "/" for ::1 at 2017-03-20 14:48:37 -0700
+Processing by Rails::WelcomeController#index as HTML
+ Parameters: {"internal"=>true}
+Started GET "/" for ::1 at 2017-03-20 14:48:37 -0700
+Processing by Rails::WelcomeController#index as HTML
+ Parameters: {"internal"=>true}
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb (4.6ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb
+Completed 200 OK in 24ms (Views: 14.3ms | ActiveRecord: 0.0ms)
+
+
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb (0.3ms)
+Completed 200 OK in 14ms (Views: 10.4ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-20 14:48:41 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (0.5ms)
+Completed 200 OK in 641ms (Views: 638.4ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-20 14:54:07 -0700
+
+SyntaxError (/Users/Cynthia/Documents/ADA/queues/rails_projects/rails_week1/TaskList/app/controllers/tasks_controller.rb:19: syntax error, unexpected ';', expecting '}'
+cription: "Belltown Crossfit";
+ ^
+/Users/Cynthia/Documents/ADA/queues/rails_projects/rails_week1/TaskList/app/controllers/tasks_controller.rb:21: syntax error, unexpected '}', expecting keyword_end
+ }
+ ^):
+
+app/controllers/tasks_controller.rb:19: syntax error, unexpected ';', expecting '}'
+app/controllers/tasks_controller.rb:21: syntax error, unexpected '}', expecting keyword_end
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (9.8ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.7ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.6ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (93.4ms)
+Started GET "/tasks" for ::1 at 2017-03-20 14:54:22 -0700
+
+SyntaxError (/Users/Cynthia/Documents/ADA/queues/rails_projects/rails_week1/TaskList/app/controllers/tasks_controller.rb:19: syntax error, unexpected ';', expecting '}'
+cription: "Belltown Crossfit";
+ ^
+/Users/Cynthia/Documents/ADA/queues/rails_projects/rails_week1/TaskList/app/controllers/tasks_controller.rb:21: syntax error, unexpected '}', expecting keyword_end
+ }
+ ^):
+
+app/controllers/tasks_controller.rb:19: syntax error, unexpected ';', expecting '}'
+app/controllers/tasks_controller.rb:21: syntax error, unexpected '}', expecting keyword_end
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (3.7ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.1ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (68.7ms)
+Started GET "/tasks" for ::1 at 2017-03-20 14:54: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.4ms)
+Completed 200 OK in 40ms (Views: 37.7ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-20 14:59:45 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.1ms)
+Completed 200 OK in 76ms (Views: 73.5ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-20 15:00: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 200 OK in 22ms (Views: 20.0ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-20 15:00:03 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (0.6ms)
+Completed 200 OK in 24ms (Views: 21.5ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-20 15:00:32 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (0.6ms)
+Completed 200 OK in 35ms (Views: 31.5ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-20 15:00:43 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.3ms)
+Completed 200 OK in 27ms (Views: 24.2ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-20 15:01:06 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.6ms)
+Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.0ms)
+
+
+
+SyntaxError (/Users/Cynthia/Documents/ADA/queues/rails_projects/rails_week1/TaskList/app/views/tasks/index.html.erb:5: syntax error, unexpected ':'
+utput_buffer.append=(task.key: task[:task] );@output_buffer.
+ ^):
+
+app/views/tasks/index.html.erb:5: syntax error, unexpected ':'
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (9.2ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.4ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.5ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (90.3ms)
+Started GET "/tasks" for ::1 at 2017-03-20 15:01:19 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (0.5ms)
+Completed 200 OK in 24ms (Views: 21.7ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-20 15:01:27 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (0.6ms)
+Completed 200 OK in 19ms (Views: 17.1ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-20 15:01:56 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (2.9ms)
+Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.0ms)
+
+
+
+ActionView::Template::Error (wrong number of arguments (given 0, expected 1)):
+ 4: <% @tasks.each do |task| %>
+ 5:
<%=task[:task] %>
+ 6:
+ 7:
<%=task.key + task[:description] %>
+ 8:
<%=task[:due_date]%>
+ 9:
+ 10: <%end%>
+
+app/views/tasks/index.html.erb:7:in `key'
+app/views/tasks/index.html.erb:7:in `block in _app_views_tasks_index_html_erb__4364107435421265000_70128311641540'
+app/views/tasks/index.html.erb:4:in `each'
+app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb__4364107435421265000_70128311641540'
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (5.4ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (73.4ms)
+Started GET "/tasks" for ::1 at 2017-03-20 15:02:31 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (0.5ms)
+Completed 200 OK in 23ms (Views: 19.8ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-20 15:02:36 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (0.6ms)
+Completed 200 OK in 27ms (Views: 24.4ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-20 15:03:17 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (0.9ms)
+Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.0ms)
+
+
+
+SyntaxError (/Users/Cynthia/Documents/ADA/queues/rails_projects/rails_week1/TaskList/app/views/tasks/index.html.erb:5: syntax error, unexpected ',', expecting keyword_end
+ task.each |key, value|
+ ^
+/Users/Cynthia/Documents/ADA/queues/rails_projects/rails_week1/TaskList/app/views/tasks/index.html.erb:13: syntax error, unexpected keyword_ensure, expecting end-of-input
+ ensure
+ ^):
+
+app/views/tasks/index.html.erb:5: syntax error, unexpected ',', expecting keyword_end
+app/views/tasks/index.html.erb:13: syntax error, unexpected keyword_ensure, expecting end-of-input
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (5.9ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.5ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (67.3ms)
+Started GET "/tasks" for ::1 at 2017-03-20 15:04:16 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (0.5ms)
+Completed 200 OK in 26ms (Views: 22.4ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-20 15:04:43 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.2ms)
+Completed 200 OK in 27ms (Views: 25.0ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-20 15:04: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 22ms (Views: 19.0ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-20 15:08:01 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (2.9ms)
+Completed 200 OK in 56ms (Views: 50.6ms | ActiveRecord: 0.0ms)
+
+
From 6d12f13c02ebb00468835d4e250218a417841a7c Mon Sep 17 00:00:00 2001
From: Cynthia Cobb
Date: Mon, 20 Mar 2017 15:16:09 -0700
Subject: [PATCH 06/34] updated controller method for the given tasks list
---
app/controllers/tasks_controller.rb | 35 +++++++++++----------
app/views/tasks/index.html.erb | 6 ++--
log/development.log | 49 +++++++++++++++++++++++++++++
3 files changed, 70 insertions(+), 20 deletions(-)
diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb
index fd14de296..d4cfdc58f 100644
--- a/app/controllers/tasks_controller.rb
+++ b/app/controllers/tasks_controller.rb
@@ -1,25 +1,26 @@
class TasksController < ApplicationController
def index
- @tasks = [
- { task: "grocery shop",
- description: "Trader Joes: Eggs, Almonds, Oatmeal",
- due_date: "date",
- },
- { task: "clean bedroom",
- description: "vacuum, wash sheets, organize desk",
- due_date: "date",
- },
+ def random_time
+ Time.at(rand * Time.now.to_i)
+ end
+
+ @tasks = [
+ { name: "The First Task", description: "Be amazing", completed_at: random_time },
+ { name: "Go to Brunch", description: "Location - Portage Bay" },
+ { name: "Go to Lunch", description: "Location: Thai", completed_at: random_time },
+ { name: "Go to Second Lunch", description: "Location: Cafe Ladro" },
+ { name: "Play Video Games", description: "Zelda", completed_at: random_time },
+ { name: "High Five Somebody You Don't Know", description: "", completed_at: random_time },
+ { name: "Plant Flowers", description: "sun flowers, roses, lavander", completed_at: random_time },
+ { name: "Call Mom", description: "at 6:30pm" },
+ { name: "Nap.", description: "45 min max", completed_at: random_time }
+ ]
- { task: "homework",
- description: "finish rails baseline, clean up notes, watch video",
- due_date: "date" },
+ # tasks.each do |task|
+ # Task.create task
+ # end
- { task: "workout-gym",
- description: "Belltown Crossfit",
- due_date: "date",
- }
- ]
end
# def show
diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb
index 56b061a2e..3030f4228 100644
--- a/app/views/tasks/index.html.erb
+++ b/app/views/tasks/index.html.erb
@@ -2,9 +2,9 @@
<% @tasks.each do |task| %>
-
Task: <%=task[:task] %>
+
Task: <%=task[:name] %>
-
Descrip: <%=task[:description] %>
-
Due Date: <%=task[:due_date]%>
+
Description: <%=task[:description] %>
+
Due Date: <%=task[:completed_at]%>
<%end%>
diff --git a/log/development.log b/log/development.log
index 7e309fd01..0e0b1cc85 100644
--- a/log/development.log
+++ b/log/development.log
@@ -270,3 +270,52 @@ Processing by TasksController#index as HTML
Completed 200 OK in 56ms (Views: 50.6ms | ActiveRecord: 0.0ms)
+Started GET "/tasks" for ::1 at 2017-03-20 15:11:41 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (3.2ms)
+Completed 200 OK in 52ms (Views: 48.4ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-20 15:12:29 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.7ms)
+Completed 200 OK in 49ms (Views: 46.4ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-20 15:12:54 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.2ms)
+Completed 200 OK in 38ms (Views: 34.2ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-20 15:13:21 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (0.9ms)
+Completed 200 OK in 28ms (Views: 24.9ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-20 15:15:02 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (0.8ms)
+Completed 200 OK in 31ms (Views: 28.3ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-20 15:15:25 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.5ms)
+Completed 200 OK in 42ms (Views: 37.4ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-20 15:15:37 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (0.9ms)
+Completed 200 OK in 28ms (Views: 24.9ms | ActiveRecord: 0.0ms)
+
+
From 85c0f90e50d98f7e205193211ae771ec3b6fdce0 Mon Sep 17 00:00:00 2001
From: Cynthia Cobb
Date: Mon, 20 Mar 2017 16:05:06 -0700
Subject: [PATCH 07/34] have show method working - had to modify the tasks
array and comment out the random time stuff
---
app/controllers/tasks_controller.rb | 41 +-
app/views/tasks/index.html.erb | 11 +-
app/views/tasks/show.html.erb | 4 +
config/routes.rb | 4 +-
log/development.log | 612 ++++++++++++++++++++++++++++
5 files changed, 647 insertions(+), 25 deletions(-)
create mode 100644 app/views/tasks/show.html.erb
diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb
index d4cfdc58f..a6c17a6aa 100644
--- a/app/controllers/tasks_controller.rb
+++ b/app/controllers/tasks_controller.rb
@@ -1,28 +1,33 @@
class TasksController < ApplicationController
- def index
- def random_time
- Time.at(rand * Time.now.to_i)
- end
+ # def 'random_time'
+ # Time.at(rand * Time.now.to_i)
+ # end
+
+ TASKS = [
+ { name: "The First Task", description: "Be amazing", completed_at: 'random_time' },
+ { name: "Go to Brunch", description: "Location - Portage Bay" },
+ { name: "Go to Lunch", description: "Location: Thai", completed_at: 'random_time' },
+ { name: "Go to Second Lunch", description: "Location: Cafe Ladro" },
+ { name: "Play Video Games", description: "Zelda", completed_at: 'random_time' },
+ { name: "High Five Somebody You Don't Know", description: "", completed_at: 'random_time' },
+ { name: "Plant Flowers", description: "sun flowers, roses, lavander", completed_at: 'random_time' },
+ { name: "Call Mom", description: "at 6:30pm" },
+ { name: "Nap.", description: "45 min max", completed_at: 'random_time' }
+ ]
- @tasks = [
- { name: "The First Task", description: "Be amazing", completed_at: random_time },
- { name: "Go to Brunch", description: "Location - Portage Bay" },
- { name: "Go to Lunch", description: "Location: Thai", completed_at: random_time },
- { name: "Go to Second Lunch", description: "Location: Cafe Ladro" },
- { name: "Play Video Games", description: "Zelda", completed_at: random_time },
- { name: "High Five Somebody You Don't Know", description: "", completed_at: random_time },
- { name: "Plant Flowers", description: "sun flowers, roses, lavander", completed_at: random_time },
- { name: "Call Mom", description: "at 6:30pm" },
- { name: "Nap.", description: "45 min max", completed_at: random_time }
- ]
+ def index
+ @tasks = TASKS
# tasks.each do |task|
# Task.create task
# end
-
end
- # def show
- # end
+ def show
+ # code below found online as an example
+ # @book = Book.find(params[:id])
+ id = params[:id].to_i
+ @task = TASKS[id]
+ end
end
diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb
index 3030f4228..606736433 100644
--- a/app/views/tasks/index.html.erb
+++ b/app/views/tasks/index.html.erb
@@ -1,10 +1,11 @@
Tasks
-<% @tasks.each do |task| %>
-
Task: <%=task[:name] %>
+<% @tasks.each_with_index do |task, id| %>
+
Task: <%= link_to task[:name], task_path(id) %>
+
-
Description: <%=task[:description] %>
-
Due Date: <%=task[:completed_at]%>
+
Description: <%= task[:description] %>
+
Due Date: <%= task[:completed_at] %>
-<%end%>
+<% end %>
diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb
new file mode 100644
index 000000000..e3280d29a
--- /dev/null
+++ b/app/views/tasks/show.html.erb
@@ -0,0 +1,4 @@
+
should only show one task
+
+
<%= @task[:name] %>
+index
diff --git a/config/routes.rb b/config/routes.rb
index e16c3e667..64463c4c9 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,10 +1,10 @@
Rails.application.routes.draw do
get 'tasks/index'
- # this create a rout to view
+ # this create a rout to view
get 'tasks', to: 'tasks#index'
- # get 'tasks/:id', to: 'tasks#show'
+ get 'tasks/:id', to: 'tasks#show', as: 'task'
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
end
diff --git a/log/development.log b/log/development.log
index 0e0b1cc85..1723d2ef3 100644
--- a/log/development.log
+++ b/log/development.log
@@ -319,3 +319,615 @@ Processing by TasksController#index as HTML
Completed 200 OK in 28ms (Views: 24.9ms | ActiveRecord: 0.0ms)
+Started GET "/tasks" for ::1 at 2017-03-20 15:17:12 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.0ms)
+Completed 200 OK in 39ms (Views: 36.4ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/" for ::1 at 2017-03-20 15:17:44 -0700
+Processing by Rails::WelcomeController#index as HTML
+ Parameters: {"internal"=>true}
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb (5.5ms)
+Completed 200 OK in 15ms (Views: 8.7ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/" for ::1 at 2017-03-20 15:26:26 -0700
+Processing by Rails::WelcomeController#index as HTML
+ Parameters: {"internal"=>true}
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb (4.4ms)
+Completed 200 OK in 13ms (Views: 8.5ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/show" for ::1 at 2017-03-20 15:26:30 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"show"}
+Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
+
+
+
+ArgumentError (wrong number of arguments (given 0, expected 1)):
+
+app/controllers/tasks_controller.rb:25:in `show'
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (5.2ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.7ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (87.6ms)
+Started GET "/tasks" for ::1 at 2017-03-20 15:27:24 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.8ms)
+Completed 200 OK in 42ms (Views: 39.2ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-20 15:27:50 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.8ms)
+Completed 200 OK in 48ms (Views: 42.9ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/show" for ::1 at 2017-03-20 15:27:53 -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/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.1ms)
+ Rendered collection of /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [3 times] (19.3ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.4ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.4ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (115.8ms)
+Started GET "/show" for ::1 at 2017-03-20 15:29:03 -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/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms)
+ Rendered collection of /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [3 times] (2.3ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.2ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.8ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (105.9ms)
+Started GET "/show" for ::1 at 2017-03-20 15:29:22 -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/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.4ms)
+ Rendered collection of /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [3 times] (2.4ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.6ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (91.1ms)
+Started GET "/show" for ::1 at 2017-03-20 15:29:51 -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/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms)
+ Rendered collection of /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [3 times] (11.2ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.2ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (109.1ms)
+Started GET "/show" for ::1 at 2017-03-20 15:29:53 -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/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.2ms)
+ Rendered collection of /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [3 times] (2.4ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.6ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (100.5ms)
+Started GET "/show" for ::1 at 2017-03-20 15:30:11 -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/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.4ms)
+ Rendered collection of /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [3 times] (1.7ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.2ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (2.1ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (98.4ms)
+Started GET "/show" for ::1 at 2017-03-20 15:30:53 -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/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms)
+ Rendered collection of /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [3 times] (2.5ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.3ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.4ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (101.9ms)
+Started GET "/show/%22Go%20to%20lunch%22" for ::1 at 2017-03-20 15:33:56 -0700
+
+ActionController::RoutingError (No route matches [GET] "/show/%22Go%20to%20lunch%22"):
+
+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/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.3ms)
+ Rendered collection of /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [3 times] (4.5ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.2ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (2.0ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (100.2ms)
+Started GET "/books" for ::1 at 2017-03-20 15:55:45 -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'
+Started GET "/" for ::1 at 2017-03-20 15:55:45 -0700
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms)
+ Rendered collection of /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [3 times] (3.7ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (19.3ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (24.4ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (226.2ms)
+Processing by Rails::WelcomeController#index as HTML
+ Parameters: {"internal"=>true}
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb (3.8ms)
+Completed 200 OK in 11ms (Views: 7.0ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-20 15:55:50 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.8ms)
+Completed 200 OK in 286ms (Views: 282.4ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-20 15:56:08 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (5.2ms)
+Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.0ms)
+
+
+
+ActionView::Template::Error (undefined method `each_with_index' for nil:NilClass):
+ 1:
+
+app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb__354570029914716186_70257104767980'
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (6.7ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.9ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.4ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (84.2ms)
+Started GET "/" for ::1 at 2017-03-20 15:57:21 -0700
+Processing by Rails::WelcomeController#index as HTML
+ Parameters: {"internal"=>true}
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb (3.4ms)
+Completed 200 OK in 10ms (Views: 6.4ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-20 16:00:14 -0700
+
+ActionController::RoutingError (undefined local variable or method `random_time' for TasksController:Class):
+
+app/controllers/tasks_controller.rb:8:in `'
+app/controllers/tasks_controller.rb:1:in `'
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.5ms)
+ Rendered collection of /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [3 times] (4.1ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (4.7ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (2.0ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (114.2ms)
+Started GET "/tasks" for ::1 at 2017-03-20 16:01:09 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (2.6ms)
+Completed 200 OK in 47ms (Views: 43.7ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-20 16:01:38 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (2.2ms)
+Completed 200 OK in 36ms (Views: 33.6ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:01:40 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (1.7ms)
+Completed 200 OK in 51ms (Views: 37.8ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/1" for ::1 at 2017-03-20 16:01:44 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"1"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.7ms)
+Completed 200 OK in 41ms (Views: 36.2ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-20 16:02:31 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.6ms)
+Completed 200 OK in 33ms (Views: 30.3ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:02:32 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.9ms)
+Completed 200 OK in 40ms (Views: 34.1ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:02:33 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (2.1ms)
+Completed 200 OK in 37ms (Views: 32.0ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/1" for ::1 at 2017-03-20 16:02:34 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"1"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.5ms)
+Completed 200 OK in 51ms (Views: 46.1ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:02:35 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (2.0ms)
+Completed 200 OK in 45ms (Views: 39.2ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:02:42 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.5ms)
+Completed 200 OK in 32ms (Views: 28.6ms | ActiveRecord: 0.0ms)
+
+
From d530422f0b8a1501c7544e8a99432ac50ea32b5f Mon Sep 17 00:00:00 2001
From: Cynthia Cobb
Date: Mon, 20 Mar 2017 16:18:09 -0700
Subject: [PATCH 08/34] have basic requirements met for baseline and have the
content I want for each page
---
app/controllers/tasks_controller.rb | 12 +--
app/views/tasks/index.html.erb | 7 +-
app/views/tasks/show.html.erb | 8 +-
log/development.log | 124 ++++++++++++++++++++++++++++
4 files changed, 133 insertions(+), 18 deletions(-)
diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb
index a6c17a6aa..6191f1fdc 100644
--- a/app/controllers/tasks_controller.rb
+++ b/app/controllers/tasks_controller.rb
@@ -1,9 +1,5 @@
class TasksController < ApplicationController
- # def 'random_time'
- # Time.at(rand * Time.now.to_i)
- # end
-
TASKS = [
{ name: "The First Task", description: "Be amazing", completed_at: 'random_time' },
{ name: "Go to Brunch", description: "Location - Portage Bay" },
@@ -13,20 +9,14 @@ class TasksController < ApplicationController
{ name: "High Five Somebody You Don't Know", description: "", completed_at: 'random_time' },
{ name: "Plant Flowers", description: "sun flowers, roses, lavander", completed_at: 'random_time' },
{ name: "Call Mom", description: "at 6:30pm" },
- { name: "Nap.", description: "45 min max", completed_at: 'random_time' }
+ { name: "Nap", description: "45 min max", completed_at: 'random_time' }
]
def index
-
@tasks = TASKS
- # tasks.each do |task|
- # Task.create task
- # end
end
def show
- # code below found online as an example
- # @book = Book.find(params[:id])
id = params[:id].to_i
@task = TASKS[id]
end
diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb
index 606736433..2d8c3db1b 100644
--- a/app/views/tasks/index.html.erb
+++ b/app/views/tasks/index.html.erb
@@ -2,10 +2,7 @@
<% @tasks.each_with_index do |task, id| %>
-
Task: <%= link_to task[:name], task_path(id) %>
+
Task: <%= link_to task[:name], task_path(id) %>
-
-
Description: <%= task[:description] %>
-
Due Date: <%= task[:completed_at] %>
-
+
<% end %>
diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb
index e3280d29a..9e1f59ea1 100644
--- a/app/views/tasks/show.html.erb
+++ b/app/views/tasks/show.html.erb
@@ -1,4 +1,8 @@
-
should only show one task
+
-
<%= @task[:name] %>
+
<%= @task[:name] %>
+
+
Description: <%= @task[:description] %>
+
Due Date: <%= @task[:completed_at] %>
+
index
diff --git a/log/development.log b/log/development.log
index 1723d2ef3..c15add6bb 100644
--- a/log/development.log
+++ b/log/development.log
@@ -931,3 +931,127 @@ Processing by TasksController#index as HTML
Completed 200 OK in 32ms (Views: 28.6ms | ActiveRecord: 0.0ms)
+Started GET "/tasks/4" for ::1 at 2017-03-20 16:11:48 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"4"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (1.4ms)
+Completed 200 OK in 77ms (Views: 66.5ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:11:49 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (2.6ms)
+Completed 200 OK in 63ms (Views: 55.1ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:12:58 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.3ms)
+Completed 200 OK in 62ms (Views: 58.3ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:12:59 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (256.8ms)
+Completed 500 Internal Server Error in 268ms (ActiveRecord: 0.0ms)
+
+
+
+ActionView::Template::Error (undefined local variable or method `task' for #<#:0x007fcc098e0760>
+Did you mean? @task):
+ 2:
+ 3:
<%= @task[:name] %>
+ 4:
+ 5:
Description: <%= task[:description] %>
+ 6:
Due Date: <%= task[:completed_at] %>
+ 7:
+ 8: index
+
+app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb___3688339873639966813_70257155180760'
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (8.2ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.8ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.9ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (84.2ms)
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:13:15 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.8ms)
+Completed 200 OK in 56ms (Views: 50.8ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:13:20 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.3ms)
+Completed 200 OK in 49ms (Views: 42.5ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/2" for ::1 at 2017-03-20 16:13:21 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"2"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (3.0ms)
+Completed 200 OK in 42ms (Views: 37.8ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:13:22 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (2.3ms)
+Completed 200 OK in 56ms (Views: 52.7ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/6" for ::1 at 2017-03-20 16:13:23 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"6"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.6ms)
+Completed 200 OK in 37ms (Views: 30.8ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:13:27 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.7ms)
+Completed 200 OK in 42ms (Views: 34.5ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:15:57 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (2.6ms)
+Completed 200 OK in 59ms (Views: 54.3ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:16:03 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.7ms)
+Completed 200 OK in 33ms (Views: 30.8ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/8" for ::1 at 2017-03-20 16:16:05 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"8"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (1.2ms)
+Completed 200 OK in 65ms (Views: 61.2ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:16:09 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.3ms)
+Completed 200 OK in 44ms (Views: 37.2ms | ActiveRecord: 0.0ms)
+
+
From a1da9a76c9803ef85635700259f7a9c1d9c7d697 Mon Sep 17 00:00:00 2001
From: Cynthia Cobb
Date: Mon, 20 Mar 2017 16:38:16 -0700
Subject: [PATCH 09/34] working on style of pages but nothing fancy
---
app/assets/stylesheets/application.css | 41 +++
app/assets/stylesheets/tasks.scss | 17 +
app/controllers/tasks_controller.rb | 2 +-
app/views/tasks/index.html.erb | 5 +-
app/views/tasks/show.html.erb | 12 +-
log/development.log | 432 +++++++++++++++++++++++++
6 files changed, 501 insertions(+), 8 deletions(-)
diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css
index 0ebd7fe82..e42108f10 100644
--- a/app/assets/stylesheets/application.css
+++ b/app/assets/stylesheets/application.css
@@ -13,3 +13,44 @@
*= require_tree .
*= require_self
*/
+
+ body {
+ background-color: lavender;
+ }
+
+ h1 {
+ border-bottom: solid;
+ font-size: 2em;
+ font-family: sans-serif;
+ text-align: center;
+ }
+
+ p {
+ font-family: Arial;
+ font-size: 1.1em;
+ margin-left: 3%;
+ }
+
+ ul {
+ list-style-type: square;
+ margin: 1%;
+ }
+
+ li {
+ font-size: 1.1em;
+ font-family: Arial;
+ margin: 1%;
+ }
+
+ .bold {
+ display: inline-block;
+ font-weight: bold;
+ }
+
+ a {
+ color: red;
+ font-family: Arial;
+ font-weight: bold;
+ margin-left: 1%;
+ text-decoration: none;
+ }
diff --git a/app/assets/stylesheets/tasks.scss b/app/assets/stylesheets/tasks.scss
index c5e7712d4..6cf4e2589 100644
--- a/app/assets/stylesheets/tasks.scss
+++ b/app/assets/stylesheets/tasks.scss
@@ -1,3 +1,20 @@
// 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/
+
+// body {
+// background-color: lavender;
+// }
+//
+// h1 {
+// font-family: sans-serif;
+// text-align: center;
+// border-bottom: solid;
+// font-size: 2em;
+// }
+//
+// p {
+// font-family: Arial;
+// font-size: 1.1em;
+// margin-left: 3%;
+// }
diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb
index 6191f1fdc..ec2cb326c 100644
--- a/app/controllers/tasks_controller.rb
+++ b/app/controllers/tasks_controller.rb
@@ -5,7 +5,7 @@ class TasksController < ApplicationController
{ name: "Go to Brunch", description: "Location - Portage Bay" },
{ name: "Go to Lunch", description: "Location: Thai", completed_at: 'random_time' },
{ name: "Go to Second Lunch", description: "Location: Cafe Ladro" },
- { name: "Play Video Games", description: "Zelda", completed_at: 'random_time' },
+ { name: "Play Video Games", description: "Zelda Ocarina of Time", completed_at: 'random_time' },
{ name: "High Five Somebody You Don't Know", description: "", completed_at: 'random_time' },
{ name: "Plant Flowers", description: "sun flowers, roses, lavander", completed_at: 'random_time' },
{ name: "Call Mom", description: "at 6:30pm" },
diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb
index 2d8c3db1b..6ba9ccb7c 100644
--- a/app/views/tasks/index.html.erb
+++ b/app/views/tasks/index.html.erb
@@ -1,8 +1,9 @@
-
+
+Home
diff --git a/log/development.log b/log/development.log
index c15add6bb..661673c7d 100644
--- a/log/development.log
+++ b/log/development.log
@@ -1055,3 +1055,435 @@ Processing by TasksController#index as HTML
Completed 200 OK in 44ms (Views: 37.2ms | ActiveRecord: 0.0ms)
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:21:28 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (6.1ms)
+Completed 200 OK in 104ms (Views: 95.6ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:21:30 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (2.8ms)
+Completed 200 OK in 50ms (Views: 43.5ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:21:34 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.8ms)
+Completed 200 OK in 54ms (Views: 48.1ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:21:42 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.5ms)
+Completed 200 OK in 39ms (Views: 36.3ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:21:45 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (1.2ms)
+Completed 200 OK in 109ms (Views: 102.5ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:21:46 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (2.2ms)
+Completed 200 OK in 49ms (Views: 42.9ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:23:03 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.2ms)
+Completed 200 OK in 75ms (Views: 71.5ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:23:35 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.0ms)
+Completed 200 OK in 58ms (Views: 55.5ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:23:47 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.0ms)
+Completed 200 OK in 50ms (Views: 46.3ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:24:08 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.0ms)
+Completed 200 OK in 30ms (Views: 28.4ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:24:29 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.0ms)
+Completed 200 OK in 24ms (Views: 21.2ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:24:34 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.0ms)
+Completed 200 OK in 24ms (Views: 21.3ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:24:42 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.9ms)
+Completed 200 OK in 38ms (Views: 31.8ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:24:43 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (3.4ms)
+Completed 200 OK in 56ms (Views: 52.3ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:25:01 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.1ms)
+Completed 200 OK in 54ms (Views: 52.2ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:25:18 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.0ms)
+Completed 200 OK in 56ms (Views: 52.8ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:25:27 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.0ms)
+Completed 200 OK in 51ms (Views: 49.0ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:25:32 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (9.9ms)
+Completed 200 OK in 111ms (Views: 97.2ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:25:37 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (2.0ms)
+Completed 200 OK in 89ms (Views: 87.1ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:25:58 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.6ms)
+Completed 200 OK in 28ms (Views: 25.0ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/7" for ::1 at 2017-03-20 16:26:01 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"7"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (1.4ms)
+Completed 200 OK in 39ms (Views: 33.4ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/7" for ::1 at 2017-03-20 16:26:52 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"7"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.8ms)
+Completed 200 OK in 57ms (Views: 52.3ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:26:54 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (2.0ms)
+Completed 200 OK in 41ms (Views: 36.7ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:27:06 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.2ms)
+Completed 200 OK in 41ms (Views: 38.4ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:27:34 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.0ms)
+Completed 200 OK in 34ms (Views: 32.1ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:27:52 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (1.2ms)
+Completed 200 OK in 40ms (Views: 33.6ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:28:16 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.5ms)
+Completed 200 OK in 28ms (Views: 25.7ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:28:23 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.8ms)
+Completed 200 OK in 41ms (Views: 38.1ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:28:50 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.5ms)
+Completed 200 OK in 46ms (Views: 43.1ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:28:57 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.7ms)
+Completed 200 OK in 33ms (Views: 29.8ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:29:03 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (1.0ms)
+Completed 200 OK in 37ms (Views: 34.2ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:29:13 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.7ms)
+Completed 200 OK in 36ms (Views: 32.5ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:29:45 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.5ms)
+Completed 200 OK in 32ms (Views: 28.7ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:31:42 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (1.5ms)
+Completed 200 OK in 88ms (Views: 85.3ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:31:54 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (1.2ms)
+Completed 200 OK in 46ms (Views: 43.5ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:32:13 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.6ms)
+Completed 200 OK in 26ms (Views: 23.0ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:32:24 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.7ms)
+Completed 200 OK in 31ms (Views: 27.6ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:32:34 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.9ms)
+Completed 200 OK in 29ms (Views: 26.3ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:32:37 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (3.4ms)
+Completed 200 OK in 58ms (Views: 55.2ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/2" for ::1 at 2017-03-20 16:32:38 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"2"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.6ms)
+Completed 200 OK in 36ms (Views: 31.7ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:32:39 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.4ms)
+Completed 200 OK in 41ms (Views: 35.9ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:32:40 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.6ms)
+Completed 200 OK in 38ms (Views: 32.6ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:33:07 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.9ms)
+Completed 200 OK in 41ms (Views: 38.5ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:33:22 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.7ms)
+Completed 200 OK in 45ms (Views: 40.6ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:33:30 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.6ms)
+Completed 200 OK in 42ms (Views: 39.8ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:33:40 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.9ms)
+Completed 200 OK in 45ms (Views: 39.3ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:34:05 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (1.2ms)
+Completed 200 OK in 35ms (Views: 32.9ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:34:06 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.6ms)
+Completed 200 OK in 34ms (Views: 29.8ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:34:19 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.9ms)
+Completed 200 OK in 72ms (Views: 67.2ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:35:09 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (1.0ms)
+Completed 200 OK in 41ms (Views: 39.0ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:35:17 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.6ms)
+Completed 200 OK in 34ms (Views: 30.5ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:35:21 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.6ms)
+Completed 200 OK in 41ms (Views: 36.8ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:35:32 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.9ms)
+Completed 200 OK in 89ms (Views: 85.8ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:35:59 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.5ms)
+Completed 200 OK in 44ms (Views: 39.7ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 16:36:35 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.7ms)
+Completed 200 OK in 44ms (Views: 42.1ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:36:37 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (2.4ms)
+Completed 200 OK in 39ms (Views: 35.6ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 16:37:44 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (4.0ms)
+Completed 200 OK in 57ms (Views: 52.0ms | ActiveRecord: 0.0ms)
+
+
From 6fbe089daa6290ace8dc99de638b0eca73f3a064 Mon Sep 17 00:00:00 2001
From: Cynthia Cobb
Date: Mon, 20 Mar 2017 21:10:08 -0700
Subject: [PATCH 10/34] updated tasks css - working on the finder details
---
app/assets/stylesheets/application.css | 41 -----
app/assets/stylesheets/tasks.scss | 67 ++++++--
app/views/tasks/show.html.erb | 2 +
log/development.log | 219 +++++++++++++++++++++++++
4 files changed, 272 insertions(+), 57 deletions(-)
diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css
index e42108f10..0ebd7fe82 100644
--- a/app/assets/stylesheets/application.css
+++ b/app/assets/stylesheets/application.css
@@ -13,44 +13,3 @@
*= require_tree .
*= require_self
*/
-
- body {
- background-color: lavender;
- }
-
- h1 {
- border-bottom: solid;
- font-size: 2em;
- font-family: sans-serif;
- text-align: center;
- }
-
- p {
- font-family: Arial;
- font-size: 1.1em;
- margin-left: 3%;
- }
-
- ul {
- list-style-type: square;
- margin: 1%;
- }
-
- li {
- font-size: 1.1em;
- font-family: Arial;
- margin: 1%;
- }
-
- .bold {
- display: inline-block;
- font-weight: bold;
- }
-
- a {
- color: red;
- font-family: Arial;
- font-weight: bold;
- margin-left: 1%;
- text-decoration: none;
- }
diff --git a/app/assets/stylesheets/tasks.scss b/app/assets/stylesheets/tasks.scss
index 6cf4e2589..56a1394dd 100644
--- a/app/assets/stylesheets/tasks.scss
+++ b/app/assets/stylesheets/tasks.scss
@@ -2,19 +2,54 @@
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
-// body {
-// background-color: lavender;
-// }
-//
-// h1 {
-// font-family: sans-serif;
-// text-align: center;
-// border-bottom: solid;
-// font-size: 2em;
-// }
-//
-// p {
-// font-family: Arial;
-// font-size: 1.1em;
-// margin-left: 3%;
-// }
+
+ body {
+ background-color: lightsteelblue;
+ }
+
+ h1 {
+ border-bottom: solid;
+ font-size: 2em;
+ font-family: sans-serif;
+ text-align: center;
+ padding: 2%;
+ }
+
+ p {
+ font-family: Arial;
+ font-size: 1.1em;
+ margin-left: 3%;
+ }
+
+ ul {
+ list-style-type: square;
+ margin: 1%;
+ }
+
+ li {
+ font-size: 1.1em;
+ font-family: Arial;
+ margin: 1%;
+ }
+
+ .bold {
+ display: inline-block;
+ font-weight: bold;
+ }
+
+ a {
+ color: red;
+ font-family: Arial;
+ font-weight: bold;
+ margin-left: 1%;
+ text-decoration: none;
+ }
+
+ a:hover {
+ color: maroon;
+ }
+
+ footer {
+ text-align: center;
+ padding: 2%;
+ }
diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb
index ea5457fab..07faf63ca 100644
--- a/app/views/tasks/show.html.erb
+++ b/app/views/tasks/show.html.erb
@@ -7,4 +7,6 @@
Due Date:
<%= @task[:completed_at] %>
+
diff --git a/log/development.log b/log/development.log
index 661673c7d..442bcccbd 100644
--- a/log/development.log
+++ b/log/development.log
@@ -1487,3 +1487,222 @@ Processing by TasksController#index as HTML
Completed 200 OK in 57ms (Views: 52.0ms | ActiveRecord: 0.0ms)
+Started GET "/" for ::1 at 2017-03-20 21:02:50 -0700
+Processing by Rails::WelcomeController#index as HTML
+ Parameters: {"internal"=>true}
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/railties-5.0.2/lib/rails/templates/rails/welcome/index.html.erb (5.3ms)
+Completed 200 OK in 32ms (Views: 16.0ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-20 21:02:56 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (4.7ms)
+Completed 200 OK in 371ms (Views: 367.1ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/0" for ::1 at 2017-03-20 21:02:59 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"0"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.8ms)
+Completed 200 OK in 46ms (Views: 36.9ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 21:03:01 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.3ms)
+Completed 200 OK in 32ms (Views: 26.8ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/1" for ::1 at 2017-03-20 21:03:07 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"1"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.6ms)
+Completed 200 OK in 31ms (Views: 26.7ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 21:03:24 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.6ms)
+Completed 200 OK in 63ms (Views: 60.3ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 21:03:34 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.0ms)
+Completed 200 OK in 53ms (Views: 49.2ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 21:04:32 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.2ms)
+Completed 200 OK in 62ms (Views: 57.0ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 21:04:57 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.4ms)
+Completed 200 OK in 52ms (Views: 49.2ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 21:05:02 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.1ms)
+Completed 200 OK in 62ms (Views: 59.0ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 21:05:06 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.1ms)
+Completed 200 OK in 52ms (Views: 49.8ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 21:05:12 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.6ms)
+Completed 200 OK in 51ms (Views: 48.4ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 21:05: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.9ms)
+Completed 200 OK in 53ms (Views: 49.9ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/2" for ::1 at 2017-03-20 21:05:28 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"2"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.6ms)
+Completed 200 OK in 63ms (Views: 53.2ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/2" for ::1 at 2017-03-20 21:05:29 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"2"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.6ms)
+Completed 200 OK in 27ms (Views: 24.5ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/2" for ::1 at 2017-03-20 21:05:38 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"2"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.6ms)
+Completed 200 OK in 51ms (Views: 48.2ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/2" for ::1 at 2017-03-20 21:06:15 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"2"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.7ms)
+Completed 200 OK in 54ms (Views: 49.9ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/2" for ::1 at 2017-03-20 21:06:29 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"2"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.7ms)
+Completed 200 OK in 54ms (Views: 51.5ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/2" for ::1 at 2017-03-20 21:06:41 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"2"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.5ms)
+Completed 200 OK in 73ms (Views: 70.6ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/2" for ::1 at 2017-03-20 21:07:01 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"2"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.8ms)
+Completed 200 OK in 54ms (Views: 50.3ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 21:07:06 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.6ms)
+Completed 200 OK in 46ms (Views: 34.4ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/2" for ::1 at 2017-03-20 21:07:09 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"2"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.8ms)
+Completed 200 OK in 44ms (Views: 38.1ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/2" for ::1 at 2017-03-20 21:07:37 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"2"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.5ms)
+Completed 200 OK in 22ms (Views: 20.2ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/2" for ::1 at 2017-03-20 21:07:54 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"2"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.7ms)
+Completed 200 OK in 57ms (Views: 55.0ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/2" for ::1 at 2017-03-20 21:08:03 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"2"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.4ms)
+Completed 200 OK in 52ms (Views: 49.5ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/2" for ::1 at 2017-03-20 21:08:11 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"2"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.8ms)
+Completed 200 OK in 61ms (Views: 57.6ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 21:08:13 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.2ms)
+Completed 200 OK in 35ms (Views: 30.3ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/3" for ::1 at 2017-03-20 21:08:14 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"3"}
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.6ms)
+Completed 200 OK in 38ms (Views: 32.6ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/index" for ::1 at 2017-03-20 21:08:16 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (1.6ms)
+Completed 200 OK in 54ms (Views: 50.7ms | ActiveRecord: 0.0ms)
+
+
From b929a0318848df9aad269aeb5441acdefee5b6b3 Mon Sep 17 00:00:00 2001
From: Cynthia Cobb
Date: Tue, 21 Mar 2017 12:26:51 -0700
Subject: [PATCH 11/34] added some notes to the routes file
---
README.md | 3 +--
config/routes.rb | 1 +
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 399dc287c..f9afe4105 100644
--- a/README.md
+++ b/README.md
@@ -18,7 +18,7 @@ In this baseline, you'll create a new Rails application and get started with two
- 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
-
-<% @tasks.each_with_index do |task, id| %>
-
- <% end %>
diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb
index a4ccf999e..6459d9d8f 100644
--- a/app/views/tasks/show.html.erb
+++ b/app/views/tasks/show.html.erb
@@ -8,10 +8,10 @@
@@ -23,7 +23,6 @@
-
diff --git a/db/development.sqlite3 b/db/development.sqlite3
index fc357b41914a2cb134c192dfe3dcdbe15f084c4b..b6f50262d3e55e22b1bb2e925dca8eb220e2cd33 100644
GIT binary patch
delta 318
zcmZp8z}WDBae_3X(?l6(MyHJlEBuAHxAPw2pTTpEPnjo{ZxaY^mI{#IVbq&!9HUjA
zFTu{BY-#N1n4Vgqkdj(loLW=@VkRn-6s0DXD5T{VDHNra6y+-z85o-D8W`&unJ5?<
zTNxWz85kf7Sy&lcSeaVt85@`wn_A$ONfl;ikkkiS=$xOHmOA-PObkn}s5QgnxLE1U
z;jtEs?EIn($_$d3lV##%(i0`w8N@Y#ihWA+k~0btb5ipabQOvda}rZf++&2zJtoFh
dCdPUeCg#TG=BVyLmSJFEXx=Ot|4e{U5B%P=^2j
delta 249
zcmZp8z}WDBae_3X-9#B@M!Ss(EBuA{MR~)yxAPw2pTTpEPnjo@Cvvk?fCLZY{K>{K
zTJ@UN#*U7@si`FjiFqjs?nOYBql=?LE=ZBUK?eKer$;FEh1R!N|bST-U%@*T`7G
z(89{tz{Jq879ZY
zN^cI2wP0jtU|?utkj$Jc6R*UcoROKFotih"3"}
+ [1m[36mTask Load (0.6ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (4.2ms)
+Completed 200 OK in 66ms (Views: 56.8ms | ActiveRecord: 0.6ms)
+
+
+Started GET "/tasks/3" for ::1 at 2017-03-24 11:29:41 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"3"}
+ [1m[36mTask Load (0.3ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (2.3ms)
+Completed 200 OK in 161ms (Views: 156.3ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks/3" for ::1 at 2017-03-24 11:30:13 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"3"}
+ [1m[36mTask Load (0.3ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (3.5ms)
+Completed 200 OK in 59ms (Views: 51.6ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks/3" for ::1 at 2017-03-24 11:30:36 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"3"}
+ [1m[36mTask Load (0.6ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (1.8ms)
+Completed 200 OK in 123ms (Views: 117.5ms | ActiveRecord: 0.6ms)
+
+
+Started GET "/tasks/3" for ::1 at 2017-03-24 11:36:22 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"3"}
+ [1m[36mTask Load (1.5ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (5.0ms)
+Completed 200 OK in 271ms (Views: 239.0ms | ActiveRecord: 1.5ms)
+
+
+Started GET "/tasks/3" for ::1 at 2017-03-24 11:36:25 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"3"}
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (1.5ms)
+Completed 200 OK in 33ms (Views: 29.0ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 11:36:27 -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/index.html.erb within layouts/application (4.2ms)
+Completed 200 OK in 80ms (Views: 72.2ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 11:36:39 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ [1m[36mTask Load (0.8ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m
+ Rendered tasks/index.html.erb within layouts/application (17.6ms)
+Completed 200 OK in 173ms (Views: 154.6ms | ActiveRecord: 0.8ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 11:36:48 -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/index.html.erb within layouts/application (3.1ms)
+Completed 200 OK in 99ms (Views: 95.3ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 11:38:18 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ [1m[36mTask Load (1.4ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m
+ Rendered tasks/index.html.erb within layouts/application (20.2ms)
+Completed 200 OK in 219ms (Views: 205.8ms | ActiveRecord: 1.4ms)
+
+
+Started GET "/tasks/new" for ::1 at 2017-03-24 11:38:19 -0700
+Processing by TasksController#new as HTML
+ Rendering tasks/new.html.erb within layouts/application
+ Rendered tasks/_form.html.erb (5.2ms)
+ Rendered tasks/new.html.erb within layouts/application (9.8ms)
+Completed 200 OK in 41ms (Views: 34.8ms | ActiveRecord: 0.0ms)
+
+
+Started POST "/tasks" for ::1 at 2017-03-24 11:38:59 -0700
+Processing by TasksController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"tK9labdoy8P7aldOA6fQPocWJ0JiL+X+KgCoR+KgQCzdeLEoT7416fAmVhfbaDgrOt0d8X3vw0+AehuMMr/4Fg==", "task"=>{"name"=>"get dessert", "description"=>"get a treat for retro ", "complete_by"=>"2017-03-24T13:30"}, "commit"=>"Create Task"}
+ [1m[35m (0.4ms)[0m [1m[36mbegin transaction[0m
+ [1m[35mSQL (2.0ms)[0m [1m[32mINSERT INTO "tasks" ("name", "description", "complete_by", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "get dessert"], ["description", "get a treat for retro "], ["complete_by", 2017-03-24 13:30:00 UTC], ["created_at", 2017-03-24 18:38:59 UTC], ["updated_at", 2017-03-24 18:38:59 UTC]]
+ [1m[35m (1.4ms)[0m [1m[36mcommit transaction[0m
+Redirected to http://localhost:3000/tasks
+Completed 302 Found in 13ms (ActiveRecord: 3.8ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 11:38:59 -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/index.html.erb within layouts/application (2.0ms)
+Completed 200 OK in 48ms (Views: 45.7ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 11:40:06 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ [1m[36mTask Load (0.9ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m
+ Rendered tasks/index.html.erb within layouts/application (13.9ms)
+Completed 200 OK in 218ms (Views: 204.6ms | ActiveRecord: 0.9ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 11:40:37 -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/index.html.erb within layouts/application (3.5ms)
+Completed 200 OK in 188ms (Views: 121.5ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 11:41:09 -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/index.html.erb within layouts/application (4.2ms)
+Completed 200 OK in 94ms (Views: 91.7ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 11:43:01 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ [1m[36mTask Load (1.0ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m
+ Rendered tasks/index.html.erb within layouts/application (59.5ms)
+Completed 200 OK in 135ms (Views: 123.6ms | ActiveRecord: 1.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 11:43:13 -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/index.html.erb within layouts/application (4.7ms)
+Completed 200 OK in 112ms (Views: 106.7ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/tasks/new" for ::1 at 2017-03-24 11:43:14 -0700
+Processing by TasksController#new as HTML
+ Rendering tasks/new.html.erb within layouts/application
+ Rendered tasks/_form.html.erb (8.1ms)
+ Rendered tasks/new.html.erb within layouts/application (24.3ms)
+Completed 200 OK in 69ms (Views: 66.0ms | ActiveRecord: 0.0ms)
+
+
+Started POST "/tasks" for ::1 at 2017-03-24 11:43:43 -0700
+Processing by TasksController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"WhHrulUDvpM8hAntvcsF7BsL404naSrkSdOYkxJ7Gp4zxj/7rdVAuTfICLRlBO35psDZ/TipDFXjqStYwmSipA==", "task"=>{"name"=>"Lunch", "description"=>"paleo - salad ", "complete_by"=>"2017-03-24T12:30"}, "commit"=>"Create Task"}
+ [1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
+ [1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "tasks" ("name", "description", "complete_by", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Lunch"], ["description", "paleo - salad "], ["complete_by", 2017-03-24 12:30:00 UTC], ["created_at", 2017-03-24 18:43:43 UTC], ["updated_at", 2017-03-24 18:43:43 UTC]]
+ [1m[35m (1.2ms)[0m [1m[36mcommit transaction[0m
+Redirected to http://localhost:3000/tasks
+Completed 302 Found in 12ms (ActiveRecord: 2.2ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 11:43:43 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ [1m[36mTask Load (0.6ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m
+ Rendered tasks/index.html.erb within layouts/application (4.9ms)
+Completed 200 OK in 49ms (Views: 45.9ms | ActiveRecord: 0.6ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 11:45:05 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ [1m[36mTask Load (1.9ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m
+ Rendered tasks/index.html.erb within layouts/application (14.8ms)
+Completed 200 OK in 259ms (Views: 244.3ms | ActiveRecord: 1.9ms)
+
+
+Started GET "/tasks/3" for ::1 at 2017-03-24 11:45:06 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"3"}
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (3.3ms)
+Completed 200 OK in 71ms (Views: 67.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 11:45:08 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ [1m[36mTask Load (1.1ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m
+ Rendered tasks/index.html.erb within layouts/application (7.9ms)
+Completed 200 OK in 90ms (Views: 84.9ms | ActiveRecord: 1.1ms)
+
+
+Started GET "/tasks/new" for ::1 at 2017-03-24 11:45:09 -0700
+Processing by TasksController#new as HTML
+ Rendering tasks/new.html.erb within layouts/application
+ Rendered tasks/_form.html.erb (4.7ms)
+ Rendered tasks/new.html.erb within layouts/application (9.2ms)
+Completed 200 OK in 49ms (Views: 37.5ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/new" for ::1 at 2017-03-24 11:45:18 -0700
+Processing by TasksController#new as HTML
+ Rendering tasks/new.html.erb within layouts/application
+ Rendered tasks/_form.html.erb (2.8ms)
+ Rendered tasks/new.html.erb within layouts/application (7.2ms)
+Completed 200 OK in 89ms (Views: 87.0ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/new" for ::1 at 2017-03-24 11:45:19 -0700
+Processing by TasksController#new as HTML
+ Rendering tasks/new.html.erb within layouts/application
+ Rendered tasks/_form.html.erb (4.6ms)
+ Rendered tasks/new.html.erb within layouts/application (6.8ms)
+Completed 200 OK in 39ms (Views: 35.0ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/new" for ::1 at 2017-03-24 11:45:32 -0700
+Processing by TasksController#new as HTML
+ Rendering tasks/new.html.erb within layouts/application
+ Rendered tasks/_form.html.erb (19.2ms)
+ Rendered tasks/new.html.erb within layouts/application (23.5ms)
+Completed 200 OK in 179ms (Views: 174.2ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 11:45:34 -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/index.html.erb within layouts/application (4.9ms)
+Completed 200 OK in 57ms (Views: 50.2ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/tasks/11" for ::1 at 2017-03-24 11:45:48 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"11"}
+ [1m[36mTask Load (0.3ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 11], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (3.3ms)
+Completed 200 OK in 59ms (Views: 53.9ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks/11" for ::1 at 2017-03-24 11:49:36 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"11"}
+ [1m[36mTask Load (1.5ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 11], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (9.3ms)
+Completed 200 OK in 256ms (Views: 234.5ms | ActiveRecord: 1.5ms)
+
+
+Started GET "/tasks/11" for ::1 at 2017-03-24 11:50:43 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"11"}
+ [1m[36mTask Load (0.1ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 11], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (2.4ms)
+Completed 200 OK in 105ms (Views: 101.5ms | ActiveRecord: 0.1ms)
+
+
+Started GET "/tasks/11" for ::1 at 2017-03-24 11:50:48 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"11"}
+ [1m[36mTask Load (0.1ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 11], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (1.8ms)
+Completed 200 OK in 94ms (Views: 90.1ms | ActiveRecord: 0.1ms)
+
+
+Started GET "/tasks/11" for ::1 at 2017-03-24 11:50:54 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"11"}
+ [1m[36mTask Load (0.3ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 11], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (1.3ms)
+Completed 200 OK in 93ms (Views: 87.8ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks/11" for ::1 at 2017-03-24 11:50:58 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"11"}
+ [1m[36mTask Load (0.1ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 11], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (1.6ms)
+Completed 200 OK in 92ms (Views: 87.9ms | ActiveRecord: 0.1ms)
+
+
+Started GET "/tasks/11" for ::1 at 2017-03-24 11:51:12 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"11"}
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 11], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (1.3ms)
+Completed 200 OK in 71ms (Views: 67.8ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks/11" for ::1 at 2017-03-24 11:51:23 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"11"}
+ [1m[36mTask Load (0.1ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 11], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (1.3ms)
+Completed 200 OK in 95ms (Views: 90.4ms | ActiveRecord: 0.1ms)
+
+
+Started GET "/tasks/11" for ::1 at 2017-03-24 11:53:59 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"11"}
+ [1m[36mTask Load (1.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 11], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (24.1ms)
+Completed 200 OK in 205ms (Views: 186.7ms | ActiveRecord: 1.2ms)
+
+
+Started GET "/tasks/11" for ::1 at 2017-03-24 11:54:02 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"11"}
+ [1m[36mTask Load (0.1ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 11], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (1.6ms)
+Completed 200 OK in 43ms (Views: 39.2ms | ActiveRecord: 0.1ms)
+
+
+Started GET "/tasks/11" for ::1 at 2017-03-24 11:54:08 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"11"}
+ [1m[36mTask Load (0.3ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 11], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (3.7ms)
+Completed 200 OK in 130ms (Views: 126.5ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 11:54: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/index.html.erb within layouts/application (3.8ms)
+Completed 200 OK in 45ms (Views: 38.7ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks/3" for ::1 at 2017-03-24 11:54:12 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"3"}
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (1.4ms)
+Completed 200 OK in 39ms (Views: 36.2ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks/3" for ::1 at 2017-03-24 11:54:32 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"3"}
+ [1m[36mTask Load (0.1ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (1.3ms)
+Completed 200 OK in 91ms (Views: 88.1ms | ActiveRecord: 0.1ms)
+
+
+Started GET "/tasks/3" for ::1 at 2017-03-24 11:54:34 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"3"}
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (1.6ms)
+Completed 200 OK in 37ms (Views: 31.8ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks/3" for ::1 at 2017-03-24 11:54:38 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"3"}
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (4.9ms)
+Completed 200 OK in 178ms (Views: 174.5ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks/3" for ::1 at 2017-03-24 11:54:59 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"3"}
+ [1m[36mTask Load (0.4ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (4.9ms)
+Completed 200 OK in 132ms (Views: 65.7ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 11:55:00 -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 (2.9ms)
+Completed 200 OK in 42ms (Views: 38.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks/3" for ::1 at 2017-03-24 11:55:01 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"3"}
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (2.0ms)
+Completed 200 OK in 50ms (Views: 44.8ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks/3/edit" for ::1 at 2017-03-24 11:55:10 -0700
+Processing by TasksController#edit as HTML
+ Parameters: {"id"=>"3"}
+ [1m[36mTask Load (0.1ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
+ Rendering tasks/edit.html.erb within layouts/application
+ Rendered tasks/_form.html.erb (7.8ms)
+ Rendered tasks/edit.html.erb within layouts/application (11.7ms)
+Completed 200 OK in 61ms (Views: 53.3ms | ActiveRecord: 0.1ms)
+
+
+Started GET "/tasks/3/edit" for ::1 at 2017-03-24 11:55:17 -0700
+Processing by TasksController#edit as HTML
+ Parameters: {"id"=>"3"}
+ [1m[36mTask Load (0.3ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
+ Rendering tasks/edit.html.erb within layouts/application
+ Rendered tasks/_form.html.erb (3.6ms)
+ Rendered tasks/edit.html.erb within layouts/application (6.1ms)
+Completed 200 OK in 104ms (Views: 97.0ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 11:55:18 -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/index.html.erb within layouts/application (5.9ms)
+Completed 200 OK in 51ms (Views: 47.4ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/tasks/3" for ::1 at 2017-03-24 11:55:26 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"3"}
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (2.5ms)
+Completed 200 OK in 50ms (Views: 44.0ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks/3" for ::1 at 2017-03-24 11:55:48 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"3"}
+ [1m[36mTask Load (0.9ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (9.9ms)
+Completed 200 OK in 207ms (Views: 187.2ms | ActiveRecord: 0.9ms)
+
+
+Started GET "/tasks/3" for ::1 at 2017-03-24 11:56:11 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"3"}
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (2.0ms)
+Completed 200 OK in 44ms (Views: 41.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks/3" for ::1 at 2017-03-24 11:57:01 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"3"}
+ [1m[36mTask Load (1.1ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (7.3ms)
+Completed 500 Internal Server Error in 125ms (ActiveRecord: 1.1ms)
+
+
+
+ActionView::Template::Error (Invalid CSS after " }": expected selector or at-rule, was "}"):
+ 4: TaskList
+ 5: <%= csrf_meta_tags %>
+ 6:
+ 7: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
+ 8: <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
+ 9:
+ 10:
+
+app/assets/stylesheets/tasks.scss:124
+app/views/layouts/application.html.erb:7:in `_app_views_layouts_application_html_erb___3570723872719389317_70148389064940'
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (10.8ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (7.1ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.4ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (111.8ms)
+Started GET "/tasks/3" for ::1 at 2017-03-24 11:57:20 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"3"}
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (3.3ms)
+Completed 200 OK in 103ms (Views: 99.9ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks/3" for ::1 at 2017-03-24 11:57:30 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"3"}
+ [1m[36mTask Load (0.3ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (1.9ms)
+Completed 200 OK in 93ms (Views: 85.4ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks/3" for ::1 at 2017-03-24 11:59:30 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"3"}
+ [1m[36mTask Load (1.5ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (12.9ms)
+Completed 200 OK in 134ms (Views: 103.9ms | ActiveRecord: 1.5ms)
+
+
+Started GET "/tasks/3" for ::1 at 2017-03-24 11:59:38 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"3"}
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (2.8ms)
+Completed 200 OK in 178ms (Views: 173.6ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 11:59: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/index.html.erb within layouts/application (8.3ms)
+Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.3ms)
+
+
+
+ActionView::Template::Error (No route matches {:action=>"edit", :controller=>"tasks"} missing required keys: [:id]):
+ 17: <% @tasks.each_with_index do |task, index| %>
+ 18:
+ 21: <%= link_to "Delete Task", @task, method: :delete, data: { confirm: "You sure?" } %>
+ 22:
+ 23: <% end %>
+
+app/views/tasks/index.html.erb:20:in `block in _app_views_tasks_index_html_erb___3578661494805892554_70148352792400'
+app/views/tasks/index.html.erb:17:in `each_with_index'
+app/views/tasks/index.html.erb:17:in `_app_views_tasks_index_html_erb___3578661494805892554_70148352792400'
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (6.6ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.9ms)
+ Rendering /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.4ms)
+ Rendered /Users/Cynthia/.rvm/gems/ruby-2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (83.2ms)
+Started GET "/tasks" for ::1 at 2017-03-24 12:00:28 -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/index.html.erb within layouts/application (4.7ms)
+Completed 200 OK in 54ms (Views: 45.5ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:00:48 -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/index.html.erb within layouts/application (4.7ms)
+Completed 200 OK in 53ms (Views: 47.7ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks/3/edit" for ::1 at 2017-03-24 12:00:55 -0700
+Processing by TasksController#edit as HTML
+ Parameters: {"id"=>"3"}
+ [1m[36mTask Load (3.1ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
+ Rendering tasks/edit.html.erb within layouts/application
+ Rendered tasks/_form.html.erb (14.6ms)
+ Rendered tasks/edit.html.erb within layouts/application (18.4ms)
+Completed 200 OK in 59ms (Views: 50.1ms | ActiveRecord: 3.1ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:00:57 -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/index.html.erb within layouts/application (7.5ms)
+Completed 200 OK in 85ms (Views: 77.5ms | ActiveRecord: 0.3ms)
+
+
+Started DELETE "/tasks/3" for ::1 at 2017-03-24 12:00:59 -0700
+Processing by TasksController#delete as HTML
+ Parameters: {"authenticity_token"=>"syd1bB3uTlrHIrJj7tznpnQvst+t1CkGhqlo8PTxejQC6DnYqDIHPBnSbcuF/6RgU/0viRg92wQON67TGzg7GA==", "id"=>"3"}
+ [1m[36mTask Load (0.3ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
+ [1m[35mSQL (9.3ms)[0m [1m[31mDELETE FROM "tasks" WHERE "tasks"."id" = ?[0m [["id", 3]]
+ [1m[35m (2.0ms)[0m [1m[36mcommit transaction[0m
+Redirected to http://localhost:3000/tasks
+Completed 302 Found in 21ms (ActiveRecord: 11.9ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:00:59 -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/index.html.erb within layouts/application (5.7ms)
+Completed 200 OK in 43ms (Views: 37.6ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:01:38 -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/index.html.erb within layouts/application (7.6ms)
+Completed 200 OK in 56ms (Views: 51.1ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:01:49 -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.0ms)
+Completed 200 OK in 46ms (Views: 40.7ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:02:36 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ [1m[36mTask Load (0.6ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m
+ Rendered tasks/index.html.erb within layouts/application (7.4ms)
+Completed 200 OK in 161ms (Views: 151.4ms | ActiveRecord: 0.6ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:02:52 -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 (3.9ms)
+Completed 200 OK in 50ms (Views: 45.9ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:02:54 -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/index.html.erb within layouts/application (4.5ms)
+Completed 200 OK in 51ms (Views: 47.1ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:03:00 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ [1m[36mTask Load (0.6ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m
+ Rendered tasks/index.html.erb within layouts/application (6.0ms)
+Completed 200 OK in 90ms (Views: 86.9ms | ActiveRecord: 0.6ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:03:20 -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/index.html.erb within layouts/application (5.1ms)
+Completed 200 OK in 57ms (Views: 54.6ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:05:16 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ [1m[36mTask Load (1.8ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m
+ Rendered tasks/index.html.erb within layouts/application (24.2ms)
+Completed 200 OK in 242ms (Views: 230.2ms | ActiveRecord: 1.8ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:24:56 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ [1m[36mTask Load (0.9ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m
+ Rendered tasks/index.html.erb within layouts/application (17.7ms)
+Completed 200 OK in 114ms (Views: 98.7ms | ActiveRecord: 0.9ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:24:59 -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/index.html.erb within layouts/application (6.6ms)
+Completed 200 OK in 50ms (Views: 46.4ms | ActiveRecord: 0.7ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:25:16 -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/index.html.erb within layouts/application (4.8ms)
+Completed 200 OK in 45ms (Views: 40.9ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:25: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/index.html.erb within layouts/application (3.6ms)
+Completed 200 OK in 55ms (Views: 51.2ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:26:02 -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 (3.5ms)
+Completed 200 OK in 35ms (Views: 32.6ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:26:18 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ [1m[36mTask Load (0.6ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m
+ Rendered tasks/index.html.erb within layouts/application (9.0ms)
+Completed 200 OK in 42ms (Views: 36.8ms | ActiveRecord: 0.6ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:26:29 -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/index.html.erb within layouts/application (4.7ms)
+Completed 200 OK in 44ms (Views: 41.3ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:27:00 -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/index.html.erb within layouts/application (5.9ms)
+Completed 200 OK in 41ms (Views: 36.7ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:27: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/index.html.erb within layouts/application (4.0ms)
+Completed 200 OK in 37ms (Views: 35.0ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:27:30 -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/index.html.erb within layouts/application (6.1ms)
+Completed 200 OK in 50ms (Views: 47.0ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:27:48 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ [1m[36mTask Load (0.6ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m
+ Rendered tasks/index.html.erb within layouts/application (8.8ms)
+Completed 200 OK in 79ms (Views: 74.6ms | ActiveRecord: 0.6ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:27:55 -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 (3.7ms)
+Completed 200 OK in 32ms (Views: 28.7ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:28:03 -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/index.html.erb within layouts/application (4.8ms)
+Completed 200 OK in 103ms (Views: 97.1ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:28: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/index.html.erb within layouts/application (4.3ms)
+Completed 200 OK in 92ms (Views: 89.2ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:28:19 -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/index.html.erb within layouts/application (5.8ms)
+Completed 200 OK in 93ms (Views: 88.9ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:28:24 -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/index.html.erb within layouts/application (4.4ms)
+Completed 200 OK in 101ms (Views: 96.7ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:28:49 -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/index.html.erb within layouts/application (6.4ms)
+Completed 200 OK in 129ms (Views: 124.3ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:29:02 -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 (3.0ms)
+Completed 200 OK in 74ms (Views: 71.3ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:29:05 -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 (4.8ms)
+Completed 200 OK in 30ms (Views: 27.0ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:29:10 -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 (3.3ms)
+Completed 200 OK in 74ms (Views: 71.8ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:29:15 -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 (2.8ms)
+Completed 200 OK in 33ms (Views: 30.2ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:29:19 -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/index.html.erb within layouts/application (4.1ms)
+Completed 200 OK in 93ms (Views: 90.6ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:29:41 -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 (3.2ms)
+Completed 200 OK in 95ms (Views: 92.3ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:29:48 -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 (3.6ms)
+Completed 200 OK in 74ms (Views: 71.7ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:30:07 -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/index.html.erb within layouts/application (5.7ms)
+Completed 200 OK in 94ms (Views: 90.1ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:30:16 -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/index.html.erb within layouts/application (5.4ms)
+Completed 200 OK in 92ms (Views: 88.0ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:30:26 -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.9ms)
+Completed 200 OK in 108ms (Views: 103.7ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:30:48 -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/index.html.erb within layouts/application (14.5ms)
+Completed 200 OK in 195ms (Views: 190.8ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:30:53 -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 (4.4ms)
+Completed 200 OK in 71ms (Views: 68.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:31:14 -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/index.html.erb within layouts/application (4.5ms)
+Completed 200 OK in 71ms (Views: 68.2ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:31:29 -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/index.html.erb within layouts/application (3.6ms)
+Completed 200 OK in 83ms (Views: 78.6ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:31:38 -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 (3.4ms)
+Completed 200 OK in 79ms (Views: 74.8ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:31:48 -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 (4.8ms)
+Completed 200 OK in 100ms (Views: 97.9ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:31: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/index.html.erb within layouts/application (3.7ms)
+Completed 200 OK in 88ms (Views: 84.8ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:32: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/index.html.erb within layouts/application (3.8ms)
+Completed 200 OK in 75ms (Views: 70.3ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:32:05 -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 (3.1ms)
+Completed 200 OK in 71ms (Views: 68.8ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks/7" for ::1 at 2017-03-24 12:32:07 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"7"}
+ [1m[36mTask Load (0.2ms)[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.6ms)
+Completed 200 OK in 42ms (Views: 34.6ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:32:18 -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/index.html.erb within layouts/application (13.8ms)
+Completed 200 OK in 55ms (Views: 50.9ms | ActiveRecord: 0.4ms)
+
+
+Started DELETE "/tasks/7" for ::1 at 2017-03-24 12:32:22 -0700
+Processing by TasksController#delete as HTML
+ Parameters: {"authenticity_token"=>"qI6rTqh1aDPl9ILS1dmJxhoyvKC5q3+29XiTEZ04dUoZQef6HakhVTsEXXq++soAPeAh9gxCjbR95lUycvE0Zg==", "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.2ms)[0m [1m[36mbegin transaction[0m
+ [1m[35mSQL (0.5ms)[0m [1m[31mDELETE FROM "tasks" WHERE "tasks"."id" = ?[0m [["id", 7]]
+ [1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
+Redirected to http://localhost:3000/tasks
+Completed 302 Found in 7ms (ActiveRecord: 1.9ms)
+
+
+Started GET "/tasks" for ::1 at 2017-03-24 12:32:22 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ [1m[36mTask Load (1.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m
+ Rendered tasks/index.html.erb within layouts/application (8.4ms)
+Completed 200 OK in 56ms (Views: 50.4ms | ActiveRecord: 1.2ms)
+
+
From 25ac05fd51f95d3d91d64535abdc2d10b388f5f7 Mon Sep 17 00:00:00 2001
From: Cynthia Cobb
Date: Fri, 24 Mar 2017 14:46:45 -0700
Subject: [PATCH 30/34] working on adding the completed at feature
---
app/assets/stylesheets/tasks.scss | 1 +
db/development.sqlite3 | Bin 28672 -> 28672 bytes
.../20170324214318_add_col_completed_at.rb | 5 +++++
db/schema.rb | 7 +++---
log/development.log | 21 ++++++++++++++++++
5 files changed, 31 insertions(+), 3 deletions(-)
create mode 100644 db/migrate/20170324214318_add_col_completed_at.rb
diff --git a/app/assets/stylesheets/tasks.scss b/app/assets/stylesheets/tasks.scss
index d5047ee2e..eea34d1c7 100644
--- a/app/assets/stylesheets/tasks.scss
+++ b/app/assets/stylesheets/tasks.scss
@@ -150,6 +150,7 @@ footer {
text-align: center;
}
+// selector for submit button
/*input[type=submit] {
background-color: lightblue;
border-radius: 20%;
diff --git a/db/development.sqlite3 b/db/development.sqlite3
index b6f50262d3e55e22b1bb2e925dca8eb220e2cd33..6cd14c3dd78c196ff1feacb677c4eb854a3ab876 100644
GIT binary patch
delta 188
zcmZp8z}WDBae}mNoNM#zXiO!P7G|^-x>L>`M2^Z@_piY&;5O4
zV?8%lV<|hkxVSiDv*%u21heq}
zV7R~8jdvdt7c>7U2L5;aclb|j78KaSFC@Usq-kVeXl`I^WMX7!Vr*zJ`Hs8>P}vEP
avfKP8fXa69Prj|s%>k8X-h5kM)d2vEG&Mf}
delta 121
zcmZp8z}WDBae}m<69WSSI}pPF>qH%6Nhb!~zXiPfKN#3}-ZS!B^Ka!-"11"}
+ [1m[36mTask Load (2.8ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 11], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (13.0ms)
+Completed 200 OK in 118ms (Views: 92.9ms | ActiveRecord: 2.8ms)
+
+
+ [1m[35m (0.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+Migrating to AddColCompletedAt (20170324214318)
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (2.0ms)[0m [1m[35mALTER TABLE "tasks" ADD "completed_at" datetime[0m
+ [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170324214318"]]
+ [1m[35m (1.1ms)[0m [1m[36mcommit transaction[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[36mTask Load (2.0ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m
From 1359a0799d6c404aff4374a98f97865bcc4e33db Mon Sep 17 00:00:00 2001
From: Cynthia Cobb
Date: Fri, 24 Mar 2017 15:33:26 -0700
Subject: [PATCH 31/34] have added the completed at field and users can edit
this
---
app/assets/stylesheets/tasks.scss | 31 +-
app/controllers/tasks_controller.rb | 2 +-
app/models/task.rb | 4 +
app/views/tasks/_form.html.erb | 3 +
app/views/tasks/show.html.erb | 15 +-
config/routes.rb | 3 +-
db/development.sqlite3 | Bin 28672 -> 28672 bytes
log/development.log | 1457 +++++++++++++++++++++++++++
8 files changed, 1500 insertions(+), 15 deletions(-)
diff --git a/app/assets/stylesheets/tasks.scss b/app/assets/stylesheets/tasks.scss
index eea34d1c7..d227a80df 100644
--- a/app/assets/stylesheets/tasks.scss
+++ b/app/assets/stylesheets/tasks.scss
@@ -54,12 +54,14 @@ header {
main {
vertical-align: text-top;
display: inline-block;
- text-align: center;
+ // text-align: center;
width: 100%;
/*margin-top: 1%;*/
nav {
padding-top: 1%;
+ margin: 2%;
+ margin-top: 0;
display: inline-block;
vertical-align: text-top;
text-align: left;
@@ -101,7 +103,7 @@ main {
font-size: 1.3em;
// text-align: center;
text-align: left;
- margin: 1%;
+ // margin: 1%;
// padding-left: 5%;
}
@@ -112,13 +114,22 @@ main {
}
}
-
+ p {
+ // display: inline-block;
+ font-size: 2em;
+ padding: .5%;
+ margin: 0;
+ // text-align: left;
+ }
+ a {
+ color: red;
+ }
ul {
list-style-type: disc;
- margin: 1%;
+ // margin: 1%;
text-align: left;
- padding-left: 5%;
+ // padding-left: 5%;
// padding-top: 2%;
}
@@ -131,11 +142,11 @@ main {
}
label {
- display: inline-block;
+ // display: inline-block;
font-family: 'Patrick Hand SC';
font-size: 1.3em;
- margin: 3%;
- text-align: center;
+ margin: 1%;
+ // text-align: center;
}
input {
@@ -148,6 +159,10 @@ input {
footer {
text-align: center;
+
+ a {
+ font-size: 1.9em;
+ }
}
// selector for submit button
diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb
index 4edd8bfb0..2fb12c977 100644
--- a/app/controllers/tasks_controller.rb
+++ b/app/controllers/tasks_controller.rb
@@ -44,6 +44,6 @@ def delete
# if given bad stuff - it gets dumped but any "good data" will get through
# need to validate user input but we wont do that here or right now
def task_params
- return params.require(:task).permit(:name, :description, :complete_by)
+ return params.require(:task).permit(:name, :description, :complete_by, :completed_at)
end
end
diff --git a/app/models/task.rb b/app/models/task.rb
index 3c2342421..6fe7aa4fb 100644
--- a/app/models/task.rb
+++ b/app/models/task.rb
@@ -1,2 +1,6 @@
class Task < ApplicationRecord
+ #
+ # def generate_completed_at_date_time
+ # self.completed_at = DateTime.now
+ # end
end
diff --git a/app/views/tasks/_form.html.erb b/app/views/tasks/_form.html.erb
index 8e2f86839..3e9c449a0 100644
--- a/app/views/tasks/_form.html.erb
+++ b/app/views/tasks/_form.html.erb
@@ -8,5 +8,8 @@
<%= f.label :complete_by %>
<%= f.datetime_local_field :complete_by %>
+ <%= f.label :completed_at %>
+ <%= f.datetime_local_field :completed_at %>
+
<%= f.submit %>
<% end %>
diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb
index 6459d9d8f..bee99e607 100644
--- a/app/views/tasks/show.html.erb
+++ b/app/views/tasks/show.html.erb
@@ -10,21 +10,26 @@