From 80296bed634c735c15840b726cbfc5a0485f9c05 Mon Sep 17 00:00:00 2001
From: Amy Cash Find me in app/views/tasks/index.html.erb
+ <%= "These are the breaks" %>
+ You may have mistyped the address or the page may have moved. If you are the application owner check the logs for more information. Maybe you tried to change something you didn't have access to. If you are the application owner check the logs for more information. If you are the application owner check the logs for more information.This is a test to see how this works
+Tasks#index
+
+ <% @tasks.each do |task| %>
+
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..78c4e861d
--- /dev/null
+++ b/bin/setup
@@ -0,0 +1,38 @@
+#!/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')
+
+ # Install JavaScript dependencies if using Yarn
+ # system('bin/yarn')
+
+
+ # puts "\n== Copying sample files =="
+ # unless File.exist?('config/database.yml')
+ # cp 'config/database.yml.sample', 'config/database.yml'
+ # end
+
+ puts "\n== Preparing database =="
+ system! 'bin/rails db:setup'
+
+ puts "\n== Removing old logs and tempfiles =="
+ system! 'bin/rails log:clear tmp:clear'
+
+ puts "\n== Restarting application server =="
+ system! 'bin/rails restart'
+end
diff --git a/bin/spring b/bin/spring
new file mode 100755
index 000000000..fb2ec2ebb
--- /dev/null
+++ b/bin/spring
@@ -0,0 +1,17 @@
+#!/usr/bin/env ruby
+
+# This file loads spring without using Bundler, in order to be fast.
+# It gets overwritten when you run the `spring binstub` command.
+
+unless defined?(Spring)
+ require 'rubygems'
+ require 'bundler'
+
+ lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read)
+ spring = lockfile.specs.detect { |spec| spec.name == "spring" }
+ if spring
+ Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
+ gem 'spring', spring.version
+ require 'spring/binstub'
+ end
+end
diff --git a/bin/update b/bin/update
new file mode 100755
index 000000000..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/bin/yarn b/bin/yarn
new file mode 100755
index 000000000..c2bacef83
--- /dev/null
+++ b/bin/yarn
@@ -0,0 +1,11 @@
+#!/usr/bin/env ruby
+VENDOR_PATH = File.expand_path('..', __dir__)
+Dir.chdir(VENDOR_PATH) do
+ begin
+ exec "yarnpkg #{ARGV.join(" ")}"
+ rescue Errno::ENOENT
+ $stderr.puts "Yarn executable was not detected in the system."
+ $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
+ exit 1
+ end
+end
diff --git a/config.ru b/config.ru
new file mode 100644
index 000000000..f7ba0b527
--- /dev/null
+++ b/config.ru
@@ -0,0 +1,5 @@
+# This file is used by Rack-based servers to start the application.
+
+require_relative 'config/environment'
+
+run Rails.application
diff --git a/config/application.rb b/config/application.rb
new file mode 100644
index 000000000..16136d34f
--- /dev/null
+++ b/config/application.rb
@@ -0,0 +1,18 @@
+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
+ # Initialize configuration defaults for originally generated Rails version.
+ config.load_defaults 5.1
+
+ # 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..cc73740fa
--- /dev/null
+++ b/config/cable.yml
@@ -0,0 +1,10 @@
+development:
+ adapter: async
+
+test:
+ adapter: async
+
+production:
+ adapter: redis
+ url: redis://localhost:6379/1
+ channel_prefix: TaskList_production
diff --git a/config/database.yml b/config/database.yml
new file mode 100644
index 000000000..0d02f2498
--- /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: <%= ENV.fetch("RAILS_MAX_THREADS") { 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..5187e2218
--- /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=#{2.days.seconds.to_i}"
+ }
+ 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..fcd7d8b14
--- /dev/null
+++ b/config/environments/production.rb
@@ -0,0 +1,91 @@
+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
+
+ # Attempt to read encrypted secrets from `config/secrets.yml.enc`.
+ # Requires an encryption key in `ENV["RAILS_MASTER_KEY"]` or
+ # `config/secrets.yml.key`.
+ config.read_encrypted_secrets = 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..8e5cbde53
--- /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=#{1.hour.seconds.to_i}"
+ }
+
+ # Show full error reports and disable caching.
+ config.consider_all_requests_local = true
+ config.action_controller.perform_caching = false
+
+ # Raise exceptions instead of rendering exception templates.
+ config.action_dispatch.show_exceptions = false
+
+ # Disable request forgery protection in test environment.
+ config.action_controller.allow_forgery_protection = false
+ 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..89d2efab2
--- /dev/null
+++ b/config/initializers/application_controller_renderer.rb
@@ -0,0 +1,8 @@
+# Be sure to restart your server when you modify this file.
+
+# ActiveSupport::Reloader.to_prepare do
+# ApplicationController.renderer.defaults.merge!(
+# http_host: 'example.org',
+# https: false
+# )
+# end
diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb
new file mode 100644
index 000000000..4b828e80c
--- /dev/null
+++ b/config/initializers/assets.rb
@@ -0,0 +1,14 @@
+# Be sure to restart your server when you modify this file.
+
+# Version of your assets, change this if you want to expire all your assets.
+Rails.application.config.assets.version = '1.0'
+
+# Add additional assets to the asset load path.
+# Rails.application.config.assets.paths << Emoji.images_path
+# Add Yarn node_modules folder to the asset load path.
+Rails.application.config.assets.paths << Rails.root.join('node_modules')
+
+# Precompile additional assets.
+# application.js, application.css, and all non-JS/CSS in the app/assets
+# folder are already added.
+# Rails.application.config.assets.precompile += %w( admin.js admin.css )
diff --git a/config/initializers/backtrace_silencers.rb b/config/initializers/backtrace_silencers.rb
new file mode 100644
index 000000000..59385cdf3
--- /dev/null
+++ b/config/initializers/backtrace_silencers.rb
@@ -0,0 +1,7 @@
+# Be sure to restart your server when you modify this file.
+
+# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
+# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
+
+# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
+# Rails.backtrace_cleaner.remove_silencers!
diff --git a/config/initializers/cookies_serializer.rb b/config/initializers/cookies_serializer.rb
new file mode 100644
index 000000000..5a6a32d37
--- /dev/null
+++ b/config/initializers/cookies_serializer.rb
@@ -0,0 +1,5 @@
+# Be sure to restart your server when you modify this file.
+
+# Specify a serializer for the signed and encrypted cookie jars.
+# Valid options are :json, :marshal, and :hybrid.
+Rails.application.config.action_dispatch.cookies_serializer = :json
diff --git a/config/initializers/filter_parameter_logging.rb b/config/initializers/filter_parameter_logging.rb
new file mode 100644
index 000000000..4a994e1e7
--- /dev/null
+++ b/config/initializers/filter_parameter_logging.rb
@@ -0,0 +1,4 @@
+# Be sure to restart your server when you modify this file.
+
+# Configure sensitive parameters which will be filtered from the log file.
+Rails.application.config.filter_parameters += [:password]
diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb
new file mode 100644
index 000000000..ac033bf9d
--- /dev/null
+++ b/config/initializers/inflections.rb
@@ -0,0 +1,16 @@
+# Be sure to restart your server when you modify this file.
+
+# Add new inflection rules using the following format. Inflections
+# are locale specific, and you may define rules for as many different
+# locales as you wish. All of these examples are active by default:
+# ActiveSupport::Inflector.inflections(:en) do |inflect|
+# inflect.plural /^(ox)$/i, '\1en'
+# inflect.singular /^(ox)en/i, '\1'
+# inflect.irregular 'person', 'people'
+# inflect.uncountable %w( fish sheep )
+# end
+
+# These inflection rules are supported but not enabled by default:
+# ActiveSupport::Inflector.inflections(:en) do |inflect|
+# inflect.acronym 'RESTful'
+# end
diff --git a/config/initializers/mime_types.rb b/config/initializers/mime_types.rb
new file mode 100644
index 000000000..dc1899682
--- /dev/null
+++ b/config/initializers/mime_types.rb
@@ -0,0 +1,4 @@
+# Be sure to restart your server when you modify this file.
+
+# Add new mime types for use in respond_to blocks:
+# Mime::Type.register "text/richtext", :rtf
diff --git a/config/initializers/wrap_parameters.rb b/config/initializers/wrap_parameters.rb
new file mode 100644
index 000000000..bbfc3961b
--- /dev/null
+++ b/config/initializers/wrap_parameters.rb
@@ -0,0 +1,14 @@
+# Be sure to restart your server when you modify this file.
+
+# This file contains settings for ActionController::ParamsWrapper which
+# is enabled by default.
+
+# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
+ActiveSupport.on_load(:action_controller) do
+ wrap_parameters format: [:json]
+end
+
+# To enable root element in JSON for ActiveRecord objects.
+# ActiveSupport.on_load(:active_record) do
+# self.include_root_in_json = true
+# end
diff --git a/config/locales/en.yml b/config/locales/en.yml
new file mode 100644
index 000000000..decc5a857
--- /dev/null
+++ b/config/locales/en.yml
@@ -0,0 +1,33 @@
+# Files in the config/locales directory are used for internationalization
+# and are automatically loaded by Rails. If you want to use locales other
+# than English, add the necessary files in this directory.
+#
+# To use the locales, use `I18n.t`:
+#
+# I18n.t 'hello'
+#
+# In views, this is aliased to just `t`:
+#
+# <%= t('hello') %>
+#
+# To use a different locale, set it with `I18n.locale`:
+#
+# I18n.locale = :es
+#
+# This would use the information in config/locales/es.yml.
+#
+# The following keys must be escaped otherwise they will not be retrieved by
+# the default I18n backend:
+#
+# true, false, on, off, yes, no
+#
+# Instead, surround them with single quotes.
+#
+# en:
+# 'true': 'foo'
+#
+# To learn more, please read the Rails Internationalization guide
+# available at http://guides.rubyonrails.org/i18n.html.
+
+en:
+ hello: "Hello world"
diff --git a/config/puma.rb b/config/puma.rb
new file mode 100644
index 000000000..1e19380dc
--- /dev/null
+++ b/config/puma.rb
@@ -0,0 +1,56 @@
+# Puma can serve each request in a thread from an internal thread pool.
+# The `threads` method setting takes two numbers: a minimum and maximum.
+# Any libraries that use thread pools should be configured to match
+# the maximum value specified for Puma. Default is set to 5 threads for minimum
+# and maximum; this matches the default thread size of Active Record.
+#
+threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
+threads threads_count, threads_count
+
+# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
+#
+port ENV.fetch("PORT") { 3000 }
+
+# Specifies the `environment` that Puma will run in.
+#
+environment ENV.fetch("RAILS_ENV") { "development" }
+
+# Specifies the number of `workers` to boot in clustered mode.
+# Workers are forked webserver processes. If using threads and workers together
+# the concurrency of the application would be max `threads` * `workers`.
+# Workers do not work on JRuby or Windows (both of which do not support
+# processes).
+#
+# workers ENV.fetch("WEB_CONCURRENCY") { 2 }
+
+# Use the `preload_app!` method when specifying a `workers` number.
+# This directive tells Puma to first boot the application and load code
+# before forking the application. This takes advantage of Copy On Write
+# process behavior so workers use less memory. If you use this option
+# you need to make sure to reconnect any threads in the `on_worker_boot`
+# block.
+#
+# preload_app!
+
+# If you are preloading your application and using Active Record, it's
+# recommended that you close any connections to the database before workers
+# are forked to prevent connection leakage.
+#
+# before_fork do
+# ActiveRecord::Base.connection_pool.disconnect! if defined?(ActiveRecord)
+# end
+
+# 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 the `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, as 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..8dbdf9e71
--- /dev/null
+++ b/config/routes.rb
@@ -0,0 +1,19 @@
+Rails.application.routes.draw do
+ get 'tasks/index'
+
+ # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
+
+# get '/tasks/new', to: 'tasks#new', as: 'new_task'
+get '/tasks', to: 'tasks#index', as: 'index'
+#
+# get '/tasks/:id/edit', to: 'tasks#edit', as: 'edit_task'
+#
+# post '/tasks', to: 'tasks#create', as: 'create_task'
+# get '/tasks/:id', to: 'tasks#show', as: 'show_task'
+#
+# patch '/tasks:id', to: 'tasks#update', as: 'update_task'
+# delete '/tasks:id', to: 'tasks#destroy', as: 'delete'
+
+
+
+end
diff --git a/config/secrets.yml b/config/secrets.yml
new file mode 100644
index 000000000..8731af94a
--- /dev/null
+++ b/config/secrets.yml
@@ -0,0 +1,32 @@
+# 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.
+
+# Shared secrets are available across all environments.
+
+# shared:
+# api_key: a1B2c3D4e5F6
+
+# Environmental secrets are only available for that specific environment.
+
+development:
+ secret_key_base: 48f6efddf0ea7c2ad845e8417509a62a8382034367aafe277411ce41b225399aa67a7ff2c53c0e59971c6e5ab606cd294b5bd22f2005b71abb2097afb6eaef06
+
+test:
+ secret_key_base: acd2cba187e445b1be9ec5ae824c7a1dc0cf91b8210223729e2d2db95ee84f06fcbcdaec6f8523646ea80167624aec618f893df285377b9dc07582ba613b51dc
+
+# Do not keep production secrets in the unencrypted secrets file.
+# Instead, either read values from the environment.
+# Or, use `bin/rails secrets:setup` to configure encrypted secrets
+# and move the `production:` environment over there.
+
+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/log/development.log b/log/development.log
new file mode 100644
index 000000000..76415c028
--- /dev/null
+++ b/log/development.log
@@ -0,0 +1,214 @@
+Started GET "/" for 127.0.0.1 at 2017-09-18 14:55:06 -0700
+Processing by Rails::WelcomeController#index as HTML
+ Rendering /Users/amymcash/.rvm/gems/ruby-2.4.1@global/gems/railties-5.1.4/lib/rails/templates/rails/welcome/index.html.erb
+ Rendered /Users/amymcash/.rvm/gems/ruby-2.4.1@global/gems/railties-5.1.4/lib/rails/templates/rails/welcome/index.html.erb (4.2ms)
+Completed 200 OK in 126ms (Views: 11.5ms)
+
+
+Started GET "/tasks" for 127.0.0.1 at 2017-09-18 14:57:42 -0700
+
+ActionController::RoutingError (No route matches [GET] "/tasks"):
+
+actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call'
+web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app'
+web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call'
+web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch'
+web-console (3.5.1) lib/web_console/middleware.rb:18:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
+railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app'
+railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call'
+activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged'
+activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged'
+activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged'
+railties (5.1.4) lib/rails/rack/logger.rb:24:in `call'
+sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call'
+rack (2.0.3) lib/rack/method_override.rb:22:in `call'
+rack (2.0.3) lib/rack/runtime.rb:22:in `call'
+activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call'
+rack (2.0.3) lib/rack/sendfile.rb:111:in `call'
+railties (5.1.4) lib/rails/engine.rb:522:in `call'
+puma (3.10.0) lib/puma/configuration.rb:225:in `call'
+puma (3.10.0) lib/puma/server.rb:605:in `handle_request'
+puma (3.10.0) lib/puma/server.rb:437:in `process_client'
+puma (3.10.0) lib/puma/server.rb:301:in `block in run'
+puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread'
+Started GET "/Tasks" for 127.0.0.1 at 2017-09-18 14:57:53 -0700
+
+ActionController::RoutingError (No route matches [GET] "/Tasks"):
+
+actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call'
+web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app'
+web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call'
+web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch'
+web-console (3.5.1) lib/web_console/middleware.rb:18:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
+railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app'
+railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call'
+activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged'
+activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged'
+activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged'
+railties (5.1.4) lib/rails/rack/logger.rb:24:in `call'
+sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call'
+rack (2.0.3) lib/rack/method_override.rb:22:in `call'
+rack (2.0.3) lib/rack/runtime.rb:22:in `call'
+activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call'
+rack (2.0.3) lib/rack/sendfile.rb:111:in `call'
+railties (5.1.4) lib/rails/engine.rb:522:in `call'
+puma (3.10.0) lib/puma/configuration.rb:225:in `call'
+puma (3.10.0) lib/puma/server.rb:605:in `handle_request'
+puma (3.10.0) lib/puma/server.rb:437:in `process_client'
+puma (3.10.0) lib/puma/server.rb:301:in `block in run'
+puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread'
+Started GET "/books" for 127.0.0.1 at 2017-09-18 14:58:14 -0700
+
+ActionController::RoutingError (No route matches [GET] "/books"):
+
+actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call'
+web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app'
+web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call'
+web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch'
+web-console (3.5.1) lib/web_console/middleware.rb:18:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
+railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app'
+railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call'
+activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged'
+activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged'
+activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged'
+railties (5.1.4) lib/rails/rack/logger.rb:24:in `call'
+sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call'
+rack (2.0.3) lib/rack/method_override.rb:22:in `call'
+rack (2.0.3) lib/rack/runtime.rb:22:in `call'
+activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call'
+rack (2.0.3) lib/rack/sendfile.rb:111:in `call'
+railties (5.1.4) lib/rails/engine.rb:522:in `call'
+puma (3.10.0) lib/puma/configuration.rb:225:in `call'
+puma (3.10.0) lib/puma/server.rb:605:in `handle_request'
+puma (3.10.0) lib/puma/server.rb:437:in `process_client'
+puma (3.10.0) lib/puma/server.rb:301:in `block in run'
+puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread'
+Started GET "/" for 127.0.0.1 at 2017-09-18 14:58:39 -0700
+Processing by Rails::WelcomeController#index as HTML
+ Rendering /Users/amymcash/.rvm/gems/ruby-2.4.1@global/gems/railties-5.1.4/lib/rails/templates/rails/welcome/index.html.erb
+ Rendered /Users/amymcash/.rvm/gems/ruby-2.4.1@global/gems/railties-5.1.4/lib/rails/templates/rails/welcome/index.html.erb (3.0ms)
+Completed 200 OK in 11ms (Views: 7.4ms)
+
+
+Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:00:54 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (0.3ms)
+Completed 200 OK in 315ms (Views: 312.6ms)
+
+
+Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:04:12 -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 16ms (Views: 14.0ms)
+
+
+Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:06:07 -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 18ms (Views: 15.7ms)
+
+
+Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:07:46 -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 19ms (Views: 16.2ms)
+
+
+Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:08: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.9ms)
+Completed 500 Internal Server Error in 10ms
+
+
+
+SyntaxError (/Users/amymcash/ada/WeekSeven/TaskList/app/views/tasks/index.html.erb:11: syntax error, unexpected tIDENTIFIER, expecting ')'
+buffer.append=( task[:name] is task[:status] );@output_buffe
+ ^):
+
+app/views/tasks/index.html.erb:11: syntax error, unexpected tIDENTIFIER, expecting ')'
+Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:09:33 -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 19ms (Views: 17.1ms)
+
+
+Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:09:53 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (0.6ms)
+Completed 200 OK in 20ms (Views: 17.3ms)
+
+
+Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:37: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.2ms)
+Completed 200 OK in 39ms (Views: 36.5ms)
+
+
+Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:38: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.9ms)
+Completed 200 OK in 45ms (Views: 42.2ms)
+
+
+Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:51:03 -0700
+
+ActionController::RoutingError (No route matches [GET] "/tasks"):
+
+actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call'
+web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app'
+web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call'
+web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch'
+web-console (3.5.1) lib/web_console/middleware.rb:18:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
+railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app'
+railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call'
+activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged'
+activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged'
+activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged'
+railties (5.1.4) lib/rails/rack/logger.rb:24:in `call'
+sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call'
+rack (2.0.3) lib/rack/method_override.rb:22:in `call'
+rack (2.0.3) lib/rack/runtime.rb:22:in `call'
+activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call'
+rack (2.0.3) lib/rack/sendfile.rb:111:in `call'
+railties (5.1.4) lib/rails/engine.rb:522:in `call'
+puma (3.10.0) lib/puma/configuration.rb:225:in `call'
+puma (3.10.0) lib/puma/server.rb:605:in `handle_request'
+puma (3.10.0) lib/puma/server.rb:437:in `process_client'
+puma (3.10.0) lib/puma/server.rb:301:in `block in run'
+puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread'
+Started GET "/tasks" for 127.0.0.1 at 2017-09-18 15:51: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.4ms)
+Completed 200 OK in 30ms (Views: 27.9ms)
+
+
diff --git a/package.json b/package.json
new file mode 100644
index 000000000..f9cbc5515
--- /dev/null
+++ b/package.json
@@ -0,0 +1,5 @@
+{
+ "name": "TaskList",
+ "private": true,
+ "dependencies": {}
+}
diff --git a/public/404.html b/public/404.html
new file mode 100644
index 000000000..2be3af26f
--- /dev/null
+++ b/public/404.html
@@ -0,0 +1,67 @@
+
+
+
+ The page you were looking for doesn't exist.
+ The change you wanted was rejected.
+ We're sorry, but something went wrong.
+
<% @tasks.each do |task| %>
diff --git a/db/development.sqlite3 b/db/development.sqlite3
new file mode 100644
index 0000000000000000000000000000000000000000..2c42f957b0e5b6fe1577c8708321ecd4dcb68143
GIT binary patch
literal 28672
zcmeI*Pfyxl90%~HATXC{-Kj?(@i2*kZK0^_Fgqp24ACKEF*}fF@N6{FqHQ61bbB3p
z4W9P4mbk=Z*=bJ;F@SI~S)BPcw0-*g%k%pb4i8TW$L~v)&*|rmYcro_$pVoivP~%=
zBr({
+ <%= link_to "Show Task 1", show_path(1) %> +
+Find me in app/views/tasks/index.html.erb
+- <%= "These are the breaks" %> -
+- <%= link_to "Show Task 1", show_path(1) %> -
-- This is the new page + This is the new page. It is for new things.
+ 9: <%= f.label :title %>
+ 10: <%= f.text_field :title %>
+
+app/views/tasks/edit.html.erb:7:in `_app_views_tasks_edit_html_erb___568123450125745998_70205798725740'
+Started GET "/tasks/index" for 127.0.0.1 at 2017-09-21 21:52:14 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ [1m[36mTask Load (0.1ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m
+ Rendered tasks/index.html.erb within layouts/application (9.0ms)
+Completed 200 OK in 29ms (Views: 24.8ms | ActiveRecord: 1.1ms)
+
+
+Started GET "/tasks/index" for 127.0.0.1 at 2017-09-21 21:52: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 (3.0ms)
+Completed 200 OK in 24ms (Views: 20.8ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks/4/edit" for 127.0.0.1 at 2017-09-21 21:52:16 -0700
+Processing by TasksController#edit as HTML
+ Parameters: {"id"=>"4"}
+ Rendering tasks/edit.html.erb within layouts/application
+ Rendered tasks/edit.html.erb within layouts/application (8.6ms)
+Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.0ms)
+
+
+
+ActionView::Template::Error (First argument in form cannot contain nil or be empty):
+ 4:
+ 5:
+ 6:
+ 7: <%= form_for @task do |f| %>
+ 8:
+ 9: <%= f.label :title %>
+ 10: <%= f.text_field :title %>
+
+app/views/tasks/edit.html.erb:7:in `_app_views_tasks_edit_html_erb___568123450125745998_70205774665180'
+Started GET "/tasks/index" for 127.0.0.1 at 2017-09-21 21:56:28 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ [1m[36mTask Load (0.1ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m
+ Rendered tasks/index.html.erb within layouts/application (8.7ms)
+Completed 200 OK in 28ms (Views: 23.8ms | ActiveRecord: 0.8ms)
+
+
+Started GET "/tasks/9/edit" for 127.0.0.1 at 2017-09-21 21:56:30 -0700
+Processing by TasksController#edit as HTML
+ Parameters: {"id"=>"9"}
+ Rendering tasks/edit.html.erb within layouts/application
+ Rendered tasks/edit.html.erb within layouts/application (2.4ms)
+Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms)
+
+
+
+ActionView::Template::Error (First argument in form cannot contain nil or be empty):
+ 4:
+ 5:
+ 6:
+ 7: <%= form_for @task do |f| %>
+ 8:
+ 9: <%= f.label :title %>
+ 10: <%= f.text_field :title %>
+
+app/views/tasks/edit.html.erb:7:in `_app_views_tasks_edit_html_erb___568123450125745998_70205759130980'
+Started GET "/tasks" for 127.0.0.1 at 2017-09-21 22:16:29 -0700
+ [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m
+ Rendered tasks/index.html.erb within layouts/application (10.4ms)
+Completed 200 OK in 195ms (Views: 182.9ms | ActiveRecord: 1.0ms)
+
+
+Started GET "/tasks/new" for 127.0.0.1 at 2017-09-21 22:16:34 -0700
+Processing by TasksController#new as HTML
+ Rendering tasks/new.html.erb within layouts/application
+ Rendered tasks/new.html.erb within layouts/application (20.1ms)
+Completed 200 OK in 59ms (Views: 56.2ms | ActiveRecord: 0.0ms)
+
+
+Started POST "/tasks" for 127.0.0.1 at 2017-09-21 22:16:56 -0700
+Processing by TasksController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"JrHiVD+ZVLzr18HxDDF/SIgmA7kZ48MjEdFVOi/b+HjkhsZ3ZzeM/xfVsK8izv91lrzma64S0G214NrNKOVeZA==", "task"=>{"title"=>"sdf", "description"=>"a@fakemail.com", "date"=>"2017-12-22"}, "commit"=>"Create my account"}
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "tasks" ("title", "description", "date", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "sdf"], ["description", "a@fakemail.com"], ["date", "2017-12-22"], ["created_at", "2017-09-22 05:16:56.850302"], ["updated_at", "2017-09-22 05:16:56.850302"]]
+ [1m[35m (1.7ms)[0m [1m[36mcommit transaction[0m
+Redirected to http://localhost:3000/tasks
+Completed 302 Found in 7ms (ActiveRecord: 2.3ms)
+
+
+Started GET "/tasks" for 127.0.0.1 at 2017-09-21 22:16:56 -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 29ms (Views: 23.6ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks/5/edit" for 127.0.0.1 at 2017-09-21 22:17:01 -0700
+Processing by TasksController#edit as HTML
+ Parameters: {"id"=>"5"}
+ Rendering tasks/edit.html.erb within layouts/application
+ Rendered tasks/edit.html.erb within layouts/application (3.7ms)
+Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.0ms)
+
+
+
+ActionView::Template::Error (First argument in form cannot contain nil or be empty):
+ 4:
+ 5:
+ 6:
+ 7: <%= form_for @task do |f| %>
+ 8:
+ 9: <%= f.label :title %>
+ 10: <%= f.text_field :title %>
+
+app/views/tasks/edit.html.erb:7:in `_app_views_tasks_edit_html_erb___218958658013979638_70211401038440'
+Started GET "/tasks" for 127.0.0.1 at 2017-09-21 22:17:47 -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 26ms (Views: 23.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks/5" for 127.0.0.1 at 2017-09-21 22:17:50 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"5"}
+ [1m[36mTask Load (0.4ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 5], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.7ms)
+Completed 200 OK in 32ms (Views: 24.6ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/tasks/20" for 127.0.0.1 at 2017-09-21 22:17:54 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"20"}
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 20], ["LIMIT", 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: 24.8ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks/new" for 127.0.0.1 at 2017-09-21 22:18:00 -0700
+Processing by TasksController#new as HTML
+ Rendering tasks/new.html.erb within layouts/application
+ Rendered tasks/new.html.erb within layouts/application (8.7ms)
+Completed 200 OK in 29ms (Views: 26.4ms | ActiveRecord: 0.0ms)
+
+
+Started POST "/tasks" for 127.0.0.1 at 2017-09-21 22:18:14 -0700
+Processing by TasksController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"6ua+qRMnKAP2Mika6UDwh6GzTrJ20P7X8toJ/1hLEEEo0ZqKS4nwQAowWETHv3C6vymrYMEh7ZlW64YIX3W2XQ==", "task"=>{"title"=>"Another Task", "description"=>"When WIll I figure this out", "date"=>"2017-09-22"}, "commit"=>"Press This Button"}
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "tasks" ("title", "description", "date", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "Another Task"], ["description", "When WIll I figure this out"], ["date", "2017-09-22"], ["created_at", "2017-09-22 05:18:14.687117"], ["updated_at", "2017-09-22 05:18:14.687117"]]
+ [1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
+Redirected to http://localhost:3000/tasks
+Completed 302 Found in 4ms (ActiveRecord: 1.3ms)
+
+
+Started GET "/tasks" for 127.0.0.1 at 2017-09-21 22:18:14 -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 25ms (Views: 20.6ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks/21/edit" for 127.0.0.1 at 2017-09-21 22:18:17 -0700
+Processing by TasksController#edit as HTML
+ Parameters: {"id"=>"21"}
+ Rendering tasks/edit.html.erb within layouts/application
+ Rendered tasks/edit.html.erb within layouts/application (3.1ms)
+Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.0ms)
+
+
+
+ActionView::Template::Error (First argument in form cannot contain nil or be empty):
+ 4:
+ 5:
+ 6:
+ 7: <%= form_for @task do |f| %>
+ 8:
+ 9: <%= f.label :title %>
+ 9: <%= f.label :title %>
+ 6: <%= f.label :title %>
+ 6: <%= f.label :title %>
- <%= f.label :title %>
- <%= f.label :description %>
- <%= f.label :date %>
- <%= f.submit "Save Changes"%>
-
+ 6: <%= f.label :title %>
- This is the new page. It is for new things.
-
+ 10: <%= f.text_field :title %>
+
+app/views/tasks/edit.html.erb:7:in `_app_views_tasks_edit_html_erb___218958658013979638_70211416200100'
+Started GET "/tasks" for 127.0.0.1 at 2017-09-21 22:24:29 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ [1m[36mTask Load (0.1ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m
+ Rendered tasks/index.html.erb within layouts/application (12.6ms)
+Completed 200 OK in 38ms (Views: 31.8ms | ActiveRecord: 1.2ms)
+
+
+Started GET "/tasks/4" for 127.0.0.1 at 2017-09-21 22:24:33 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"4"}
+ [1m[36mTask Load (0.3ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (1.1ms)
+Completed 200 OK in 30ms (Views: 23.9ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks/4/edit" for 127.0.0.1 at 2017-09-21 22:24:37 -0700
+Processing by TasksController#edit as HTML
+ Parameters: {"id"=>"4"}
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]]
+ Rendering tasks/edit.html.erb within layouts/application
+ Rendered tasks/edit.html.erb within layouts/application (116.8ms)
+Completed 500 Internal Server Error in 130ms (ActiveRecord: 0.2ms)
+
+
+
+ActionView::Template::Error (undefined method `task_path' for #<#
+ 10: <%= f.text_field :title %>
+
+app/views/tasks/edit.html.erb:7:in `_app_views_tasks_edit_html_erb___218958658013979638_70211372613080'
+Started GET "/tasks/4/edit" for 127.0.0.1 at 2017-09-21 22:29:26 -0700
+Processing by TasksController#edit as HTML
+ Parameters: {"id"=>"4"}
+ [1m[36mTask Load (0.1ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]]
+ Rendering tasks/edit.html.erb within layouts/application
+ Rendered tasks/edit.html.erb within layouts/application (109.0ms)
+Completed 500 Internal Server Error in 129ms (ActiveRecord: 1.4ms)
+
+
+
+ActionView::Template::Error (undefined method `task_path' for #<#This is the edit page
+ 2:
+ 3:
+ 4: <%= form_for(@task) do |f| %>
+ 5:
+ 7: <%= f.text_field :title %>
+
+app/views/tasks/edit.html.erb:4:in `_app_views_tasks_edit_html_erb___218958658013979638_70211416948680'
+Started GET "/tasks/7/edit" for 127.0.0.1 at 2017-09-21 22:29:35 -0700
+Processing by TasksController#edit 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/edit.html.erb within layouts/application
+ Rendered tasks/edit.html.erb within layouts/application (77.4ms)
+Completed 500 Internal Server Error in 87ms (ActiveRecord: 0.2ms)
+
+
+
+ActionView::Template::Error (undefined method `task_path' for #<#This is the edit page
+ 2:
+ 3:
+ 4: <%= form_for(@task) do |f| %>
+ 5:
+ 7: <%= f.text_field :title %>
+
+app/views/tasks/edit.html.erb:4:in `_app_views_tasks_edit_html_erb___218958658013979638_70211409668120'
+Started GET "/task/7/edit" for 127.0.0.1 at 2017-09-21 22:29:39 -0700
+
+ActionController::RoutingError (No route matches [GET] "/task/7/edit"):
+
+actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call'
+web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app'
+web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call'
+web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch'
+web-console (3.5.1) lib/web_console/middleware.rb:18:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
+railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app'
+railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call'
+activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged'
+activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged'
+activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged'
+railties (5.1.4) lib/rails/rack/logger.rb:24:in `call'
+sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call'
+rack (2.0.3) lib/rack/method_override.rb:22:in `call'
+rack (2.0.3) lib/rack/runtime.rb:22:in `call'
+activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call'
+rack (2.0.3) lib/rack/sendfile.rb:111:in `call'
+railties (5.1.4) lib/rails/engine.rb:522:in `call'
+puma (3.10.0) lib/puma/configuration.rb:225:in `call'
+puma (3.10.0) lib/puma/server.rb:605:in `handle_request'
+puma (3.10.0) lib/puma/server.rb:437:in `process_client'
+puma (3.10.0) lib/puma/server.rb:301:in `block in run'
+puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread'
+Started GET "/tasks/new" for 127.0.0.1 at 2017-09-21 22:31:56 -0700
+Processing by TasksController#new as HTML
+ Rendering tasks/new.html.erb within layouts/application
+ Rendered tasks/new.html.erb within layouts/application (2.1ms)
+Completed 200 OK in 29ms (Views: 19.1ms | ActiveRecord: 0.7ms)
+
+
+Started POST "/tasks" for 127.0.0.1 at 2017-09-21 22:32:08 -0700
+Processing by TasksController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"QL7+gB9C42qDNt9ckp9MvxXYsCXk8Wjk8A0HJskFGJ6CidqjR+w7KX80rgK8YMyCC0JV91MAe6pUPIjRzju+gg==", "task"=>{"title"=>"why does this work", "description"=>"but the other doesn't", "date"=>"2017-09-22"}, "commit"=>"Press This Button"}
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "tasks" ("title", "description", "date", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "why does this work"], ["description", "but the other doesn't"], ["date", "2017-09-22"], ["created_at", "2017-09-22 05:32:08.957459"], ["updated_at", "2017-09-22 05:32:08.957459"]]
+ [1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
+Redirected to http://localhost:3000/tasks
+Completed 302 Found in 5ms (ActiveRecord: 1.5ms)
+
+
+Started GET "/tasks" for 127.0.0.1 at 2017-09-21 22:32:08 -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 (105.9ms)
+Completed 500 Internal Server Error in 117ms (ActiveRecord: 0.4ms)
+
+
+
+ActionView::Template::Error (undefined method `edit_task_path' for #<#This is the edit page
+<%= form_for @task do |f| %>
+ <%= f.label :title %>
+ <%= f.text_field :title %>
+ <%= f.label :description %>
+ <%= f.text_field :description %>
-<%= form_for(@task) do |f| %>
-
- <%= f.text_field :title %>
-
+ <%= f.date_field :date %>
-
- <%= f.text_field :description %>
-
- <%= f.date_field :date %>
-
- <% @tasks.each_with_index do |task, index| %>
-
diff --git a/config/routes.rb b/config/routes.rb
index 5a33602a7..a206ed5f6 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,39 +1,63 @@
Rails.application.routes.draw do
- get 'tasks/index'
+ # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
+
+ get '/tasks', to: 'tasks#index', as: 'tasks'
+ get '/tasks/new', to: 'tasks#new', as: 'new_task'
+ post '/tasks', to: 'tasks#create'
+
+ get '/tasks/:id', to: 'tasks#show', as: 'task'
+ get '/tasks/:id/edit', to: 'tasks#edit', as: 'edit_task'
+ patch '/tasks/:id', to: 'tasks#update'
+ delete '/tasks/:id', to: 'tasks#destroy'
+
+ # resources :books
+ end
+
+ # Rails.application.routes.draw do
+ # get '/tasks', to: 'tasks#index', as: 'tasks'
+ # get '/tasks/new', to: 'tasks#new', as: 'new_task'
+ # post '/tasks', to: 'tasks#create'
+ #
+ # get '/tasks/:id', to: 'tasks#show', as: 'task'
+ # get '/tasks/:id/edit', to: 'tasks#edit', as: 'edit_task'
+ # patch '/tasks/:id', to: 'tasks#update'
+ # # put '/books/:id', to: 'books#update'
+ # #task_path(task)
+ # delete '/tasks/:id', to: 'tasks#destroy'
+ # # delete '/books/:id', to: 'books#destroy'
+ #
+ #
+ # end
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
- get '/tasks', to: 'tasks#index', as: 'index'
+
# get '/books', to: 'books#index', as: 'books'
# get '/puppies', to: 'puppies#index', at: 'puppies'
- get '/tasks/new', to: 'tasks#new', as: 'new_task'
+
# get '/books/new', to: 'books#new', as: 'new_book'
#GETS the form to Update or Add Info, but doesn't do the update
- get '/tasks/:id', to: 'tasks#show', as: 'show'
+
# get '/books/:id', to: 'books#show', as: 'book'
# if youcall the show method, it finds whatever id you put in and then goes to the tasks/id route
#task_path(task)
- post '/tasks', to: 'tasks#create'
+
# post '/books', to: 'books#create'
# post '/tasks/new', to: 'tasks#new', as: 'add_task'
- get '/tasks/:id/edit', to: 'tasks#edit'
+
# , as: 'edit_task'
#This will just bring you to the edit form
#
# get '/books/:id/edit', to: 'books#edit', as: 'edit_book'
- patch '/tasks/:id', to: 'tasks#update', as: 'update'
- # put '/books/:id', to: 'books#update'
- #task_path(task)
- delete '/tasks/:id', to: 'tasks#destroy', as: 'delete'
- # delete '/books/:id', to: 'books#destroy'
+
################
#
#GET /users index users_path page to list all users
@@ -46,6 +70,3 @@
#
# post '/books/:id/checkout', to: 'books#checkout', as: 'checkout_book'
-
-
-end
diff --git a/db/development.sqlite3 b/db/development.sqlite3
index 57ed030f4d08281c09be26bf1a48b026a6959238..b7b01fd200f2dca41d891f71c1af81a3f6df13f7 100644
GIT binary patch
delta 320
zcmZp8z}WDBae_3X+(a2?M!Ag%3;j)bEE&W(I2icn^1JZ8<7?+rThis is the edit page
+ 2:
+ 3:
+ 4: <%= form_for @task do |f| %>
+ 5:
+ 7: <%= f.text_field :title %>
+
+app/views/tasks/edit.html.erb:4:in `_app_views_tasks_edit_html_erb___669894083229533102_70222394100180'
+Started GET "/tasks/2" for 127.0.0.1 at 2017-09-22 09:16:49 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mTask Load (0.1ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.4ms)
+Completed 200 OK in 27ms (Views: 15.9ms | ActiveRecord: 0.9ms)
+
+
+Started GET "/tasks/index" for 127.0.0.1 at 2017-09-22 09:16:53 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ Rendered tasks/index.html.erb within layouts/application (5.4ms)
+Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.0ms)
+
+
+
+ActionView::Template::Error (undefined method `each' for nil:NilClass):
+ 7:
+ 8:
+ 9:
+ 10: <% @books.each do |book| %>
+ 11:
+ 10: <% @tasks.each do |task| %>
+ 11:
This is the edit page
+ 2: <%= form_for @task do |f| %>
+ 3: <%= f.label :title %>
+ 4: <%= f.text_field :title %>
+ 5:
+
+app/views/tasks/edit.html.erb:2:in `_app_views_tasks_edit_html_erb___669894083229533102_70222373457020'
+Started GET "/tasks/5/edit" for 127.0.0.1 at 2017-09-22 09:19:34 -0700
+Processing by TasksController#edit as HTML
+ Parameters: {"id"=>"5"}
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 5], ["LIMIT", 1]]
+ Rendering tasks/edit.html.erb within layouts/application
+ Rendered tasks/edit.html.erb within layouts/application (2.4ms)
+Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.2ms)
+
+
+
+ActionView::Template::Error (First argument in form cannot contain nil or be empty):
+ 1: This is the edit page
+ 2: <%= form_for @tasks do |f| %>
+ 3: <%= f.label :title %>
+ 4: <%= f.text_field :title %>
+ 5:
+
+app/views/tasks/edit.html.erb:2:in `_app_views_tasks_edit_html_erb___669894083229533102_70222394526020'
+Started GET "/tasks/5/edit" for 127.0.0.1 at 2017-09-22 09:23:28 -0700
+
+SyntaxError (/Users/amymcash/ada/WeekSeven/TaskList/config/routes.rb:26: syntax error, unexpected tIDENTIFIER, expecting keyword_end
+:id/edit', to: 'tasks#edit' as: 'edit_task'
+ ^
+/Users/amymcash/ada/WeekSeven/TaskList/config/routes.rb:77: syntax error, unexpected keyword_end, expecting end-of-input):
+
+config/routes.rb:26: syntax error, unexpected tIDENTIFIER, expecting keyword_end
+config/routes.rb:77: syntax error, unexpected keyword_end, expecting end-of-input
+Started GET "/tasks/" for 127.0.0.1 at 2017-09-22 09:23:34 -0700
+
+ActionController::RoutingError (No route matches [GET] "/tasks"):
+
+actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call'
+web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app'
+web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call'
+web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch'
+web-console (3.5.1) lib/web_console/middleware.rb:18:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
+railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app'
+railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call'
+activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged'
+activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged'
+activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged'
+railties (5.1.4) lib/rails/rack/logger.rb:24:in `call'
+sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call'
+rack (2.0.3) lib/rack/method_override.rb:22:in `call'
+rack (2.0.3) lib/rack/runtime.rb:22:in `call'
+activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call'
+rack (2.0.3) lib/rack/sendfile.rb:111:in `call'
+railties (5.1.4) lib/rails/engine.rb:522:in `call'
+puma (3.10.0) lib/puma/configuration.rb:225:in `call'
+puma (3.10.0) lib/puma/server.rb:605:in `handle_request'
+puma (3.10.0) lib/puma/server.rb:437:in `process_client'
+puma (3.10.0) lib/puma/server.rb:301:in `block in run'
+puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread'
+Started GET "/tasks/" for 127.0.0.1 at 2017-09-22 09:26:21 -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 (8.9ms)
+Completed 200 OK in 30ms (Views: 25.9ms | ActiveRecord: 1.0ms)
+
+
+Started GET "/tasks.1" for 127.0.0.1 at 2017-09-22 09:26:23 -0700
+Processing by TasksController#index as
+ 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 56ms (Views: 34.4ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks/12" for 127.0.0.1 at 2017-09-22 09:26:33 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"12"}
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 12], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.5ms)
+Completed 200 OK in 27ms (Views: 23.3ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks/4" for 127.0.0.1 at 2017-09-22 09:26:38 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"4"}
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.8ms)
+Completed 200 OK in 32ms (Views: 28.6ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks/4/edit" for 127.0.0.1 at 2017-09-22 09:26:43 -0700
+Processing by TasksController#edit as HTML
+ Parameters: {"id"=>"4"}
+ [1m[36mTask Load (0.1ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]]
+ Rendering tasks/edit.html.erb within layouts/application
+ Rendered tasks/edit.html.erb within layouts/application (3.7ms)
+Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.1ms)
+
+
+
+ActionView::Template::Error (First argument in form cannot contain nil or be empty):
+ 1: This is the edit page
+ 2: <%= form_for @tasks do |f| %>
+ 3: <%= f.label :title %>
+ 4: <%= f.text_field :title %>
+ 5:
+
+app/views/tasks/edit.html.erb:2:in `_app_views_tasks_edit_html_erb___669894083229533102_70222395752260'
+Started GET "/tasks/4/edit" for 127.0.0.1 at 2017-09-22 09:26:59 -0700
+Processing by TasksController#edit as HTML
+ Parameters: {"id"=>"4"}
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]]
+ Rendering tasks/edit.html.erb within layouts/application
+ Rendered tasks/edit.html.erb within layouts/application (3.6ms)
+Completed 200 OK in 24ms (Views: 20.4ms | ActiveRecord: 0.2ms)
+
+
+Started PATCH "/tasks/4" for 127.0.0.1 at 2017-09-22 09:27:55 -0700
+Processing by TasksController#update as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"/SL2nHUhJXnyQcT6PeYtezI8/Aq5eCEm4sdwS4bIngH3t+aZSSGcUMRDx645NtfYR9GjjrH8j5eY2CPsQMNwFw==", "task"=>{"title"=>"Cheese Eating", "description"=>"Eat a lot of Cheese", "date"=>"2017-09-21"}, "commit"=>"Update Task", "id"=>"4"}
+Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)
+
+
+
+NameError (uninitialized constant TasksController::Book):
+
+app/controllers/tasks_controller.rb:33:in `update'
+Started PATCH "/tasks/4" for 127.0.0.1 at 2017-09-22 09:28:53 -0700
+Processing by TasksController#update as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"/SL2nHUhJXnyQcT6PeYtezI8/Aq5eCEm4sdwS4bIngH3t+aZSSGcUMRDx645NtfYR9GjjrH8j5eY2CPsQMNwFw==", "task"=>{"title"=>"Cheese Eating", "description"=>"Eat a lot of Cheese", "date"=>"2017-09-21"}, "commit"=>"Update Task", "id"=>"4"}
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]]
+Completed 500 Internal Server Error in 20ms (ActiveRecord: 1.1ms)
+
+
+
+NoMethodError (undefined method `author=' for #Welcome to my List of Many Tasks: This is stuff that will be included on ever page because it's in the Header of the LayOut.
+ <%= f.date_field :date %>
+
+ <%= f.submit %>
+<% end %>
diff --git a/app/views/tasks/edit.html.erb b/app/views/tasks/edit.html.erb
index bdddd578b..b220f7425 100644
--- a/app/views/tasks/edit.html.erb
+++ b/app/views/tasks/edit.html.erb
@@ -1,13 +1,3 @@
-This is the edit page
-<%= form_for @task do |f| %>
- <%= f.label :title %>
- <%= f.text_field :title %>
+Edit Your Task Here
- <%= f.label :description %>
- <%= f.text_field :description %>
-
- <%= f.label :date %>
- <%= f.date_field :date %>
-
- <%= f.submit %>
-<% end %>
+<%= render 'form', task: @task %>
diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb
index fe866bff6..b1191b4df 100644
--- a/app/views/tasks/index.html.erb
+++ b/app/views/tasks/index.html.erb
@@ -1,30 +1,19 @@
Tasks I Probably Won't Do
-
- <%= "To-Do" %>
-
<%= link_to "List all Tasks", tasks_path %>
<%= link_to "New Task", new_task_path %>
-<%= link_to "Task number seven", task_path(7) %>
-
-<%= link_to "Custom anchor tag", new_task_path, class: "link" %>
-
-
-
-
-
<% @tasks.each do |task| %>
-
diff --git a/app/views/tasks/new.html.erb b/app/views/tasks/new.html.erb
index 31b8be1e7..50edd31c5 100644
--- a/app/views/tasks/new.html.erb
+++ b/app/views/tasks/new.html.erb
@@ -1,6 +1,10 @@
-Add a New Task
+
+
+<%= render 'form', task: @task %>
+
+
+<%= link_to "List all Tasks", tasks_path %>
@@ -17,19 +21,3 @@
-->
-
-
-
-
-<%= form_for(@task) do |f| %>
-<%= f.label :title %>
-<%= f.text_field :title %>
-
-<%= f.label :description %>
-<%= f.text_field :description %>
-
-<%= f.label :date %>
-<%= f.date_field :date %>
-
-<%= f.submit "Press This Button" %>
-<% end %>
diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb
index 5c6369fe6..a7bbe561c 100644
--- a/app/views/tasks/show.html.erb
+++ b/app/views/tasks/show.html.erb
@@ -1,8 +1,8 @@
-HELLO
-This is the show page
- <%= @task.title %>
+ <%= @task.title %>
<%= @task.description %>
<%= @task.date %>
-
+
+
+<%= link_to "List all Tasks", tasks_path %>
diff --git a/config/routes.rb b/config/routes.rb
index a206ed5f6..3bed9966c 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -2,71 +2,18 @@
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
get '/tasks', to: 'tasks#index', as: 'tasks'
+
get '/tasks/new', to: 'tasks#new', as: 'new_task'
post '/tasks', to: 'tasks#create'
get '/tasks/:id', to: 'tasks#show', as: 'task'
+
get '/tasks/:id/edit', to: 'tasks#edit', as: 'edit_task'
patch '/tasks/:id', to: 'tasks#update'
+
delete '/tasks/:id', to: 'tasks#destroy'
- # resources :books
end
- # Rails.application.routes.draw do
- # get '/tasks', to: 'tasks#index', as: 'tasks'
- # get '/tasks/new', to: 'tasks#new', as: 'new_task'
- # post '/tasks', to: 'tasks#create'
- #
- # get '/tasks/:id', to: 'tasks#show', as: 'task'
- # get '/tasks/:id/edit', to: 'tasks#edit', as: 'edit_task'
- # patch '/tasks/:id', to: 'tasks#update'
- # # put '/books/:id', to: 'books#update'
- # #task_path(task)
- # delete '/tasks/:id', to: 'tasks#destroy'
- # # delete '/books/:id', to: 'books#destroy'
- #
- #
- # end
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
-
-
- # get '/books', to: 'books#index', as: 'books'
- # get '/puppies', to: 'puppies#index', at: 'puppies'
-
-
- # get '/books/new', to: 'books#new', as: 'new_book'
- #GETS the form to Update or Add Info, but doesn't do the update
-
-
- # get '/books/:id', to: 'books#show', as: 'book'
- # if youcall the show method, it finds whatever id you put in and then goes to the tasks/id route
- #task_path(task)
-
-
-
- # post '/books', to: 'books#create'
-
- # post '/tasks/new', to: 'tasks#new', as: 'add_task'
-
-
- # , as: 'edit_task'
- #This will just bring you to the edit form
- #
- # get '/books/:id/edit', to: 'books#edit', as: 'edit_book'
-
-
-
- ################
- #
- #GET /users index users_path page to list all users
- # GET /users/1 show user_path(user) page to show user
- # GET /users/new new new_user_path page to make a new user (signup)
- # POST /users create users_path create a new user
- # GET /users/1/edit edit edit_user_path(user) page to edit user with id 1
- # PATCH /users/1 update user_path(user) update user
- # DELETE /users/1 destroy user_path(user) delete user
-
- #
- # post '/books/:id/checkout', to: 'books#checkout', as: 'checkout_book'
diff --git a/db/development.sqlite3 b/db/development.sqlite3
index b7b01fd200f2dca41d891f71c1af81a3f6df13f7..713f364da55f4db5ab27f924470d094a4395305a 100644
GIT binary patch
delta 382
zcmZp8z}WDBae_3X;Y1l{M#GH>3;j(wvKTnn*D~
+
<% @tasks.each do |task| %>
-
Congratulations You Completed Your Task
+
+<% @task.date = Date.today %>
+
+
+ <%= link_to "List all Tasks", tasks_path %>
diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb
index 45709d52c..e3f82a1ab 100644
--- a/app/views/tasks/index.html.erb
+++ b/app/views/tasks/index.html.erb
@@ -12,6 +12,7 @@
<% @tasks.each do |task| %>
<%= @task.title %>
+ <%= @task.title %>
<%= @task.description %>
<%= @task.date %>
-
-<%= link_to "List all Tasks", tasks_path %>
+ <%= link_to "List all Tasks", tasks_path %>
diff --git a/config/routes.rb b/config/routes.rb
index 3bed9966c..de4f4982f 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -11,6 +11,8 @@
get '/tasks/:id/edit', to: 'tasks#edit', as: 'edit_task'
patch '/tasks/:id', to: 'tasks#update'
+ get '/tasks/:id/complete', to: 'tasks#complete', as: 'complete_task'
+
delete '/tasks/:id', to: 'tasks#destroy'
end
diff --git a/db/development.sqlite3 b/db/development.sqlite3
index f8e62ee8591794926a30d3a8998721a496854203..02a79619ff69f1b313066bd2ea90d991c87cda59 100644
GIT binary patch
delta 322
zcmZp8z}WDBae_3X`9v9KM)Qpc3;kso7#P@jV;T78^1JZ8<7?+rCongratulations You Completed Your Task
+ 2:
+ 3:
+ 4: <% @task.title = @task.title.upcase%>
+ 5: <% @task.description %>
+ 6: <% @task.date = Date.today %>
+ 7:
+
+app/views/tasks/complete.html.erb:4:in `_app_views_tasks_complete_html_erb___331284769446472233_70108410859900'
+Started GET "/tasks/" for 127.0.0.1 at 2017-10-01 21:31: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 (4.0ms)
+Completed 200 OK in 28ms (Views: 24.8ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks/new" for 127.0.0.1 at 2017-10-01 21:31:04 -0700
+Processing by TasksController#new as HTML
+ Rendering tasks/new.html.erb within layouts/application
+ Rendered tasks/_form.html.erb (17.0ms)
+ Rendered tasks/new.html.erb within layouts/application (21.4ms)
+Completed 200 OK in 51ms (Views: 45.6ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks/3/edit" for 127.0.0.1 at 2017-10-01 21:31:11 -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 (5.2ms)
+ Rendered tasks/edit.html.erb within layouts/application (9.4ms)
+Completed 200 OK in 45ms (Views: 37.3ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks/" for 127.0.0.1 at 2017-10-01 21:32:11 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m
+ Rendered tasks/index.html.erb within layouts/application (2.9ms)
+Completed 200 OK in 25ms (Views: 21.9ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks/24/complete" for 127.0.0.1 at 2017-10-01 21:32:13 -0700
+Processing by TasksController#complete as HTML
+ Parameters: {"id"=>"24"}
+ Rendering tasks/complete.html.erb within layouts/application
+ Rendered tasks/complete.html.erb within layouts/application (16.4ms)
+Completed 500 Internal Server Error in 24ms (ActiveRecord: 0.0ms)
+
+
+
+ActionView::Template::Error (undefined method `title' for nil:NilClass):
+ 1: Congratulations You Completed Your Task
+ 2:
+ 3:
+ 4: <% @task.title = @task.title.upcase%>
+ 5: <% @task.description %>
+ 6: <% @task.date = Date.today %>
+ 7:
+
+app/views/tasks/complete.html.erb:4:in `_app_views_tasks_complete_html_erb___331284769446472233_70108376952960'
+Started GET "/tasks/" for 127.0.0.1 at 2017-10-01 21:32:50 -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 25ms (Views: 21.0ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks/6" for 127.0.0.1 at 2017-10-01 21:32:52 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"6"}
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.8ms)
+Completed 200 OK in 33ms (Views: 29.5ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks/24/complete" for 127.0.0.1 at 2017-10-01 21:32:55 -0700
+Processing by TasksController#complete as HTML
+ Parameters: {"id"=>"24"}
+ Rendering tasks/complete.html.erb within layouts/application
+ Rendered tasks/complete.html.erb within layouts/application (0.8ms)
+Completed 200 OK in 20ms (Views: 17.7ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/tasks" for 127.0.0.1 at 2017-10-01 21:32:58 -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.3ms)
+Completed 200 OK in 33ms (Views: 30.3ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks" for 127.0.0.1 at 2017-10-01 21:35:30 -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 (16.6ms)
+Completed 200 OK in 43ms (Views: 38.5ms | ActiveRecord: 1.5ms)
+
+
+Started GET "/tasks/24/complete" for 127.0.0.1 at 2017-10-01 21:35:32 -0700
+Processing by TasksController#complete as HTML
+ Parameters: {"id"=>"24"}
+ [1m[36mTask Load (0.3ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 24], ["LIMIT", 1]]
+ Rendering tasks/complete.html.erb within layouts/application
+ Rendered tasks/complete.html.erb within layouts/application (0.7ms)
+Completed 200 OK in 32ms (Views: 24.2ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks" for 127.0.0.1 at 2017-10-01 21:35:37 -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 37ms (Views: 33.5ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks/24" for 127.0.0.1 at 2017-10-01 21:35:38 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"24"}
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 24], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (1.6ms)
+Completed 200 OK in 34ms (Views: 28.9ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks" for 127.0.0.1 at 2017-10-01 21:35:45 -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 32ms (Views: 28.8ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks" for 127.0.0.1 at 2017-10-01 21:40:39 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ [1m[36mTask Load (0.1ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m
+ Rendered tasks/index.html.erb within layouts/application (8.5ms)
+Completed 200 OK in 29ms (Views: 24.9ms | ActiveRecord: 1.1ms)
+
+
+Started GET "/tasks/24/complete" for 127.0.0.1 at 2017-10-01 21:40:41 -0700
+Processing by TasksController#complete as HTML
+ Parameters: {"id"=>"24"}
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 24], ["LIMIT", 1]]
+ Rendering tasks/complete.html.erb within layouts/application
+ Rendered tasks/complete.html.erb within layouts/application (205.4ms)
+Completed 500 Internal Server Error in 220ms (ActiveRecord: 0.2ms)
+
+
+
+ActionView::Template::Error (undefined local variable or method `task' for #<#Click to Mark Complete
+ 4:
+ 5: <%= link_to 'Click to Mark Complete', completed_task_path(task.id) %>
+ 6:
+ 7:
+ 8: <%= link_to "List all Tasks", tasks_path %>
+
+app/views/tasks/complete.html.erb:5:in `_app_views_tasks_complete_html_erb___331284769446472233_70108365531720'
+ [1m[36mTask Load (0.1ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35mSQL (1.2ms)[0m [1m[33mUPDATE "tasks" SET "date" = ?, "updated_at" = ? WHERE "tasks"."id" = ?[0m [["date", "2017-10-01"], ["updated_at", "2017-10-02 04:43:05.227254"], ["id", 24]]
+ [1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35mSQL (1.9ms)[0m [1m[33mUPDATE "tasks" SET "title" = ?, "updated_at" = ? WHERE "tasks"."id" = ?[0m [["title", "ANOTHER TEST!"], ["updated_at", "2017-10-02 04:44:01.654979"], ["id", 24]]
+ [1m[35m (2.6ms)[0m [1m[36mcommit transaction[0m
+Started GET "/tasks/24/complete" for 127.0.0.1 at 2017-10-01 21:44:19 -0700
+ [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
+Processing by TasksController#complete as HTML
+ Parameters: {"id"=>"24"}
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 24], ["LIMIT", 1]]
+ Rendering tasks/complete.html.erb within layouts/application
+ Rendered tasks/complete.html.erb within layouts/application (218.0ms)
+Completed 500 Internal Server Error in 249ms (ActiveRecord: 1.0ms)
+
+
+
+ActionView::Template::Error (undefined local variable or method `task' for #<#Click to Mark Complete
+ 4:
+ 5: <%= link_to 'Click to Mark Complete', completed_task_path(task.id) %>
+ 6:
+ 7:
+ 8: <%= link_to "List all Tasks", tasks_path %>
+
+app/views/tasks/complete.html.erb:5:in `_app_views_tasks_complete_html_erb__1563798932262929423_70124988537820'
+Started GET "/tasks" for 127.0.0.1 at 2017-10-01 21:44:26 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ [1m[36mTask Load (0.1ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m
+ Rendered tasks/index.html.erb within layouts/application (3.7ms)
+Completed 200 OK in 178ms (Views: 174.7ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/tasks/24/complete" for 127.0.0.1 at 2017-10-01 21:44:28 -0700
+Processing by TasksController#complete as HTML
+ Parameters: {"id"=>"24"}
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 24], ["LIMIT", 1]]
+ Rendering tasks/complete.html.erb within layouts/application
+ Rendered tasks/complete.html.erb within layouts/application (188.5ms)
+Completed 500 Internal Server Error in 199ms (ActiveRecord: 0.2ms)
+
+
+
+ActionView::Template::Error (undefined local variable or method `task' for #<#Click to Mark Complete
+ 4:
+ 5: <%= link_to 'Click to Mark Complete', completed_task_path(task.id) %>
+ 6:
+ 7:
+ 8: <%= link_to "List all Tasks", tasks_path %>
+
+app/views/tasks/complete.html.erb:5:in `_app_views_tasks_complete_html_erb__1563798932262929423_70125009060040'
+Started GET "/tasks" for 127.0.0.1 at 2017-10-01 21:44:31 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m
+ Rendered tasks/index.html.erb within layouts/application (3.2ms)
+Completed 200 OK in 24ms (Views: 21.4ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks/24/edit" for 127.0.0.1 at 2017-10-01 21:45:38 -0700
+Processing by TasksController#edit as HTML
+ Parameters: {"id"=>"24"}
+ [1m[36mTask Load (0.1ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 24], ["LIMIT", 1]]
+ Rendering tasks/edit.html.erb within layouts/application
+ Rendered tasks/_form.html.erb (36.7ms)
+ Rendered tasks/edit.html.erb within layouts/application (39.6ms)
+Completed 200 OK in 77ms (Views: 72.2ms | ActiveRecord: 0.1ms)
+
+
+Started PATCH "/tasks/24" for 127.0.0.1 at 2017-10-01 21:45:53 -0700
+Processing by TasksController#update as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"lKpdSHgGPc/BZU7YsDsSmPfBICkLQJihPChW6ISNELJ1BPXc52CoBPC9BSuQKUJjVk2AkQRQE/ghF3YP1bMQww==", "task"=>{"title"=>"ANOTHER TEST!", "description"=>"testing mark complete", "date"=>"2017-08-24"}, "commit"=>"Update Task", "id"=>"24"}
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 24], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "tasks" SET "description" = ?, "date" = ?, "updated_at" = ? WHERE "tasks"."id" = ?[0m [["description", "testing mark complete"], ["date", "2017-08-24"], ["updated_at", "2017-10-02 04:45:53.176164"], ["id", 24]]
+ [1m[35m (1.8ms)[0m [1m[36mcommit transaction[0m
+Redirected to http://localhost:3000/tasks/24
+Completed 302 Found in 8ms (ActiveRecord: 2.5ms)
+
+
+Started GET "/tasks/24" for 127.0.0.1 at 2017-10-01 21:45:53 -0700
+Processing by TasksController#show as HTML
+ Parameters: {"id"=>"24"}
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 24], ["LIMIT", 1]]
+ Rendering tasks/show.html.erb within layouts/application
+ Rendered tasks/show.html.erb within layouts/application (0.6ms)
+Completed 200 OK in 33ms (Views: 29.0ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks" for 127.0.0.1 at 2017-10-01 21:45:55 -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.2ms)
+Completed 200 OK in 37ms (Views: 33.5ms | ActiveRecord: 0.6ms)
+
+
+Started GET "/tasks" for 127.0.0.1 at 2017-10-01 21:49:05 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ [1m[36mTask Load (0.1ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m
+ Rendered tasks/index.html.erb within layouts/application (16.5ms)
+Completed 200 OK in 42ms (Views: 36.3ms | ActiveRecord: 0.9ms)
+
+
+Started GET "/tasks/24/complete" for 127.0.0.1 at 2017-10-01 21:49:07 -0700
+
+ActionController::RoutingError (No route matches [GET] "/tasks/24/complete"):
+
+actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call'
+web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app'
+web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call'
+web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch'
+web-console (3.5.1) lib/web_console/middleware.rb:18:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
+railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app'
+railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call'
+activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged'
+activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged'
+activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged'
+railties (5.1.4) lib/rails/rack/logger.rb:24:in `call'
+sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call'
+rack (2.0.3) lib/rack/method_override.rb:22:in `call'
+rack (2.0.3) lib/rack/runtime.rb:22:in `call'
+activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call'
+actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call'
+rack (2.0.3) lib/rack/sendfile.rb:111:in `call'
+railties (5.1.4) lib/rails/engine.rb:522:in `call'
+puma (3.10.0) lib/puma/configuration.rb:225:in `call'
+puma (3.10.0) lib/puma/server.rb:605:in `handle_request'
+puma (3.10.0) lib/puma/server.rb:437:in `process_client'
+puma (3.10.0) lib/puma/server.rb:301:in `block in run'
+puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread'
+Started GET "/tasks" for 127.0.0.1 at 2017-10-01 21:58:10 -0700
+Processing by TasksController#index as HTML
+ Rendering tasks/index.html.erb within layouts/application
+ [1m[36mTask Load (0.1ms)[0m [1m[34mSELECT "tasks".* FROM "tasks"[0m
+ Rendered tasks/index.html.erb within layouts/application (8.7ms)
+Completed 200 OK in 35ms (Views: 30.0ms | ActiveRecord: 0.9ms)
+
+
+Started GET "/tasks/6/complete" for 127.0.0.1 at 2017-10-01 21:58:13 -0700
+Processing by TasksController#complete as HTML
+ Parameters: {"id"=>"6"}
+ [1m[36mTask Load (0.2ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35mSQL (1.2ms)[0m [1m[33mUPDATE "tasks" SET "date" = ?, "title" = ?, "updated_at" = ? WHERE "tasks"."id" = ?[0m [["date", "2017-10-01"], ["title", "ADDING THINGS"], ["updated_at", "2017-10-02 04:58:13.100840"], ["id", 6]]
+ [1m[35m (2.3ms)[0m [1m[36mcommit transaction[0m
+Redirected to http://localhost:3000/tasks
+Completed 302 Found in 8ms (ActiveRecord: 3.8ms)
+
+
+Started GET "/tasks" for 127.0.0.1 at 2017-10-01 21:58: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 (2.9ms)
+Completed 200 OK in 25ms (Views: 20.9ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/tasks/5/complete" for 127.0.0.1 at 2017-10-01 21:58:17 -0700
+Processing by TasksController#complete as HTML
+ Parameters: {"id"=>"5"}
+ [1m[36mTask Load (0.1ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 5], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "tasks" SET "date" = ?, "title" = ?, "updated_at" = ? WHERE "tasks"."id" = ?[0m [["date", "2017-10-01"], ["title", "FINISH TASK LIST"], ["updated_at", "2017-10-02 04:58:17.262305"], ["id", 5]]
+ [1m[35m (2.0ms)[0m [1m[36mcommit transaction[0m
+Redirected to http://localhost:3000/tasks
+Completed 302 Found in 6ms (ActiveRecord: 2.7ms)
+
+
+Started GET "/tasks" for 127.0.0.1 at 2017-10-01 21:58:17 -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 (5.5ms)
+Completed 200 OK in 26ms (Views: 22.6ms | ActiveRecord: 0.6ms)
+
+
+Started GET "/tasks/5/edit" for 127.0.0.1 at 2017-10-01 21:58:20 -0700
+Processing by TasksController#edit as HTML
+ Parameters: {"id"=>"5"}
+ [1m[36mTask Load (0.1ms)[0m [1m[34mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ?[0m [["id", 5], ["LIMIT", 1]]
+ Rendering tasks/edit.html.erb within layouts/application
+ Rendered tasks/_form.html.erb (5.3ms)
+ Rendered tasks/edit.html.erb within layouts/application (8.8ms)
+Completed 200 OK in 32ms (Views: 26.5ms | ActiveRecord: 0.1ms)
+
+
From 75867f1eca56a60569c1b25883eb35616c798d40 Mon Sep 17 00:00:00 2001
From: Amy Cash Uppercase Tasks are Complete
diff --git a/db/development.sqlite3 b/db/development.sqlite3
index 02a79619ff69f1b313066bd2ea90d991c87cda59..9eb838cdf66bea1d3fff0fbe59181d2e913cd7e7 100644
GIT binary patch
delta 136
zcmZp8z}WDBae_3X)kGO*Myrhp3;ktzcQCN=#xn5F<#*wG$JfrM$Q#SMgI9r51Oz85
z1c+@m33$U}Yc0vn00fSXMh1rFx`qb221W`7rdEbVRwm|p2Il4_#wNIBCdbA`vjBBx
MZr&5?EW{`Y0QNN>bpQYW
delta 136
zcmZp8z}WDBae_3X`9v9KM)Qpc3;kso7#P@jV;T78^1JZ8<7?+r