From fefd17ae74065bc48079424255cb0f6fd8f7e902 Mon Sep 17 00:00:00 2001 From: cole m alban Date: Thu, 23 Feb 2017 12:17:45 -0500 Subject: [PATCH 01/16] Add stats page base --- Pearlception/app/controllers/dashboard_controller.rb | 4 ++++ Pearlception/app/views/dashboard/index.html.erb | 1 + Pearlception/app/views/dashboard/statistics.html.erb | 1 + 3 files changed, 6 insertions(+) create mode 100644 Pearlception/app/views/dashboard/statistics.html.erb diff --git a/Pearlception/app/controllers/dashboard_controller.rb b/Pearlception/app/controllers/dashboard_controller.rb index 10a757e..8c41e6e 100644 --- a/Pearlception/app/controllers/dashboard_controller.rb +++ b/Pearlception/app/controllers/dashboard_controller.rb @@ -10,4 +10,8 @@ class DashboardController < ApplicationController redirect_to "/signin" unless user_signed_in? end + def statistics + + end + end diff --git a/Pearlception/app/views/dashboard/index.html.erb b/Pearlception/app/views/dashboard/index.html.erb index 4cbdef9..075384f 100644 --- a/Pearlception/app/views/dashboard/index.html.erb +++ b/Pearlception/app/views/dashboard/index.html.erb @@ -40,6 +40,7 @@ <% if current_user.admin? %>
  • Companies
  • <% else %> +
  • Statistics
  • Grades
  • <% end %> + +
  • + <%= link_to(destroy_user_session_path, class: 'logout-link', :method => :delete) do %> + Logout + <% end %> +
  • + + + + + + +
    +
    + +
    +
    + <%= javascript_include_tag "bootstrap.min" %>_ + diff --git a/Pearlception/config/routes.rb b/Pearlception/config/routes.rb index d958c2f..8e66a38 100644 --- a/Pearlception/config/routes.rb +++ b/Pearlception/config/routes.rb @@ -7,6 +7,7 @@ Rails.application.routes.draw do resources :runs resources :companies resources :grades + resources :statistics devise_for :users, :controllers => {:registrations => 'registrations'} devise_scope :users do diff --git a/Pearlception/nohup.out b/Pearlception/nohup.out deleted file mode 100644 index 24b7653..0000000 --- a/Pearlception/nohup.out +++ /dev/null @@ -1,2450 +0,0 @@ -=> Booting Puma -=> Rails 5.0.1 application starting in development on http://0.0.0.0:3000 -=> Run `rails server -h` for more startup options -Puma starting in single mode... -* Version 3.6.2 (ruby 2.3.1-p112), codename: Sleepy Sunday Serenity -* Min threads: 5, max threads: 5 -* Environment: development -* Listening on tcp://0.0.0.0:3000 -Use Ctrl-C to stop -Started GET "/" for 192.168.1.1 at 2017-01-20 15:09:58 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 - ActiveRecord::SchemaMigration Load (0.3ms) SELECT `schema_migrations`.* FROM `schema_migrations` -DEPRECATION WARNING: before_filter is deprecated and will be removed in Rails 5.1. Use before_action instead. (called from at /home/bmv/Pearlception_Website_RoR/Pearlception/app/controllers/dashboard_controller.rb:2) -Processing by DashboardController#index as HTML -Redirected to http://128.8.221.44:3000/signin -Filter chain halted as :deny_to_visitors rendered or redirected -Completed 302 Found in 18ms (ActiveRecord: 0.0ms) - - -Started GET "/signin" for 192.168.1.1 at 2017-01-20 15:09:58 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#new as HTML - Rendering /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/registrations/new.html.erb within layouts/application - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/shared/_links.html.erb (1.8ms) - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/registrations/new.html.erb within layouts/application (28.0ms) -Completed 200 OK in 408ms (Views: 387.4ms | ActiveRecord: 1.1ms) - - -Started GET "/signin" for 192.168.1.1 at 2017-01-20 15:10:03 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#new as HTML - Rendering /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/registrations/new.html.erb within layouts/application - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/shared/_links.html.erb (2.6ms) - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/registrations/new.html.erb within layouts/application (9.2ms) -Completed 200 OK in 89ms (Views: 86.7ms | ActiveRecord: 0.0ms) - - -Started GET "/signin" for 192.168.1.1 at 2017-01-20 15:10:04 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#new as HTML - Rendering /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/registrations/new.html.erb within layouts/application - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/shared/_links.html.erb (1.0ms) - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/registrations/new.html.erb within layouts/application (4.7ms) -Completed 200 OK in 52ms (Views: 51.0ms | ActiveRecord: 0.0ms) - - -2017-01-23 01:00:43 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:43 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -Started GET "/" for 69.164.205.7 at 2017-01-23 01:00:43 -0500 -Cannot render console from 69.164.205.7! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML -Redirected to http://localhost/signin -Filter chain halted as :deny_to_visitors rendered or redirected -Completed 302 Found in 1ms (ActiveRecord: 0.0ms) - - -2017-01-23 01:00:43 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:43 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-01-23 01:00:44 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:44 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-01-23 01:00:44 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:44 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-01-23 01:00:44 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:44 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-01-23 01:00:44 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:44 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-01-23 01:00:44 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:44 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -Started OPTIONS "/" for 69.164.205.7 at 2017-01-23 01:00:44 -0500 -Cannot render console from 69.164.205.7! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 - -ActionController::RoutingError (No route matches [OPTIONS] "/"): - -actionpack (5.0.1) lib/action_dispatch/middleware/debug_exceptions.rb:53:in `call' -web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app' -web-console (3.4.0) lib/web_console/middleware.rb:20:in `block in call' -web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch' -web-console (3.4.0) lib/web_console/middleware.rb:18:in `call' -actionpack (5.0.1) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' -railties (5.0.1) lib/rails/rack/logger.rb:36:in `call_app' -railties (5.0.1) lib/rails/rack/logger.rb:24:in `block in call' -activesupport (5.0.1) lib/active_support/tagged_logging.rb:69:in `block in tagged' -activesupport (5.0.1) lib/active_support/tagged_logging.rb:26:in `tagged' -activesupport (5.0.1) lib/active_support/tagged_logging.rb:69:in `tagged' -railties (5.0.1) lib/rails/rack/logger.rb:24:in `call' -sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call' -actionpack (5.0.1) lib/action_dispatch/middleware/request_id.rb:24:in `call' -rack (2.0.1) lib/rack/method_override.rb:22:in `call' -rack (2.0.1) lib/rack/runtime.rb:22:in `call' -activesupport (5.0.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' -actionpack (5.0.1) lib/action_dispatch/middleware/executor.rb:12:in `call' -actionpack (5.0.1) lib/action_dispatch/middleware/static.rb:136:in `call' -rack (2.0.1) lib/rack/sendfile.rb:111:in `call' -railties (5.0.1) lib/rails/engine.rb:522:in `call' -puma (3.6.2) lib/puma/configuration.rb:225:in `call' -puma (3.6.2) lib/puma/server.rb:578:in `handle_request' -puma (3.6.2) lib/puma/server.rb:415:in `process_client' -puma (3.6.2) lib/puma/server.rb:275:in `block in run' -puma (3.6.2) lib/puma/thread_pool.rb:116:in `block in spawn_thread' - Rendering /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout - Rendering /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms) - Rendered collection of /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb [36 times] (9.7ms) - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.8ms) - Rendering /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (35.3ms) -2017-01-23 01:00:44 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:44 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2", "REQUEST_METHOD"=>"OPTIONS", "REQUEST_PATH"=>"/", "REQUEST_URI"=>"/"} ---- -2017-01-23 01:00:44 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:44 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-01-23 01:00:45 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:45 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-01-23 01:00:45 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:45 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-01-23 01:00:45 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:45 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-01-23 01:00:45 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:45 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-01-23 01:00:45 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:45 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-01-23 01:00:45 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:45 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-01-23 01:00:45 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:45 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -Started GET "/nice%20ports%2C/Tri%6Eity.txt%2ebak" for 69.164.205.7 at 2017-01-23 01:00:46 -0500 -Cannot render console from 69.164.205.7! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 - -ActionController::RoutingError (No route matches [GET] "/nice%20ports%2C/Tri%6Eity.txt%2Ebak"): - -actionpack (5.0.1) lib/action_dispatch/middleware/debug_exceptions.rb:53:in `call' -web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app' -web-console (3.4.0) lib/web_console/middleware.rb:20:in `block in call' -web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch' -web-console (3.4.0) lib/web_console/middleware.rb:18:in `call' -actionpack (5.0.1) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' -railties (5.0.1) lib/rails/rack/logger.rb:36:in `call_app' -railties (5.0.1) lib/rails/rack/logger.rb:24:in `block in call' -activesupport (5.0.1) lib/active_support/tagged_logging.rb:69:in `block in tagged' -activesupport (5.0.1) lib/active_support/tagged_logging.rb:26:in `tagged' -activesupport (5.0.1) lib/active_support/tagged_logging.rb:69:in `tagged' -railties (5.0.1) lib/rails/rack/logger.rb:24:in `call' -sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call' -actionpack (5.0.1) lib/action_dispatch/middleware/request_id.rb:24:in `call' -rack (2.0.1) lib/rack/method_override.rb:22:in `call' -rack (2.0.1) lib/rack/runtime.rb:22:in `call' -activesupport (5.0.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' -actionpack (5.0.1) lib/action_dispatch/middleware/executor.rb:12:in `call' -actionpack (5.0.1) lib/action_dispatch/middleware/static.rb:136:in `call' -rack (2.0.1) lib/rack/sendfile.rb:111:in `call' -railties (5.0.1) lib/rails/engine.rb:522:in `call' -puma (3.6.2) lib/puma/configuration.rb:225:in `call' -puma (3.6.2) lib/puma/server.rb:578:in `handle_request' -puma (3.6.2) lib/puma/server.rb:415:in `process_client' -puma (3.6.2) lib/puma/server.rb:275:in `block in run' -puma (3.6.2) lib/puma/thread_pool.rb:116:in `block in spawn_thread' - Rendering /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout - Rendering /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.1ms) - Rendered collection of /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb [36 times] (10.1ms) - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.2ms) - Rendering /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (33.2ms) -2017-01-23 01:00:46 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:46 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-01-23 01:00:46 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:46 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-01-23 01:00:46 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:46 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-01-23 01:00:46 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:46 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2", "REQUEST_METHOD"=>"OPTIONS", "REQUEST_URI"=>"sip:nm"} ---- -2017-01-23 01:00:46 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:46 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-01-23 01:00:46 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:46 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-01-23 01:00:46 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:46 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-01-23 01:00:46 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:46 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-01-23 01:00:47 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:47 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-01-23 01:00:47 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:47 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-01-23 01:00:47 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:47 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-01-23 01:00:47 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:47 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-01-23 01:00:47 -0500: HTTP parse error, malformed request (): # -2017-01-23 01:00:47 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -Started GET "/signin" for 192.168.1.1 at 2017-01-23 13:52:47 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#new as HTML - Rendering /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/registrations/new.html.erb within layouts/application - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/shared/_links.html.erb (0.8ms) - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/registrations/new.html.erb within layouts/application (4.4ms) -Completed 200 OK in 42ms (Views: 40.9ms | ActiveRecord: 0.0ms) - - -Started GET "/" for 94.102.49.190 at 2017-01-24 21:01:19 -0500 -Cannot render console from 94.102.49.190! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML -Redirected to http://128.8.221.44:3000/signin -Filter chain halted as :deny_to_visitors rendered or redirected -Completed 302 Found in 1ms (ActiveRecord: 0.0ms) - - -Started GET "/signin" for 94.102.49.190 at 2017-01-24 21:01:20 -0500 -Cannot render console from 94.102.49.190! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#new as HTML - Rendering /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/registrations/new.html.erb within layouts/application - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/shared/_links.html.erb (0.9ms) - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/registrations/new.html.erb within layouts/application (5.3ms) -Completed 200 OK in 74ms (Views: 72.9ms | ActiveRecord: 0.0ms) - - -2017-01-26 09:39:38 -0500: HTTP parse error, malformed request (): # -2017-01-26 09:39:38 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2", "REQUEST_METHOD"=>"GET", "REQUEST_PATH"=>"/", "REQUEST_URI"=>"/"} ---- -2017-01-31 14:23:15 -0500: HTTP parse error, malformed request (): # -2017-01-31 14:23:15 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2", "REQUEST_METHOD"=>"GET", "REQUEST_PATH"=>"/", "REQUEST_URI"=>"/"} ---- -2017-02-01 12:40:28 -0500: HTTP parse error, malformed request (): # -2017-02-01 12:40:28 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -Started GET "/" for 66.240.236.119 at 2017-02-04 08:16:02 -0500 -Cannot render console from 66.240.236.119! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML -Redirected to http://128.8.221.44:3000/signin -Filter chain halted as :deny_to_visitors rendered or redirected -Completed 302 Found in 1ms (ActiveRecord: 0.0ms) - - -Started GET "/signin" for 66.240.236.119 at 2017-02-04 08:16:02 -0500 -Cannot render console from 66.240.236.119! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#new as HTML - Rendering /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/registrations/new.html.erb within layouts/application - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/shared/_links.html.erb (0.9ms) - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/registrations/new.html.erb within layouts/application (4.2ms) -Completed 200 OK in 44ms (Views: 42.9ms | ActiveRecord: 0.0ms) - - -Started GET "/" for 192.168.1.1 at 2017-02-08 12:39:18 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML -Redirected to http://128.8.221.44:3000/signin -Filter chain halted as :deny_to_visitors rendered or redirected -Completed 302 Found in 1ms (ActiveRecord: 0.0ms) - - -Started GET "/signin" for 192.168.1.1 at 2017-02-08 12:39:18 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#new as HTML - Rendering /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/registrations/new.html.erb within layouts/application - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/shared/_links.html.erb (0.9ms) - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/registrations/new.html.erb within layouts/application (4.3ms) -Completed 200 OK in 41ms (Views: 40.6ms | ActiveRecord: 0.0ms) - - -Started GET "/" for 10.104.232.212 at 2017-02-08 13:23:07 -0500 -Cannot render console from 10.104.232.212! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML -Redirected to http://128.8.221.44:3000/signin -Filter chain halted as :deny_to_visitors rendered or redirected -Completed 302 Found in 1ms (ActiveRecord: 0.0ms) - - -Started GET "/signin" for 10.104.232.212 at 2017-02-08 13:23:07 -0500 -Cannot render console from 10.104.232.212! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#new as HTML - Rendering /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/registrations/new.html.erb within layouts/application - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/shared/_links.html.erb (0.9ms) - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/registrations/new.html.erb within layouts/application (4.5ms) -Completed 200 OK in 43ms (Views: 42.6ms | ActiveRecord: 0.0ms) - - -Started GET "/" for 10.104.67.2 at 2017-02-09 10:54:03 -0500 -Cannot render console from 10.104.67.2! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML -Redirected to http://128.8.221.44:3000/signin -Filter chain halted as :deny_to_visitors rendered or redirected -Completed 302 Found in 1ms (ActiveRecord: 0.0ms) - - -Started GET "/signin" for 10.104.67.2 at 2017-02-09 10:54:03 -0500 -Cannot render console from 10.104.67.2! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#new as HTML - Rendering /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/registrations/new.html.erb within layouts/application - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/shared/_links.html.erb (0.9ms) - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/registrations/new.html.erb within layouts/application (4.4ms) -Completed 200 OK in 41ms (Views: 40.7ms | ActiveRecord: 0.0ms) - - -Started GET "/users/sign_in" for 10.104.67.2 at 2017-02-09 10:54:06 -0500 -Cannot render console from 10.104.67.2! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by Devise::SessionsController#new as HTML - Rendering /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/sessions/new.html.erb within layouts/application - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/shared/_links.html.erb (1.7ms) - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/sessions/new.html.erb within layouts/application (11.5ms) -Completed 200 OK in 94ms (Views: 59.7ms | ActiveRecord: 0.0ms) - - -Started GET "/users/sign_in" for 10.104.67.2 at 2017-02-09 11:22:00 -0500 -Cannot render console from 10.104.67.2! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by Devise::SessionsController#new as HTML - Rendering /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/sessions/new.html.erb within layouts/application - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/shared/_links.html.erb (0.9ms) - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/sessions/new.html.erb within layouts/application (5.0ms) -Completed 200 OK in 46ms (Views: 44.4ms | ActiveRecord: 0.0ms) - - -2017-02-09 13:27:02 -0500: HTTP parse error, malformed request (): # -2017-02-09 13:27:02 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2", "REQUEST_METHOD"=>"GET", "REQUEST_PATH"=>"/", "REQUEST_URI"=>"/"} ---- -Started POST "/users" for 10.104.232.212 at 2017-02-10 11:11:27 -0500 -Cannot render console from 10.104.232.212! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#create as HTML - Parameters: {"utf8"=>"✓", "authenticity_token"=>"+pDPxN7qlQ43QVC0+O4fyPkhqzGVlE6u/BJ6K4FaswMleaUdPeKHn6vjQDKFUHGHMK4V2238S41uYb+fqFsquA==", "user"=>{"email"=>"", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} - -Frame number: 0/72 - -From: /home/bmv/Pearlception_Website_RoR/Pearlception/app/controllers/registrations_controller.rb @ line 7 RegistrationsController#create: - - 5: def create - 6: binding.pry - => 7: @user = User.new(sign_up_params) - 8: if !@user.admin? - 9: #search by company token given by one of pearlception admins to the company - 10: #and look up comany_id # - 11: @user.company_id = 0 - 12: else - 13: @user.company_id = -1 - 14: end - 15: @user.save - 16: sign_in @user - 17: redirect_to "/" - 18: end - -Development [1] pearlception(#)> Error: Bad file descriptor - read -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:198:in `readline' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:198:in `block in input_readline' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/input_lock.rb:115:in `interruptible_region' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:197:in `input_readline' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:183:in `block in read_line' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:129:in `handle_read_errors' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:170:in `read_line' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:98:in `read' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:68:in `block in repl' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:67:in `loop' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:67:in `repl' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:38:in `block in start' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/input_lock.rb:61:in `__with_ownership' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/input_lock.rb:79:in `with_ownership' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:38:in `start' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:15:in `start' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/pry_class.rb:169:in `start' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:115:in `block in resume_pry' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:28:in `block in run' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:27:in `catch' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:27:in `run' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:111:in `resume_pry' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:63:in `at_line' -/usr/local/rvm/gems/ruby-2.3.1/gems/byebug-9.0.6/lib/byebug/context.rb:96:in `at_line' -/home/bmv/Pearlception_Website_RoR/Pearlception/app/controllers/registrations_controller.rb:7:in `create' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/abstract_controller/base.rb:188:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/rendering.rb:30:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/abstract_controller/callbacks.rb:20:in `block in process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:126:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:506:in `block (2 levels) in compile' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:455:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/notifications.rb:164:in `block in instrument' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/notifications.rb:164:in `instrument' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-5.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/abstract_controller/base.rb:126:in `process' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionview-5.0.1/lib/action_view/rendering.rb:30:in `process' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal.rb:190:in `dispatch' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal.rb:262:in `dispatch' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:50:in `dispatch' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:32:in `serve' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/routing/mapper.rb:16:in `block in ' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/routing/mapper.rb:46:in `serve' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/journey/router.rb:39:in `block in serve' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/journey/router.rb:26:in `each' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/journey/router.rb:26:in `serve' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:725:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/warden-1.2.6/lib/warden/manager.rb:35:in `block in call' -/usr/local/rvm/gems/ruby-2.3.1/gems/warden-1.2.6/lib/warden/manager.rb:34:in `catch' -/usr/local/rvm/gems/ruby-2.3.1/gems/warden-1.2.6/lib/warden/manager.rb:34:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/etag.rb:25:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/conditional_get.rb:38:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/head.rb:12:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/session/abstract/id.rb:222:in `context' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/session/abstract/id.rb:216:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/cookies.rb:613:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-5.0.1/lib/active_record/migration.rb:553:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/callbacks.rb:38:in `block in call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:97:in `__run_callbacks__' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:750:in `_run_call_callbacks' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/callbacks.rb:36:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/executor.rb:12:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/remote_ip.rb:79:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/web-console-3.4.0/lib/web_console/middleware.rb:135:in `call_app' -/usr/local/rvm/gems/ruby-2.3.1/gems/web-console-3.4.0/lib/web_console/middleware.rb:20:in `block in call' -/usr/local/rvm/gems/ruby-2.3.1/gems/web-console-3.4.0/lib/web_console/middleware.rb:18:in `catch' -/usr/local/rvm/gems/ruby-2.3.1/gems/web-console-3.4.0/lib/web_console/middleware.rb:18:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/railties-5.0.1/lib/rails/rack/logger.rb:36:in `call_app' -/usr/local/rvm/gems/ruby-2.3.1/gems/railties-5.0.1/lib/rails/rack/logger.rb:24:in `block in call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:69:in `block in tagged' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:26:in `tagged' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:69:in `tagged' -/usr/local/rvm/gems/ruby-2.3.1/gems/railties-5.0.1/lib/rails/rack/logger.rb:24:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/sprockets-rails-3.2.0/lib/sprockets/rails/quiet_assets.rb:13:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/request_id.rb:24:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/method_override.rb:22:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/runtime.rb:22:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/executor.rb:12:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/static.rb:136:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/sendfile.rb:111:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/railties-5.0.1/lib/rails/engine.rb:522:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/puma-3.6.2/lib/puma/configuration.rb:225:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/puma-3.6.2/lib/puma/server.rb:578:in `handle_request' -/usr/local/rvm/gems/ruby-2.3.1/gems/puma-3.6.2/lib/puma/server.rb:415:in `process_client' -/usr/local/rvm/gems/ruby-2.3.1/gems/puma-3.6.2/lib/puma/server.rb:275:in `block in run' -/usr/local/rvm/gems/ruby-2.3.1/gems/puma-3.6.2/lib/puma/thread_pool.rb:116:in `block in spawn_thread' -Development [1] pearlception(#)> Error: Bad file descriptor - read -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:198:in `readline' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:198:in `block in input_readline' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/input_lock.rb:115:in `interruptible_region' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:197:in `input_readline' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:183:in `block in read_line' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:129:in `handle_read_errors' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:170:in `read_line' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:98:in `read' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:68:in `block in repl' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:67:in `loop' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:67:in `repl' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:38:in `block in start' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/input_lock.rb:61:in `__with_ownership' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/input_lock.rb:79:in `with_ownership' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:38:in `start' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:15:in `start' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/pry_class.rb:169:in `start' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:115:in `block in resume_pry' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:28:in `block in run' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:27:in `catch' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:27:in `run' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:111:in `resume_pry' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:63:in `at_line' -/usr/local/rvm/gems/ruby-2.3.1/gems/byebug-9.0.6/lib/byebug/context.rb:96:in `at_line' -/home/bmv/Pearlception_Website_RoR/Pearlception/app/controllers/registrations_controller.rb:7:in `create' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/abstract_controller/base.rb:188:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/rendering.rb:30:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/abstract_controller/callbacks.rb:20:in `block in process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:126:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:506:in `block (2 levels) in compile' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:455:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/notifications.rb:164:in `block in instrument' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/notifications.rb:164:in `instrument' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-5.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/abstract_controller/base.rb:126:in `process' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionview-5.0.1/lib/action_view/rendering.rb:30:in `process' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal.rb:190:in `dispatch' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal.rb:262:in `dispatch' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:50:in `dispatch' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:32:in `serve' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/routing/mapper.rb:16:in `block in ' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/routing/mapper.rb:46:in `serve' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/journey/router.rb:39:in `block in serve' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/journey/router.rb:26:in `each' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/journey/router.rb:26:in `serve' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:725:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/warden-1.2.6/lib/warden/manager.rb:35:in `block in call' -/usr/local/rvm/gems/ruby-2.3.1/gems/warden-1.2.6/lib/warden/manager.rb:34:in `catch' -/usr/local/rvm/gems/ruby-2.3.1/gems/warden-1.2.6/lib/warden/manager.rb:34:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/etag.rb:25:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/conditional_get.rb:38:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/head.rb:12:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/session/abstract/id.rb:222:in `context' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/session/abstract/id.rb:216:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/cookies.rb:613:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-5.0.1/lib/active_record/migration.rb:553:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/callbacks.rb:38:in `block in call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:97:in `__run_callbacks__' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:750:in `_run_call_callbacks' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/callbacks.rb:36:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/executor.rb:12:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/remote_ip.rb:79:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/web-console-3.4.0/lib/web_console/middleware.rb:135:in `call_app' -/usr/local/rvm/gems/ruby-2.3.1/gems/web-console-3.4.0/lib/web_console/middleware.rb:20:in `block in call' -/usr/local/rvm/gems/ruby-2.3.1/gems/web-console-3.4.0/lib/web_console/middleware.rb:18:in `catch' -/usr/local/rvm/gems/ruby-2.3.1/gems/web-console-3.4.0/lib/web_console/middleware.rb:18:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/railties-5.0.1/lib/rails/rack/logger.rb:36:in `call_app' -/usr/local/rvm/gems/ruby-2.3.1/gems/railties-5.0.1/lib/rails/rack/logger.rb:24:in `block in call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:69:in `block in tagged' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:26:in `tagged' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:69:in `tagged' -/usr/local/rvm/gems/ruby-2.3.1/gems/railties-5.0.1/lib/rails/rack/logger.rb:24:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/sprockets-rails-3.2.0/lib/sprockets/rails/quiet_assets.rb:13:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/request_id.rb:24:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/method_override.rb:22:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/runtime.rb:22:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/executor.rb:12:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/static.rb:136:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/sendfile.rb:111:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/railties-5.0.1/lib/rails/engine.rb:522:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/puma-3.6.2/lib/puma/configuration.rb:225:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/puma-3.6.2/lib/puma/server.rb:578:in `handle_request' -/usr/local/rvm/gems/ruby-2.3.1/gems/puma-3.6.2/lib/puma/server.rb:415:in `process_client' -/usr/local/rvm/gems/ruby-2.3.1/gems/puma-3.6.2/lib/puma/server.rb:275:in `block in run' -/usr/local/rvm/gems/ruby-2.3.1/gems/puma-3.6.2/lib/puma/thread_pool.rb:116:in `block in spawn_thread' -Development [1] pearlception(#)> Error: Bad file descriptor - read -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:198:in `readline' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:198:in `block in input_readline' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/input_lock.rb:115:in `interruptible_region' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:197:in `input_readline' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:183:in `block in read_line' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:129:in `handle_read_errors' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:170:in `read_line' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:98:in `read' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:68:in `block in repl' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:67:in `loop' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:67:in `repl' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:38:in `block in start' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/input_lock.rb:61:in `__with_ownership' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/input_lock.rb:79:in `with_ownership' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:38:in `start' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:15:in `start' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/pry_class.rb:169:in `start' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:115:in `block in resume_pry' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:28:in `block in run' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:27:in `catch' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:27:in `run' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:111:in `resume_pry' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:63:in `at_line' -/usr/local/rvm/gems/ruby-2.3.1/gems/byebug-9.0.6/lib/byebug/context.rb:96:in `at_line' -/home/bmv/Pearlception_Website_RoR/Pearlception/app/controllers/registrations_controller.rb:7:in `create' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/abstract_controller/base.rb:188:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/rendering.rb:30:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/abstract_controller/callbacks.rb:20:in `block in process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:126:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:506:in `block (2 levels) in compile' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:455:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/notifications.rb:164:in `block in instrument' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/notifications.rb:164:in `instrument' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-5.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/abstract_controller/base.rb:126:in `process' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionview-5.0.1/lib/action_view/rendering.rb:30:in `process' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal.rb:190:in `dispatch' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal.rb:262:in `dispatch' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:50:in `dispatch' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:32:in `serve' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/routing/mapper.rb:16:in `block in ' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/routing/mapper.rb:46:in `serve' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/journey/router.rb:39:in `block in serve' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/journey/router.rb:26:in `each' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/journey/router.rb:26:in `serve' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:725:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/warden-1.2.6/lib/warden/manager.rb:35:in `block in call' -/usr/local/rvm/gems/ruby-2.3.1/gems/warden-1.2.6/lib/warden/manager.rb:34:in `catch' -/usr/local/rvm/gems/ruby-2.3.1/gems/warden-1.2.6/lib/warden/manager.rb:34:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/etag.rb:25:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/conditional_get.rb:38:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/head.rb:12:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/session/abstract/id.rb:222:in `context' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/session/abstract/id.rb:216:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/cookies.rb:613:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-5.0.1/lib/active_record/migration.rb:553:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/callbacks.rb:38:in `block in call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:97:in `__run_callbacks__' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:750:in `_run_call_callbacks' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/callbacks.rb:36:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/executor.rb:12:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/remote_ip.rb:79:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/web-console-3.4.0/lib/web_console/middleware.rb:135:in `call_app' -/usr/local/rvm/gems/ruby-2.3.1/gems/web-console-3.4.0/lib/web_console/middleware.rb:20:in `block in call' -/usr/local/rvm/gems/ruby-2.3.1/gems/web-console-3.4.0/lib/web_console/middleware.rb:18:in `catch' -/usr/local/rvm/gems/ruby-2.3.1/gems/web-console-3.4.0/lib/web_console/middleware.rb:18:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/railties-5.0.1/lib/rails/rack/logger.rb:36:in `call_app' -/usr/local/rvm/gems/ruby-2.3.1/gems/railties-5.0.1/lib/rails/rack/logger.rb:24:in `block in call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:69:in `block in tagged' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:26:in `tagged' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:69:in `tagged' -/usr/local/rvm/gems/ruby-2.3.1/gems/railties-5.0.1/lib/rails/rack/logger.rb:24:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/sprockets-rails-3.2.0/lib/sprockets/rails/quiet_assets.rb:13:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/request_id.rb:24:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/method_override.rb:22:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/runtime.rb:22:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/executor.rb:12:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/static.rb:136:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/sendfile.rb:111:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/railties-5.0.1/lib/rails/engine.rb:522:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/puma-3.6.2/lib/puma/configuration.rb:225:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/puma-3.6.2/lib/puma/server.rb:578:in `handle_request' -/usr/local/rvm/gems/ruby-2.3.1/gems/puma-3.6.2/lib/puma/server.rb:415:in `process_client' -/usr/local/rvm/gems/ruby-2.3.1/gems/puma-3.6.2/lib/puma/server.rb:275:in `block in run' -/usr/local/rvm/gems/ruby-2.3.1/gems/puma-3.6.2/lib/puma/thread_pool.rb:116:in `block in spawn_thread' -Development [1] pearlception(#)> Error: Bad file descriptor - read -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:198:in `readline' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:198:in `block in input_readline' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/input_lock.rb:115:in `interruptible_region' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:197:in `input_readline' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:183:in `block in read_line' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:129:in `handle_read_errors' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:170:in `read_line' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:98:in `read' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:68:in `block in repl' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:67:in `loop' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:67:in `repl' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:38:in `block in start' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/input_lock.rb:61:in `__with_ownership' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/input_lock.rb:79:in `with_ownership' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:38:in `start' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:15:in `start' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/pry_class.rb:169:in `start' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:115:in `block in resume_pry' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:28:in `block in run' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:27:in `catch' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:27:in `run' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:111:in `resume_pry' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:63:in `at_line' -/usr/local/rvm/gems/ruby-2.3.1/gems/byebug-9.0.6/lib/byebug/context.rb:96:in `at_line' -/home/bmv/Pearlception_Website_RoR/Pearlception/app/controllers/registrations_controller.rb:7:in `create' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/abstract_controller/base.rb:188:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/rendering.rb:30:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/abstract_controller/callbacks.rb:20:in `block in process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:126:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:506:in `block (2 levels) in compile' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:455:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/notifications.rb:164:in `block in instrument' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/notifications.rb:164:in `instrument' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-5.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/abstract_controller/base.rb:126:in `process' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionview-5.0.1/lib/action_view/rendering.rb:30:in `process' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal.rb:190:in `dispatch' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal.rb:262:in `dispatch' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:50:in `dispatch' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:32:in `serve' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/routing/mapper.rb:16:in `block in ' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/routing/mapper.rb:46:in `serve' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/journey/router.rb:39:in `block in serve' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/journey/router.rb:26:in `each' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/journey/router.rb:26:in `serve' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:725:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/warden-1.2.6/lib/warden/manager.rb:35:in `block in call' -/usr/local/rvm/gems/ruby-2.3.1/gems/warden-1.2.6/lib/warden/manager.rb:34:in `catch' -/usr/local/rvm/gems/ruby-2.3.1/gems/warden-1.2.6/lib/warden/manager.rb:34:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/etag.rb:25:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/conditional_get.rb:38:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/head.rb:12:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/session/abstract/id.rb:222:in `context' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/session/abstract/id.rb:216:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/cookies.rb:613:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-5.0.1/lib/active_record/migration.rb:553:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/callbacks.rb:38:in `block in call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:97:in `__run_callbacks__' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:750:in `_run_call_callbacks' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/callbacks.rb:36:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/executor.rb:12:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/remote_ip.rb:79:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/web-console-3.4.0/lib/web_console/middleware.rb:135:in `call_app' -/usr/local/rvm/gems/ruby-2.3.1/gems/web-console-3.4.0/lib/web_console/middleware.rb:20:in `block in call' -/usr/local/rvm/gems/ruby-2.3.1/gems/web-console-3.4.0/lib/web_console/middleware.rb:18:in `catch' -/usr/local/rvm/gems/ruby-2.3.1/gems/web-console-3.4.0/lib/web_console/middleware.rb:18:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/railties-5.0.1/lib/rails/rack/logger.rb:36:in `call_app' -/usr/local/rvm/gems/ruby-2.3.1/gems/railties-5.0.1/lib/rails/rack/logger.rb:24:in `block in call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:69:in `block in tagged' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:26:in `tagged' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:69:in `tagged' -/usr/local/rvm/gems/ruby-2.3.1/gems/railties-5.0.1/lib/rails/rack/logger.rb:24:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/sprockets-rails-3.2.0/lib/sprockets/rails/quiet_assets.rb:13:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/request_id.rb:24:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/method_override.rb:22:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/runtime.rb:22:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/executor.rb:12:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/static.rb:136:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/sendfile.rb:111:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/railties-5.0.1/lib/rails/engine.rb:522:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/puma-3.6.2/lib/puma/configuration.rb:225:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/puma-3.6.2/lib/puma/server.rb:578:in `handle_request' -/usr/local/rvm/gems/ruby-2.3.1/gems/puma-3.6.2/lib/puma/server.rb:415:in `process_client' -/usr/local/rvm/gems/ruby-2.3.1/gems/puma-3.6.2/lib/puma/server.rb:275:in `block in run' -/usr/local/rvm/gems/ruby-2.3.1/gems/puma-3.6.2/lib/puma/thread_pool.rb:116:in `block in spawn_thread' -Development [1] pearlception(#)> Error: Bad file descriptor - read -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:198:in `readline' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:198:in `block in input_readline' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/input_lock.rb:115:in `interruptible_region' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:197:in `input_readline' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:183:in `block in read_line' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:129:in `handle_read_errors' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:170:in `read_line' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:98:in `read' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:68:in `block in repl' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:67:in `loop' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:67:in `repl' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:38:in `block in start' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/input_lock.rb:61:in `__with_ownership' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/input_lock.rb:79:in `with_ownership' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:38:in `start' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/repl.rb:15:in `start' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-0.10.4/lib/pry/pry_class.rb:169:in `start' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:115:in `block in resume_pry' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:28:in `block in run' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:27:in `catch' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:27:in `run' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:111:in `resume_pry' -/usr/local/rvm/gems/ruby-2.3.1/gems/pry-byebug-3.4.2/lib/byebug/processors/pry_processor.rb:63:in `at_line' -/usr/local/rvm/gems/ruby-2.3.1/gems/byebug-9.0.6/lib/byebug/context.rb:96:in `at_line' -/home/bmv/Pearlception_Website_RoR/Pearlception/app/controllers/registrations_controller.rb:7:in `create' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/abstract_controller/base.rb:188:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/rendering.rb:30:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/abstract_controller/callbacks.rb:20:in `block in process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:126:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:506:in `block (2 levels) in compile' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:455:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/notifications.rb:164:in `block in instrument' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/notifications.rb:164:in `instrument' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-5.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/abstract_controller/base.rb:126:in `process' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionview-5.0.1/lib/action_view/rendering.rb:30:in `process' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal.rb:190:in `dispatch' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_controller/metal.rb:262:in `dispatch' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:50:in `dispatch' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:32:in `serve' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/routing/mapper.rb:16:in `block in ' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/routing/mapper.rb:46:in `serve' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/journey/router.rb:39:in `block in serve' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/journey/router.rb:26:in `each' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/journey/router.rb:26:in `serve' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:725:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/warden-1.2.6/lib/warden/manager.rb:35:in `block in call' -/usr/local/rvm/gems/ruby-2.3.1/gems/warden-1.2.6/lib/warden/manager.rb:34:in `catch' -/usr/local/rvm/gems/ruby-2.3.1/gems/warden-1.2.6/lib/warden/manager.rb:34:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/etag.rb:25:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/conditional_get.rb:38:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/head.rb:12:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/session/abstract/id.rb:222:in `context' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/session/abstract/id.rb:216:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/cookies.rb:613:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-5.0.1/lib/active_record/migration.rb:553:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/callbacks.rb:38:in `block in call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:97:in `__run_callbacks__' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:750:in `_run_call_callbacks' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/callbacks.rb:36:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/executor.rb:12:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/remote_ip.rb:79:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/web-console-3.4.0/lib/web_console/middleware.rb:135:in `call_app' -/usr/local/rvm/gems/ruby-2.3.1/gems/web-console-3.4.0/lib/web_console/middleware.rb:20:in `block in call' -/usr/local/rvm/gems/ruby-2.3.1/gems/web-console-3.4.0/lib/web_console/middleware.rb:18:in `catch' -/usr/local/rvm/gems/ruby-2.3.1/gems/web-console-3.4.0/lib/web_console/middleware.rb:18:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/railties-5.0.1/lib/rails/rack/logger.rb:36:in `call_app' -/usr/local/rvm/gems/ruby-2.3.1/gems/railties-5.0.1/lib/rails/rack/logger.rb:24:in `block in call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:69:in `block in tagged' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:26:in `tagged' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:69:in `tagged' -/usr/local/rvm/gems/ruby-2.3.1/gems/railties-5.0.1/lib/rails/rack/logger.rb:24:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/sprockets-rails-3.2.0/lib/sprockets/rails/quiet_assets.rb:13:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/request_id.rb:24:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/method_override.rb:22:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/runtime.rb:22:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-5.0.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/executor.rb:12:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/static.rb:136:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/sendfile.rb:111:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/railties-5.0.1/lib/rails/engine.rb:522:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/puma-3.6.2/lib/puma/configuration.rb:225:in `call' -/usr/local/rvm/gems/ruby-2.3.1/gems/puma-3.6.2/lib/puma/server.rb:578:in `handle_request' -/usr/local/rvm/gems/ruby-2.3.1/gems/puma-3.6.2/lib/puma/server.rb:415:in `process_client' -/usr/local/rvm/gems/ruby-2.3.1/gems/puma-3.6.2/lib/puma/server.rb:275:in `block in run' -/usr/local/rvm/gems/ruby-2.3.1/gems/puma-3.6.2/lib/puma/thread_pool.rb:116:in `block in spawn_thread' -FATAL: Pry failed to get user input using `Readline`. -To fix this you may be able to pass input and output file descriptors to pry directly. e.g. - Pry.config.input = STDIN - Pry.config.output = STDOUT - binding.pry -Completed 500 Internal Server Error in 398ms (ActiveRecord: 0.0ms) - - - -NoMethodError (undefined method `admin?' for #): - -app/controllers/registrations_controller.rb:8:in `create' - Rendering /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout - Rendering /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_source.html.erb - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (139.8ms) - Rendering /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (34.5ms) - Rendering /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (11.4ms) - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (234.0ms) -2017-02-14 16:47:59 -0500: HTTP parse error, malformed request (): # -2017-02-14 16:47:59 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2", "REQUEST_METHOD"=>"GET", "REQUEST_PATH"=>"/", "REQUEST_URI"=>"/"} ---- -Started GET "/signin" for 10.104.234.253 at 2017-02-16 17:34:11 -0500 -Cannot render console from 10.104.234.253! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#new as HTML - Rendering /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/registrations/new.html.erb within layouts/application - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/shared/_links.html.erb (9.8ms) - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/devise-4.2.0/app/views/devise/registrations/new.html.erb within layouts/application (86.9ms) -Completed 200 OK in 1156ms (Views: 1133.6ms | ActiveRecord: 0.0ms) - - -- Gracefully stopping, waiting for requests to finish -=== puma shutdown: 2017-02-17 15:35:20 -0500 === -- Goodbye! -Exiting -=> Booting Puma -=> Rails 5.0.1 application starting in development on http://0.0.0.0:3000 -=> Run `rails server -h` for more startup options -Puma starting in single mode... -* Version 3.6.2 (ruby 2.3.1-p112), codename: Sleepy Sunday Serenity -* Min threads: 5, max threads: 5 -* Environment: development -* Listening on tcp://0.0.0.0:3000 -Use Ctrl-C to stop -Started GET "/" for 192.168.1.1 at 2017-02-17 16:17:38 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 - ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` -DEPRECATION WARNING: before_filter is deprecated and will be removed in Rails 5.1. Use before_action instead. (called from at /home/bmv/Pearlception_Website_RoR/Pearlception/app/controllers/dashboard_controller.rb:2) -Processing by DashboardController#index as HTML -Redirected to http://128.8.221.44:3000/signin -Filter chain halted as :deny_to_visitors rendered or redirected -Completed 302 Found in 19ms (ActiveRecord: 0.0ms) - - -Started GET "/signin" for 192.168.1.1 at 2017-02-17 16:17:38 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#new as HTML - Rendering registrations/new.html.erb within layouts/application - Rendered shared/_links.html.erb (1.2ms) - Rendered partials/_login_form.html.erb (2.6ms) - Rendered registrations/new.html.erb within layouts/application (60.9ms) -Completed 200 OK in 10358ms (Views: 354.0ms) - - -Started GET "/" for 71.6.135.131 at 2017-02-18 03:05:03 -0500 -Cannot render console from 71.6.135.131! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML -Redirected to http://128.8.221.44:3000/signin -Filter chain halted as :deny_to_visitors rendered or redirected -Completed 302 Found in 1ms (ActiveRecord: 0.0ms) - - -Started GET "/signin" for 71.6.135.131 at 2017-02-18 03:05:03 -0500 -Cannot render console from 71.6.135.131! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#new as HTML - Rendering registrations/new.html.erb within layouts/application - Rendered shared/_links.html.erb (0.9ms) - Rendered partials/_login_form.html.erb (1.1ms) - Rendered registrations/new.html.erb within layouts/application (7.8ms) -Completed 200 OK in 47ms (Views: 45.6ms) - - -2017-02-19 08:56:06 -0500: HTTP parse error, malformed request (): # -2017-02-19 08:56:06 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2", "REQUEST_METHOD"=>"GET", "REQUEST_PATH"=>"/", "REQUEST_URI"=>"/"} ---- -=> Booting Puma -=> Rails 5.0.1 application starting in development on http://0.0.0.0:3000 -=> Run `rails server -h` for more startup options -A server is already running. Check /home/bmv/Pearlception_Website_RoR/Pearlception/tmp/pids/server.pid. -Exiting -=> Booting Puma -=> Rails 5.0.1 application starting in development on http://0.0.0.0:3000 -=> Run `rails server -h` for more startup options -A server is already running. Check /home/bmv/Pearlception_Website_RoR/Pearlception/tmp/pids/server.pid. -Exiting -Started GET "/" for 72.83.38.60 at 2017-02-21 10:39:56 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -DEPRECATION WARNING: before_filter is deprecated and will be removed in Rails 5.1. Use before_action instead. (called from at /home/bmv/Pearlception_Website_RoR/Pearlception/app/controllers/dashboard_controller.rb:2) -Processing by DashboardController#index as HTML -Redirected to http://128.8.221.44:3000/signin -Filter chain halted as :deny_to_visitors rendered or redirected -Completed 302 Found in 1ms (ActiveRecord: 0.0ms) - - -Started GET "/signin" for 72.83.38.60 at 2017-02-21 10:39:56 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#new as HTML - Rendering registrations/new.html.erb within layouts/application - Rendered shared/_links.html.erb (1.0ms) - Rendered partials/_login_form.html.erb (1.1ms) - Rendered registrations/new.html.erb within layouts/application (22.3ms) -Completed 200 OK in 63ms (Views: 61.3ms) - - -Started POST "/users" for 72.83.38.60 at 2017-02-21 10:40:51 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#create as HTML - Parameters: {"utf8"=>"✓", "authenticity_token"=>"j8B4yjT2SweFsFVxOizjQTfJb+xB+9gnnODGLJxUKXvrwOaP1rF/zQ6RL4YCYbhp7vDfqHJ9I/9IrMWxmgGgWg==", "company_serial"=>"a41b23cf-1d61-4fb4-9b69-0167abd7c583", "user"=>{"email"=>"oonyeje@pearl.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} -Unpermitted parameters: email, password, password_confirmation - Company Load (0.3ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`company_token` = 'a41b23cf-1d61-4fb4-9b69-0167abd7c583' LIMIT 1 -  (0.1ms) BEGIN - User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'oonyeje@pearl.com' LIMIT 1 - SQL (0.2ms) INSERT INTO `users` (`email`, `encrypted_password`, `company_id`, `admin`, `created_at`, `updated_at`) VALUES ('oonyeje@pearl.com', '$2a$11$JKwmkUYBAAWeZNpEL4Mwget3BPw.3HE3YlCMIEvJZElY6YxveJfR.', 1, 1, '2017-02-21 15:40:51', '2017-02-21 15:40:51') -  (70.8ms) COMMIT -  (0.1ms) BEGIN - SQL (0.3ms) UPDATE `users` SET `sign_in_count` = 1, `current_sign_in_at` = '2017-02-21 15:40:51', `last_sign_in_at` = '2017-02-21 15:40:51', `current_sign_in_ip` = '72.83.38.60', `last_sign_in_ip` = '72.83.38.60' WHERE `users`.`id` = 1 -  (63.6ms) COMMIT -Redirected to http://128.8.221.44:3000/ -Completed 302 Found in 299ms (ActiveRecord: 136.3ms) - - -Started GET "/" for 72.83.38.60 at 2017-02-21 10:40:51 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application -  (0.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (102.9ms) -Completed 200 OK in 142ms (Views: 136.6ms | ActiveRecord: 1.6ms) - - -Started GET "/companies" for 72.83.38.60 at 2017-02-21 10:41:00 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -DEPRECATION WARNING: before_filter is deprecated and will be removed in Rails 5.1. Use before_action instead. (called from at /home/bmv/Pearlception_Website_RoR/Pearlception/app/controllers/companies_controller.rb:3) -Processing by CompaniesController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/index.html.erb within layouts/application -  (0.2ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` - Company Load (0.1ms) SELECT `companies`.* FROM `companies` - Rendered companies/index.html.erb within layouts/application (8.3ms) -Completed 200 OK in 49ms (Views: 44.6ms | ActiveRecord: 0.8ms) - - -Started GET "/companies/new" for 72.83.38.60 at 2017-02-21 10:41:07 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by CompaniesController#new as HTML - Parameters: {"authenticity_token"=>"QWNq1ZZFFb2DOwEyP2aPqDNE73Nw5zTOuu7q5GFR81clY/SQdAIhdwgae8UHK9SA6n1fN0NhzxZuoul5ZwR6dg=="} - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/new.html.erb within layouts/application - Rendered companies/new.html.erb within layouts/application (6.6ms) -Completed 200 OK in 57ms (Views: 53.7ms | ActiveRecord: 0.3ms) - - -Started GET "/companies/new" for 72.83.38.60 at 2017-02-21 10:41:07 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by CompaniesController#new as HTML - Parameters: {"authenticity_token"=>"QWNq1ZZFFb2DOwEyP2aPqDNE73Nw5zTOuu7q5GFR81clY/SQdAIhdwgae8UHK9SA6n1fN0NhzxZuoul5ZwR6dg=="} - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/new.html.erb within layouts/application - Rendered companies/new.html.erb within layouts/application (8.2ms) -Completed 200 OK in 51ms (Views: 47.9ms | ActiveRecord: 0.3ms) - - -Started POST "/companies" for 72.83.38.60 at 2017-02-21 10:41:20 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by CompaniesController#create as HTML - Parameters: {"utf8"=>"✓", "authenticity_token"=>"blC5zKPJnFQitcHNX2K0FqEtDWFOK1gFvmv7CMaJFjAKUCeJQY6onqmUuzpnL+8+eBS9JX2to91qJ/iVwNyfEQ==", "company"=>{"company_name"=>"Taylors"}, "commit"=>"Create"} - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 ORDER BY `users`.`id` ASC LIMIT 1 -  (0.0ms) BEGIN - SQL (0.5ms) INSERT INTO `companies` (`company_name`, `company_token`, `created_at`, `updated_at`) VALUES ('Taylors', 'c77fecc4-7893-4fad-862c-9e2c44906534', '2017-02-21 15:41:20', '2017-02-21 15:41:20') -  (0.3ms) CREATE DATABASE `development_Taylors` DEFAULT CHARACTER SET `utf8` -  (0.1ms) SELECT DATABASE() as db -  (457.9ms) CREATE TABLE `companies` (`id` int AUTO_INCREMENT PRIMARY KEY, `company_name` varchar(255), `company_token` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8 -  (525.3ms) CREATE TABLE `grades` (`id` int AUTO_INCREMENT PRIMARY KEY, `Full_name` varchar(100) NOT NULL, `Short_name` varchar(10) NOT NULL, `Volume_max` float(53), `Volume_min` float(53), `Length_max` float(53), `Length_min` float(53), `Width_max` float(53), `Width_min` float(53), `Height_max` float(53), `Height_min` float(53), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `index_grades_on_Short_name` USING btree (`Short_name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 -  (459.4ms) CREATE TABLE `machines` (`id` int AUTO_INCREMENT PRIMARY KEY, `key` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8 -  (602.3ms) CREATE TABLE `oysters` (`id` int AUTO_INCREMENT PRIMARY KEY, `run_id` int NOT NULL, `grade` varchar(50) NOT NULL, `volume` float(53), `length` float(53), `width` float(53), `height` float(53), `machine_id` int, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_oysters_on_machine_id` USING btree (`machine_id`), INDEX `index_oysters_on_run_id` USING btree (`run_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 -  (550.3ms) CREATE TABLE `results` (`id` int AUTO_INCREMENT PRIMARY KEY, `total` int NOT NULL, `grade1` int, `grade2` int, `grade3` int, `grade4` int, `grade5` int, `grade6` int, `grade7` int, `grade8` int, `grade9` int, `grade10` int, `machine_id` int, `run_id` int, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_results_on_machine_id` USING btree (`machine_id`), INDEX `index_results_on_run_id` USING btree (`run_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 -  (459.1ms) CREATE TABLE `runs` (`id` int AUTO_INCREMENT PRIMARY KEY, `runDate` datetime NOT NULL, `location` varchar(50), `harvest_time` varchar(50), `supplier` varchar(50), `distributor` varchar(50), `other` varchar(50), `machine_id` int, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_runs_on_machine_id` USING btree (`machine_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 -  (500.1ms) CREATE TABLE `users` (`id` int AUTO_INCREMENT PRIMARY KEY, `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `company_id` int DEFAULT -1 NOT NULL, `admin` tinyint(1) DEFAULT 0 NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `sign_in_count` int DEFAULT 0 NOT NULL, `current_sign_in_at` datetime, `last_sign_in_at` datetime, `current_sign_in_ip` varchar(255), `last_sign_in_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `index_users_on_email` USING btree (`email`), UNIQUE INDEX `index_users_on_reset_password_token` USING btree (`reset_password_token`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 -  (469.0ms) CREATE TABLE `schema_migrations` (`version` varchar(255) PRIMARY KEY) ENGINE=InnoDB -  (0.2ms) SELECT version FROM `schema_migrations` -  (66.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20170210202948') -  (66.7ms) INSERT INTO schema_migrations (version) VALUES -('20170210200740'), -('20170210200122'), -('20170210193338'), -('20170109174008'), -('20170104173311'), -('20170119161737'), -('20170210201958'); - - -  (532.5ms) CREATE TABLE `ar_internal_metadata` (`key` varchar(255) PRIMARY KEY, `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB - ActiveRecord::InternalMetadata Load (0.2ms) SELECT `ar_internal_metadata`.* FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' LIMIT 1 -  (0.1ms) BEGIN - SQL (0.2ms) INSERT INTO `ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('environment', 'development', '2017-02-21 15:41:25', '2017-02-21 15:41:25') -  (55.9ms) COMMIT -  (56.3ms) COMMIT -Redirected to http://128.8.221.44:3000/companies -Completed 302 Found in 4889ms - - -Started GET "/companies" for 72.83.38.60 at 2017-02-21 10:41:25 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by CompaniesController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/index.html.erb within layouts/application -  (0.2ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` - Company Load (0.1ms) SELECT `companies`.* FROM `companies` - Rendered companies/index.html.erb within layouts/application (12.0ms) -Completed 200 OK in 74ms (Views: 69.4ms | ActiveRecord: 0.8ms) - - -Started DELETE "/users/sign_out" for 72.83.38.60 at 2017-02-21 10:43:55 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by Devise::SessionsController#destroy as HTML - Parameters: {"authenticity_token"=>"PxCIxXhs9/vnoLKotzkjTpEGh55c5AAPOZESVP9eFklbEBaAmivDMWyByF+PdHhmSD832m9i+9ft3RHJ+QufaA=="} - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 ORDER BY `users`.`id` ASC LIMIT 1 -  (0.1ms) BEGIN -  (0.1ms) COMMIT -Redirected to http://128.8.221.44:3000/ -Completed 302 Found in 34ms (ActiveRecord: 0.4ms) - - -Started DELETE "/users/sign_out" for 72.83.38.60 at 2017-02-21 10:43:55 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by Devise::SessionsController#destroy as HTML - Parameters: {"authenticity_token"=>"PxCIxXhs9/vnoLKotzkjTpEGh55c5AAPOZESVP9eFklbEBaAmivDMWyByF+PdHhmSD832m9i+9ft3RHJ+QufaA=="} -Redirected to http://128.8.221.44:3000/ -Filter chain halted as :verify_signed_out_user rendered or redirected -Completed 302 Found in 1ms (ActiveRecord: 0.0ms) - - -Started GET "/" for 72.83.38.60 at 2017-02-21 10:43:55 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML -Redirected to http://128.8.221.44:3000/signin -Filter chain halted as :deny_to_visitors rendered or redirected -Completed 302 Found in 1ms (ActiveRecord: 0.0ms) - - -Started GET "/signin" for 72.83.38.60 at 2017-02-21 10:43:55 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#new as HTML - Rendering registrations/new.html.erb within layouts/application - Rendered shared/_links.html.erb (1.6ms) - Rendered partials/_login_form.html.erb (1.4ms) - Rendered registrations/new.html.erb within layouts/application (11.0ms) -Completed 200 OK in 68ms (Views: 66.3ms) - - -Started POST "/users" for 72.83.38.60 at 2017-02-21 10:44:19 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#create as HTML - Parameters: {"utf8"=>"✓", "authenticity_token"=>"Em9awSn89xx1hSntt2NByWXO90lQQchqb8hdmHphxn8EoK7JcMTj2jVLNoe0KVegLf19ivNmrQANx5mfE3Aeog==", "company_serial"=>"c77fecc4-7893-4fad-862c-9e2c44906534", "user"=>{"email"=>"employ1@pearl.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} -Unpermitted parameters: email, password, password_confirmation - Company Load (0.2ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`company_token` = 'c77fecc4-7893-4fad-862c-9e2c44906534' LIMIT 1 -  (0.0ms) BEGIN - User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'employ1@pearl.com' LIMIT 1 - SQL (0.4ms) INSERT INTO `users` (`email`, `encrypted_password`, `company_id`, `created_at`, `updated_at`) VALUES ('employ1@pearl.com', '$2a$11$rzRrxNUF2ImAsQRHR1.I1uzAQ4XTwpo.tUe92Gje2YtNje2lo8vhK', 2, '2017-02-21 15:44:19', '2017-02-21 15:44:19') -  (107.2ms) COMMIT -  (0.1ms) BEGIN - SQL (0.2ms) UPDATE `users` SET `sign_in_count` = 1, `current_sign_in_at` = '2017-02-21 15:44:20', `last_sign_in_at` = '2017-02-21 15:44:20', `current_sign_in_ip` = '72.83.38.60', `last_sign_in_ip` = '72.83.38.60', `updated_at` = '2017-02-21 15:44:20' WHERE `users`.`id` = 2 -  (97.6ms) COMMIT - Company Load (0.2ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 2 LIMIT 1 -DEPRECATION WARNING: [Deprecation Warning] `switch` now requires a block reset to the default tenant after the block. Please use `switch!` instead if you don't want this (called from create at /home/bmv/Pearlception_Website_RoR/Pearlception/app/controllers/registrations_controller.rb:29) -Redirected to http://128.8.221.44:3000/ -Completed 302 Found in 353ms (ActiveRecord: 206.1ms) - - -Started GET "/" for 72.83.38.60 at 2017-02-21 10:44:20 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application - Company Load (0.2ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 2 LIMIT 1 -  (0.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (12.6ms) -Completed 200 OK in 51ms (Views: 46.8ms | ActiveRecord: 1.0ms) - - -Started GET "/grades" for 72.83.38.60 at 2017-02-21 10:44:24 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -DEPRECATION WARNING: before_filter is deprecated and will be removed in Rails 5.1. Use before_action instead. (called from at /home/bmv/Pearlception_Website_RoR/Pearlception/app/controllers/grades_controller.rb:2) -Processing by GradesController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering grades/index.html.erb within layouts/application -  (0.1ms) SELECT COUNT(*) FROM `grades` - CACHE (0.0ms) SELECT COUNT(*) FROM `grades` - Rendered grades/index.html.erb within layouts/application (9.4ms) -Completed 200 OK in 52ms (Views: 45.2ms | ActiveRecord: 1.3ms) - - -Started DELETE "/users/sign_out" for 72.83.38.60 at 2017-02-21 10:45:11 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by Devise::SessionsController#destroy as HTML - Parameters: {"authenticity_token"=>"XdQNFbcXzKjWzszxb0Kmo0rIqp3Za5FL7munjax4t6dLG/kd7i/YbpYA05tsCLDKAvsgXnpM9CGMZGOKxWlveg=="} - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 ORDER BY `users`.`id` ASC LIMIT 1 -  (0.1ms) BEGIN -  (0.1ms) COMMIT -Redirected to http://128.8.221.44:3000/ -Completed 302 Found in 6ms (ActiveRecord: 0.4ms) - - -Started DELETE "/users/sign_out" for 72.83.38.60 at 2017-02-21 10:45:12 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by Devise::SessionsController#destroy as HTML - Parameters: {"authenticity_token"=>"XdQNFbcXzKjWzszxb0Kmo0rIqp3Za5FL7munjax4t6dLG/kd7i/YbpYA05tsCLDKAvsgXnpM9CGMZGOKxWlveg=="} -Redirected to http://128.8.221.44:3000/ -Filter chain halted as :verify_signed_out_user rendered or redirected -Completed 302 Found in 1ms (ActiveRecord: 0.0ms) - - -Started GET "/" for 72.83.38.60 at 2017-02-21 10:45:12 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML -Redirected to http://128.8.221.44:3000/signin -Filter chain halted as :deny_to_visitors rendered or redirected -Completed 302 Found in 1ms (ActiveRecord: 0.0ms) - - -Started GET "/signin" for 72.83.38.60 at 2017-02-21 10:45:12 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#new as HTML - Rendering registrations/new.html.erb within layouts/application - Rendered shared/_links.html.erb (1.2ms) - Rendered partials/_login_form.html.erb (1.2ms) - Rendered registrations/new.html.erb within layouts/application (10.0ms) -Completed 200 OK in 58ms (Views: 56.7ms) - - -Started POST "/users/sign_in" for 72.83.38.60 at 2017-02-21 10:45:22 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by Devise::SessionsController#create as HTML - Parameters: {"utf8"=>"✓", "authenticity_token"=>"GrRtz5CM7UpykwWtQ9HTrwn8lQZJXbi9nOrAgkQjxIBCYux4FyVXjWzl7xbICnGtyUcF1U6mULiPrIpVq1fKRA==", "user"=>{"email"=>"oonyeje@pearl.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} - User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'oonyeje@pearl.com' ORDER BY `users`.`id` ASC LIMIT 1 -  (0.1ms) BEGIN - SQL (0.2ms) UPDATE `users` SET `current_sign_in_at` = '2017-02-21 15:45:22', `sign_in_count` = 2, `updated_at` = '2017-02-21 15:45:22' WHERE `users`.`id` = 1 -  (77.9ms) COMMIT -Redirected to http://128.8.221.44:3000/ -Completed 302 Found in 230ms (ActiveRecord: 78.6ms) - - -Started GET "/" for 72.83.38.60 at 2017-02-21 10:45:22 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application -  (0.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (11.1ms) -Completed 200 OK in 49ms (Views: 45.8ms | ActiveRecord: 0.8ms) - - -Started GET "/companies" for 72.83.38.60 at 2017-02-21 10:45:31 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by CompaniesController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/index.html.erb within layouts/application -  (0.3ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` - Company Load (0.2ms) SELECT `companies`.* FROM `companies` - Rendered companies/index.html.erb within layouts/application (8.3ms) -Completed 200 OK in 48ms (Views: 44.1ms | ActiveRecord: 1.0ms) - - -Started GET "/companies/new" for 72.83.38.60 at 2017-02-21 10:45:33 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by CompaniesController#new as HTML - Parameters: {"authenticity_token"=>"LDxKLgKDH14hmky20ss//COnCe83udXWBARmeoidOmIzfCwsE0I5IocP+nYeWImyje7GcC0EcEU4/RvaIvuXzA=="} - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/new.html.erb within layouts/application - Rendered companies/new.html.erb within layouts/application (5.3ms) -Completed 200 OK in 46ms (Views: 42.5ms | ActiveRecord: 0.3ms) - - -Started GET "/companies/new" for 72.83.38.60 at 2017-02-21 10:45:34 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by CompaniesController#new as HTML - Parameters: {"authenticity_token"=>"LDxKLgKDH14hmky20ss//COnCe83udXWBARmeoidOmIzfCwsE0I5IocP+nYeWImyje7GcC0EcEU4/RvaIvuXzA=="} - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/new.html.erb within layouts/application - Rendered companies/new.html.erb within layouts/application (5.2ms) -Completed 200 OK in 42ms (Views: 38.8ms | ActiveRecord: 0.3ms) - - -Started POST "/companies" for 72.83.38.60 at 2017-02-21 10:45:41 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by CompaniesController#create as HTML - Parameters: {"utf8"=>"✓", "authenticity_token"=>"avU3pCToYMDe2yCezvISJ8gh3yefEd91YJq73xKRooN1tVGmNSlGvHhOll4CYaRpZmgQuIWseuZcY8Z/uPcPLQ==", "company"=>{"company_name"=>"Hooper's Island"}, "commit"=>"Create"} - User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 ORDER BY `users`.`id` ASC LIMIT 1 -  (0.0ms) BEGIN - SQL (0.2ms) INSERT INTO `companies` (`company_name`, `company_token`, `created_at`, `updated_at`) VALUES ('Hooper\'s Island', 'c5a555de-a0ea-48b9-9b6d-8a37f27863b1', '2017-02-21 15:45:41', '2017-02-21 15:45:41') -  (0.2ms) CREATE DATABASE `development_HoopersIsland` DEFAULT CHARACTER SET `utf8` -  (0.1ms) SELECT DATABASE() as db -  (456.4ms) CREATE TABLE `companies` (`id` int AUTO_INCREMENT PRIMARY KEY, `company_name` varchar(255), `company_token` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8 -  (459.1ms) CREATE TABLE `grades` (`id` int AUTO_INCREMENT PRIMARY KEY, `Full_name` varchar(100) NOT NULL, `Short_name` varchar(10) NOT NULL, `Volume_max` float(53), `Volume_min` float(53), `Length_max` float(53), `Length_min` float(53), `Width_max` float(53), `Width_min` float(53), `Height_max` float(53), `Height_min` float(53), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `index_grades_on_Short_name` USING btree (`Short_name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 -  (417.7ms) CREATE TABLE `machines` (`id` int AUTO_INCREMENT PRIMARY KEY, `key` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8 -  (584.4ms) CREATE TABLE `oysters` (`id` int AUTO_INCREMENT PRIMARY KEY, `run_id` int NOT NULL, `grade` varchar(50) NOT NULL, `volume` float(53), `length` float(53), `width` float(53), `height` float(53), `machine_id` int, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_oysters_on_machine_id` USING btree (`machine_id`), INDEX `index_oysters_on_run_id` USING btree (`run_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 -  (577.4ms) CREATE TABLE `results` (`id` int AUTO_INCREMENT PRIMARY KEY, `total` int NOT NULL, `grade1` int, `grade2` int, `grade3` int, `grade4` int, `grade5` int, `grade6` int, `grade7` int, `grade8` int, `grade9` int, `grade10` int, `machine_id` int, `run_id` int, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_results_on_machine_id` USING btree (`machine_id`), INDEX `index_results_on_run_id` USING btree (`run_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 -  (592.9ms) CREATE TABLE `runs` (`id` int AUTO_INCREMENT PRIMARY KEY, `runDate` datetime NOT NULL, `location` varchar(50), `harvest_time` varchar(50), `supplier` varchar(50), `distributor` varchar(50), `other` varchar(50), `machine_id` int, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_runs_on_machine_id` USING btree (`machine_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 -  (558.8ms) CREATE TABLE `users` (`id` int AUTO_INCREMENT PRIMARY KEY, `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `company_id` int DEFAULT -1 NOT NULL, `admin` tinyint(1) DEFAULT 0 NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `sign_in_count` int DEFAULT 0 NOT NULL, `current_sign_in_at` datetime, `last_sign_in_at` datetime, `current_sign_in_ip` varchar(255), `last_sign_in_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `index_users_on_email` USING btree (`email`), UNIQUE INDEX `index_users_on_reset_password_token` USING btree (`reset_password_token`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 -  (434.5ms) CREATE TABLE `schema_migrations` (`version` varchar(255) PRIMARY KEY) ENGINE=InnoDB -  (0.3ms) SELECT version FROM `schema_migrations` -  (57.9ms) INSERT INTO `schema_migrations` (version) VALUES ('20170210202948') -  (58.4ms) INSERT INTO schema_migrations (version) VALUES -('20170210200740'), -('20170210200122'), -('20170210193338'), -('20170109174008'), -('20170104173311'), -('20170119161737'), -('20170210201958'); - - -  (544.2ms) CREATE TABLE `ar_internal_metadata` (`key` varchar(255) PRIMARY KEY, `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB - ActiveRecord::InternalMetadata Load (0.3ms) SELECT `ar_internal_metadata`.* FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' LIMIT 1 -  (0.0ms) BEGIN - SQL (0.1ms) INSERT INTO `ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('environment', 'development', '2017-02-21 15:45:46', '2017-02-21 15:45:46') -  (64.3ms) COMMIT -  (65.4ms) COMMIT -Redirected to http://128.8.221.44:3000/companies -Completed 302 Found in 4893ms - - -Started GET "/companies" for 72.83.38.60 at 2017-02-21 10:45:46 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by CompaniesController#index as HTML - User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/index.html.erb within layouts/application -  (0.2ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` - Company Load (0.1ms) SELECT `companies`.* FROM `companies` - Rendered companies/index.html.erb within layouts/application (7.3ms) -Completed 200 OK in 46ms (Views: 42.7ms | ActiveRecord: 0.7ms) - - -Started DELETE "/users/sign_out" for 72.83.38.60 at 2017-02-21 10:46:26 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by Devise::SessionsController#destroy as HTML - Parameters: {"authenticity_token"=>"3DIcKd58QQJnFh8FQJWOYO9Lq46dA1M2hObbhMa/RG7Dcnorz71nfsGDqcWMBjguQQJkEYe+9qW4H6YkbNnpwA=="} - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 ORDER BY `users`.`id` ASC LIMIT 1 -  (0.1ms) BEGIN -  (0.1ms) COMMIT -Redirected to http://128.8.221.44:3000/ -Completed 302 Found in 5ms (ActiveRecord: 0.4ms) - - -Started DELETE "/users/sign_out" for 72.83.38.60 at 2017-02-21 10:46:26 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by Devise::SessionsController#destroy as HTML - Parameters: {"authenticity_token"=>"3DIcKd58QQJnFh8FQJWOYO9Lq46dA1M2hObbhMa/RG7Dcnorz71nfsGDqcWMBjguQQJkEYe+9qW4H6YkbNnpwA=="} -Redirected to http://128.8.221.44:3000/ -Filter chain halted as :verify_signed_out_user rendered or redirected -Completed 302 Found in 1ms (ActiveRecord: 0.0ms) - - -Started GET "/" for 72.83.38.60 at 2017-02-21 10:46:26 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML -Redirected to http://128.8.221.44:3000/signin -Filter chain halted as :deny_to_visitors rendered or redirected -Completed 302 Found in 1ms (ActiveRecord: 0.0ms) - - -Started GET "/signin" for 72.83.38.60 at 2017-02-21 10:46:26 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#new as HTML - Rendering registrations/new.html.erb within layouts/application - Rendered shared/_links.html.erb (0.9ms) - Rendered partials/_login_form.html.erb (1.2ms) - Rendered registrations/new.html.erb within layouts/application (8.0ms) -Completed 200 OK in 51ms (Views: 48.7ms) - - -Started POST "/users" for 72.83.38.60 at 2017-02-21 10:46:59 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#create as HTML - Parameters: {"utf8"=>"✓", "authenticity_token"=>"SwAlombLOhciNStp2xcdc3jtZD6ANvMOhUOgT4qAjLbdcJL3ep+LOdPLo1LOdVFXV+jLQ8Q7XZliXM859B4GQA==", "company_serial"=>"c5a555de-a0ea-48b9-9b6d-8a37f27863b1", "user"=>{"email"=>"employ2@pearl.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} -Unpermitted parameters: email, password, password_confirmation - Company Load (0.2ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`company_token` = 'c5a555de-a0ea-48b9-9b6d-8a37f27863b1' LIMIT 1 -  (0.1ms) BEGIN - User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'employ2@pearl.com' LIMIT 1 - SQL (0.2ms) INSERT INTO `users` (`email`, `encrypted_password`, `company_id`, `created_at`, `updated_at`) VALUES ('employ2@pearl.com', '$2a$11$CfrhBDeEsvMqpuMiG5c9pOUmCDpdEcNUTIX2R1IvtJCQVpoOjHZoG', 3, '2017-02-21 15:46:59', '2017-02-21 15:46:59') -  (50.7ms) COMMIT -  (0.1ms) BEGIN - SQL (0.4ms) UPDATE `users` SET `sign_in_count` = 1, `current_sign_in_at` = '2017-02-21 15:46:59', `last_sign_in_at` = '2017-02-21 15:46:59', `current_sign_in_ip` = '72.83.38.60', `last_sign_in_ip` = '72.83.38.60' WHERE `users`.`id` = 3 -  (63.8ms) COMMIT - Company Load (0.2ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 3 LIMIT 1 -DEPRECATION WARNING: [Deprecation Warning] `switch` now requires a block reset to the default tenant after the block. Please use `switch!` instead if you don't want this (called from create at /home/bmv/Pearlception_Website_RoR/Pearlception/app/controllers/registrations_controller.rb:29) -Redirected to http://128.8.221.44:3000/ -Completed 302 Found in 273ms (ActiveRecord: 115.7ms) - - -Started GET "/" for 72.83.38.60 at 2017-02-21 10:47:00 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application - Company Load (0.2ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 3 LIMIT 1 -  (0.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (12.0ms) -Completed 200 OK in 49ms (Views: 45.4ms | ActiveRecord: 1.0ms) - - -Started DELETE "/users/sign_out" for 72.83.38.60 at 2017-02-21 16:17:20 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by Devise::SessionsController#destroy as HTML - Parameters: {"authenticity_token"=>"Keb7YH0NwvqRiqExgUyWte+6hzJZHlcq9m7n92JZ2qa/lkw1YVlz1GB0KQqULtqRwL8oTx0T+b0RcYiBHMdQUA=="} - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 ORDER BY `users`.`id` ASC LIMIT 1 -  (0.1ms) BEGIN -  (0.1ms) COMMIT -Redirected to http://128.8.221.44:3000/ -Completed 302 Found in 5ms (ActiveRecord: 0.4ms) - - -Started DELETE "/users/sign_out" for 72.83.38.60 at 2017-02-21 16:17:22 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by Devise::SessionsController#destroy as HTML - Parameters: {"authenticity_token"=>"Keb7YH0NwvqRiqExgUyWte+6hzJZHlcq9m7n92JZ2qa/lkw1YVlz1GB0KQqULtqRwL8oTx0T+b0RcYiBHMdQUA=="} - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 ORDER BY `users`.`id` ASC LIMIT 1 -  (0.1ms) BEGIN -  (0.1ms) COMMIT -Redirected to http://128.8.221.44:3000/ -Completed 302 Found in 5ms (ActiveRecord: 0.4ms) - - -Started GET "/" for 72.83.38.60 at 2017-02-21 16:17:23 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML -Redirected to http://128.8.221.44:3000/signin -Filter chain halted as :deny_to_visitors rendered or redirected -Completed 302 Found in 1ms (ActiveRecord: 0.0ms) - - -Started GET "/signin" for 72.83.38.60 at 2017-02-21 16:17:23 -0500 -Cannot render console from 72.83.38.60! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#new as HTML - Rendering registrations/new.html.erb within layouts/application - Rendered shared/_links.html.erb (0.8ms) - Rendered partials/_login_form.html.erb (1.0ms) - Rendered registrations/new.html.erb within layouts/application (8.2ms) -Completed 200 OK in 47ms (Views: 44.8ms) - - -Started GET "/" for 192.168.1.1 at 2017-02-22 13:06:22 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML -Redirected to http://128.8.221.44:3000/signin -Filter chain halted as :deny_to_visitors rendered or redirected -Completed 302 Found in 1ms (ActiveRecord: 0.0ms) - - -Started GET "/signin" for 192.168.1.1 at 2017-02-22 13:06:22 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#new as HTML - Rendering registrations/new.html.erb within layouts/application - Rendered shared/_links.html.erb (1.0ms) - Rendered partials/_login_form.html.erb (1.0ms) - Rendered registrations/new.html.erb within layouts/application (9.2ms) -Completed 200 OK in 69ms (Views: 67.0ms) - - -Started POST "/users" for 192.168.1.1 at 2017-02-22 13:07:00 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#create as HTML - Parameters: {"utf8"=>"✓", "authenticity_token"=>"QP9oIPuJY2Wo5bpJzI8ldD2QTF5hUTdsTGFjuTiuBh84JqXvBIjW+mZXqS9sj5HW9mlyHWlNV0ItRNovhsiDTQ==", "company_serial"=>"a41b23cf-1d61-4fb4-9b69-0167abd7c583", "user"=>{"email"=>"colemalban@gmail.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} -Unpermitted parameters: email, password, password_confirmation - Company Load (28.1ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`company_token` = 'a41b23cf-1d61-4fb4-9b69-0167abd7c583' LIMIT 1 -  (0.1ms) BEGIN - User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'colemalban@gmail.com' LIMIT 1 - SQL (0.4ms) INSERT INTO `users` (`email`, `encrypted_password`, `company_id`, `admin`, `created_at`, `updated_at`) VALUES ('colemalban@gmail.com', '$2a$11$KjC0ifcF1FCRXEcvRY4Tme/yWhRrP8rKS5HF9hVq3jPFrpi59L5PC', 1, 1, '2017-02-22 18:07:00', '2017-02-22 18:07:00') -  (56.1ms) COMMIT -  (0.1ms) BEGIN - SQL (0.2ms) UPDATE `users` SET `sign_in_count` = 1, `current_sign_in_at` = '2017-02-22 18:07:01', `last_sign_in_at` = '2017-02-22 18:07:01', `current_sign_in_ip` = '192.168.1.1', `last_sign_in_ip` = '192.168.1.1', `updated_at` = '2017-02-22 18:07:01' WHERE `users`.`id` = 4 -  (97.8ms) COMMIT -Redirected to http://128.8.221.44:3000/ -Completed 302 Found in 331ms (ActiveRecord: 182.9ms) - - -Started GET "/" for 192.168.1.1 at 2017-02-22 13:07:01 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application -  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (8.8ms) -Completed 200 OK in 43ms (Views: 39.7ms | ActiveRecord: 0.7ms) - - -Started GET "/companies" for 192.168.1.1 at 2017-02-22 13:07:08 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by CompaniesController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/index.html.erb within layouts/application -  (0.3ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` - Company Load (0.1ms) SELECT `companies`.* FROM `companies` - Rendered companies/index.html.erb within layouts/application (8.1ms) -Completed 200 OK in 43ms (Views: 39.0ms | ActiveRecord: 0.8ms) - - -Started GET "/" for 192.168.1.1 at 2017-02-22 13:07:10 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application -  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (9.1ms) -Completed 200 OK in 44ms (Views: 39.6ms | ActiveRecord: 0.7ms) - - -Started GET "/companies" for 192.168.1.1 at 2017-02-22 13:08:11 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by CompaniesController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/index.html.erb within layouts/application -  (0.2ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` - Company Load (0.1ms) SELECT `companies`.* FROM `companies` - Rendered companies/index.html.erb within layouts/application (7.4ms) -Completed 200 OK in 56ms (Views: 51.9ms | ActiveRecord: 0.8ms) - - -Started GET "/companies/new" for 192.168.1.1 at 2017-02-22 13:08:14 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by CompaniesController#new as HTML - Parameters: {"authenticity_token"=>"Ok2JkKcUVYl54izV2NGi0Ob0Ai6HM2Rn4MVhw/rHKq5ClERfWBXgFrdQP7N40RZyLQ08bY8vBEmB4NhVRKGv/A=="} - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/new.html.erb within layouts/application - Rendered companies/new.html.erb within layouts/application (6.8ms) -Completed 200 OK in 50ms (Views: 46.5ms | ActiveRecord: 0.3ms) - - -Started GET "/companies" for 192.168.1.1 at 2017-02-22 13:08:17 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by CompaniesController#index as HTML - Parameters: {"authenticity_token"=>"d3UJUR0Q5QogX/IpOLRdml219lSjTHu8/dFvIaDarTQPrMSe4hFQle7t4U+YtOk4lkzIF6tQG5Kc9Na3HrwoZg=="} - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/index.html.erb within layouts/application -  (0.2ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` - Company Load (0.1ms) SELECT `companies`.* FROM `companies` - Rendered companies/index.html.erb within layouts/application (7.6ms) -Completed 200 OK in 53ms (Views: 49.1ms | ActiveRecord: 0.8ms) - - -Started GET "/" for 192.168.1.1 at 2017-02-22 13:08:54 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application -  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (10.2ms) -Completed 200 OK in 49ms (Views: 44.7ms | ActiveRecord: 0.7ms) - - -Started GET "/" for 192.168.1.1 at 2017-02-22 13:15:09 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -DEPRECATION WARNING: before_filter is deprecated and will be removed in Rails 5.1. Use before_action instead. (called from at /home/bmv/Pearlception_Website_RoR/Pearlception/app/controllers/dashboard_controller.rb:2) -Processing by DashboardController#index as HTML - User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application -  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (13.5ms) -Completed 200 OK in 65ms (Views: 44.7ms | ActiveRecord: 2.0ms) - - -Started GET "/companies" for 192.168.1.1 at 2017-02-22 13:32:34 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -DEPRECATION WARNING: before_filter is deprecated and will be removed in Rails 5.1. Use before_action instead. (called from at /home/bmv/Pearlception_Website_RoR/Pearlception/app/controllers/companies_controller.rb:3) -Processing by CompaniesController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/index.html.erb within layouts/application -  (0.1ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` - Company Load (0.1ms) SELECT `companies`.* FROM `companies` - Rendered companies/index.html.erb within layouts/application (12.8ms) -Completed 200 OK in 49ms (Views: 43.7ms | ActiveRecord: 1.6ms) - - -Started GET "/companies/new" for 192.168.1.1 at 2017-02-22 13:32:40 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by CompaniesController#new as HTML - Parameters: {"authenticity_token"=>"NLEdtSVfOvIGqzpGCeAS7S/Tn3lyXnsLDCMwpwoHzHdMaNB62l6PbcgZKSCp4KZP5CqhOnpCGyVtBokxtGFJJQ=="} - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/new.html.erb within layouts/application - Rendered companies/new.html.erb within layouts/application (6.4ms) -Completed 200 OK in 42ms (Views: 38.8ms | ActiveRecord: 0.3ms) - - -Started POST "/companies" for 192.168.1.1 at 2017-02-22 13:32:55 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by CompaniesController#create as HTML - Parameters: {"utf8"=>"✓", "authenticity_token"=>"mw1kVe+7EpM3WlhJNkl4VtTHhU0VfxajwSN1xAFNBmvj1KmaELqnDPnoSy+WScz0Hz67Dh1jdo2gBsxSvyuDOQ==", "company"=>{"company_name"=>"Cole's Oysters"}, "commit"=>"Create"} - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 -  (0.1ms) BEGIN - SQL (0.5ms) INSERT INTO `companies` (`company_name`, `company_token`, `created_at`, `updated_at`) VALUES ('Cole\'s Oysters', 'eb0c2706-91d7-4d8e-8ac0-d374f24f98f9', '2017-02-22 18:32:55', '2017-02-22 18:32:55') -  (0.4ms) CREATE DATABASE `development_ColesOysters` DEFAULT CHARACTER SET `utf8` -  (0.1ms) SELECT DATABASE() as db -  (449.0ms) CREATE TABLE `companies` (`id` int AUTO_INCREMENT PRIMARY KEY, `company_name` varchar(255), `company_token` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8 -  (425.5ms) CREATE TABLE `grades` (`id` int AUTO_INCREMENT PRIMARY KEY, `Full_name` varchar(100) NOT NULL, `Short_name` varchar(10) NOT NULL, `Volume_max` float(53), `Volume_min` float(53), `Length_max` float(53), `Length_min` float(53), `Width_max` float(53), `Width_min` float(53), `Height_max` float(53), `Height_min` float(53), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `index_grades_on_Short_name` USING btree (`Short_name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 -  (392.7ms) CREATE TABLE `machines` (`id` int AUTO_INCREMENT PRIMARY KEY, `key` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8 -  (592.8ms) CREATE TABLE `oysters` (`id` int AUTO_INCREMENT PRIMARY KEY, `run_id` int NOT NULL, `grade` varchar(50) NOT NULL, `volume` float(53), `length` float(53), `width` float(53), `height` float(53), `machine_id` int, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_oysters_on_machine_id` USING btree (`machine_id`), INDEX `index_oysters_on_run_id` USING btree (`run_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 -  (552.3ms) CREATE TABLE `results` (`id` int AUTO_INCREMENT PRIMARY KEY, `total` int NOT NULL, `grade1` int, `grade2` int, `grade3` int, `grade4` int, `grade5` int, `grade6` int, `grade7` int, `grade8` int, `grade9` int, `grade10` int, `machine_id` int, `run_id` int, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_results_on_machine_id` USING btree (`machine_id`), INDEX `index_results_on_run_id` USING btree (`run_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 -  (467.6ms) CREATE TABLE `runs` (`id` int AUTO_INCREMENT PRIMARY KEY, `runDate` datetime NOT NULL, `location` varchar(50), `harvest_time` varchar(50), `supplier` varchar(50), `distributor` varchar(50), `other` varchar(50), `machine_id` int, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_runs_on_machine_id` USING btree (`machine_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 -  (550.7ms) CREATE TABLE `users` (`id` int AUTO_INCREMENT PRIMARY KEY, `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `company_id` int DEFAULT -1 NOT NULL, `admin` tinyint(1) DEFAULT 0 NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `sign_in_count` int DEFAULT 0 NOT NULL, `current_sign_in_at` datetime, `last_sign_in_at` datetime, `current_sign_in_ip` varchar(255), `last_sign_in_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `index_users_on_email` USING btree (`email`), UNIQUE INDEX `index_users_on_reset_password_token` USING btree (`reset_password_token`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 -  (434.3ms) CREATE TABLE `schema_migrations` (`version` varchar(255) PRIMARY KEY) ENGINE=InnoDB -  (0.3ms) SELECT version FROM `schema_migrations` -  (66.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20170210202948') -  (59.9ms) INSERT INTO schema_migrations (version) VALUES -('20170210200740'), -('20170210200122'), -('20170210193338'), -('20170109174008'), -('20170104173311'), -('20170119161737'), -('20170210201958'); - - -  (459.3ms) CREATE TABLE `ar_internal_metadata` (`key` varchar(255) PRIMARY KEY, `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB - ActiveRecord::InternalMetadata Load (0.3ms) SELECT `ar_internal_metadata`.* FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' LIMIT 1 -  (0.1ms) BEGIN - SQL (0.1ms) INSERT INTO `ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('environment', 'development', '2017-02-22 18:32:59', '2017-02-22 18:32:59') -  (56.1ms) COMMIT -  (48.8ms) COMMIT -Redirected to http://128.8.221.44:3000/companies -Completed 302 Found in 4579ms - - -Started GET "/companies" for 192.168.1.1 at 2017-02-22 13:32:59 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by CompaniesController#index as HTML - User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/index.html.erb within layouts/application -  (0.2ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` - Company Load (0.1ms) SELECT `companies`.* FROM `companies` - Rendered companies/index.html.erb within layouts/application (8.1ms) -Completed 200 OK in 43ms (Views: 40.1ms | ActiveRecord: 0.7ms) - - -Started GET "/" for 192.168.1.1 at 2017-02-22 13:33:25 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application -  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (9.0ms) -Completed 200 OK in 43ms (Views: 39.9ms | ActiveRecord: 0.7ms) - - -Started GET "/companies" for 192.168.1.1 at 2017-02-22 13:33:26 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by CompaniesController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/index.html.erb within layouts/application -  (0.2ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` - Company Load (0.1ms) SELECT `companies`.* FROM `companies` - Rendered companies/index.html.erb within layouts/application (18.5ms) -Completed 200 OK in 59ms (Views: 55.9ms | ActiveRecord: 0.7ms) - - -Started GET "/companies" for 192.168.1.1 at 2017-02-22 13:33:30 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by CompaniesController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/index.html.erb within layouts/application -  (0.2ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` - Company Load (0.2ms) SELECT `companies`.* FROM `companies` - Rendered companies/index.html.erb within layouts/application (7.9ms) -Completed 200 OK in 50ms (Views: 45.9ms | ActiveRecord: 0.8ms) - - -Started GET "/" for 192.168.1.1 at 2017-02-22 13:33:31 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application -  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (9.4ms) -Completed 200 OK in 49ms (Views: 44.7ms | ActiveRecord: 0.7ms) - - -Started GET "/" for 192.168.1.1 at 2017-02-22 13:33:33 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application -  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (10.2ms) -Completed 200 OK in 50ms (Views: 46.5ms | ActiveRecord: 0.7ms) - - -Started GET "/" for 192.168.1.1 at 2017-02-22 14:08:47 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -DEPRECATION WARNING: before_filter is deprecated and will be removed in Rails 5.1. Use before_action instead. (called from at /home/bmv/Pearlception_Website_RoR/Pearlception/app/controllers/dashboard_controller.rb:2) -Processing by DashboardController#index as HTML -Redirected to http://128.8.221.44:3000/signin -Filter chain halted as :deny_to_visitors rendered or redirected -Completed 302 Found in 1ms (ActiveRecord: 0.0ms) - - -Started GET "/signin" for 192.168.1.1 at 2017-02-22 14:08:47 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#new as HTML - Rendering registrations/new.html.erb within layouts/application - Rendered shared/_links.html.erb (1.1ms) - Rendered partials/_login_form.html.erb (1.1ms) - Rendered registrations/new.html.erb within layouts/application (22.6ms) -Completed 200 OK in 62ms (Views: 60.6ms) - - -Started POST "/users/sign_in" for 192.168.1.1 at 2017-02-22 14:08:55 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by Devise::SessionsController#create as HTML - Parameters: {"utf8"=>"✓", "authenticity_token"=>"bEvWMmpTp5RVeo5+wqIjdiUuB9X+YmHthsdffGvPCfv9SfNSVURNaXMPDvZteFRVrpJK8YJs3dXSiORIzPlYgA==", "user"=>{"email"=>"colemalban@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'colemalban@gmail.com' ORDER BY `users`.`id` ASC LIMIT 1 -  (0.1ms) BEGIN - SQL (0.2ms) UPDATE `users` SET `current_sign_in_at` = '2017-02-22 19:08:55', `sign_in_count` = 2, `updated_at` = '2017-02-22 19:08:55' WHERE `users`.`id` = 4 -  (70.2ms) COMMIT -Redirected to http://128.8.221.44:3000/ -Completed 302 Found in 219ms (ActiveRecord: 70.7ms) - - -Started GET "/" for 192.168.1.1 at 2017-02-22 14:08:56 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application -  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (12.6ms) -Completed 200 OK in 48ms (Views: 42.8ms | ActiveRecord: 1.2ms) - - -Started GET "/companies" for 192.168.1.1 at 2017-02-22 14:08:58 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -DEPRECATION WARNING: before_filter is deprecated and will be removed in Rails 5.1. Use before_action instead. (called from at /home/bmv/Pearlception_Website_RoR/Pearlception/app/controllers/companies_controller.rb:3) -Processing by CompaniesController#index as HTML - User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/index.html.erb within layouts/application -  (0.1ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` - Company Load (0.1ms) SELECT `companies`.* FROM `companies` - Rendered companies/index.html.erb within layouts/application (12.2ms) -Completed 200 OK in 48ms (Views: 43.7ms | ActiveRecord: 1.4ms) - - -Started GET "/companies" for 192.168.1.1 at 2017-02-22 14:08:59 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by CompaniesController#index as HTML - User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/index.html.erb within layouts/application -  (0.2ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` - Company Load (0.1ms) SELECT `companies`.* FROM `companies` - Rendered companies/index.html.erb within layouts/application (7.5ms) -Completed 200 OK in 43ms (Views: 40.3ms | ActiveRecord: 0.7ms) - - -Started GET "/" for 192.168.1.1 at 2017-02-22 14:09:01 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application -  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (9.0ms) -Completed 200 OK in 44ms (Views: 41.1ms | ActiveRecord: 0.6ms) - - -Started GET "/" for 192.168.1.1 at 2017-02-22 16:16:43 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.9ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application -  (0.8ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (12.0ms) -Completed 200 OK in 51ms (Views: 45.7ms | ActiveRecord: 1.8ms) - - -Started GET "/" for 192.168.1.1 at 2017-02-22 16:16:44 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application -  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (9.2ms) -Completed 200 OK in 50ms (Views: 46.0ms | ActiveRecord: 0.7ms) - - -Started GET "/" for 192.168.1.1 at 2017-02-22 16:16:45 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application -  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (10.3ms) -Completed 200 OK in 48ms (Views: 43.7ms | ActiveRecord: 0.8ms) - - -Started GET "/" for 192.168.1.1 at 2017-02-22 16:16:46 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application -  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (9.5ms) -Completed 200 OK in 47ms (Views: 43.1ms | ActiveRecord: 0.8ms) - - -Started GET "/" for 192.168.1.1 at 2017-02-22 16:16:46 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application -  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (10.2ms) -Completed 200 OK in 47ms (Views: 42.8ms | ActiveRecord: 0.7ms) - - -Started GET "/companies" for 192.168.1.1 at 2017-02-22 16:16:49 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by CompaniesController#index as HTML - User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/index.html.erb within layouts/application -  (0.5ms) SELECT COUNT(*) FROM `companies` -  (0.2ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` - Company Load (0.1ms) SELECT `companies`.* FROM `companies` - Rendered companies/index.html.erb within layouts/application (8.8ms) -Completed 200 OK in 47ms (Views: 42.3ms | ActiveRecord: 1.3ms) - - -Started GET "/companies" for 192.168.1.1 at 2017-02-22 16:16:50 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by CompaniesController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/index.html.erb within layouts/application -  (0.2ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` - Company Load (0.1ms) SELECT `companies`.* FROM `companies` - Rendered companies/index.html.erb within layouts/application (8.5ms) -Completed 200 OK in 48ms (Views: 43.8ms | ActiveRecord: 0.8ms) - - -Started GET "/" for 192.168.1.1 at 2017-02-22 16:16:51 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application -  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (11.8ms) -Completed 200 OK in 49ms (Views: 45.1ms | ActiveRecord: 0.8ms) - - -Started GET "/" for 192.168.1.1 at 2017-02-22 16:16:52 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application -  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (8.5ms) -Completed 200 OK in 43ms (Views: 39.5ms | ActiveRecord: 0.7ms) - - -Started GET "/companies" for 192.168.1.1 at 2017-02-22 16:19:52 -0500 -Cannot render console from 192.168.1.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by CompaniesController#index as HTML - User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/index.html.erb within layouts/application -  (0.2ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` - Company Load (0.1ms) SELECT `companies`.* FROM `companies` - Rendered companies/index.html.erb within layouts/application (6.8ms) -Completed 200 OK in 43ms (Views: 38.9ms | ActiveRecord: 0.8ms) - - -Started GET "/" for 10.104.211.69 at 2017-02-22 20:33:34 -0500 -Cannot render console from 10.104.211.69! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -DEPRECATION WARNING: before_filter is deprecated and will be removed in Rails 5.1. Use before_action instead. (called from at /home/bmv/Pearlception_Website_RoR/Pearlception/app/controllers/dashboard_controller.rb:2) -Processing by DashboardController#index as HTML -Redirected to http://128.8.221.44:3000/signin -Filter chain halted as :deny_to_visitors rendered or redirected -Completed 302 Found in 1ms (ActiveRecord: 0.0ms) - - -Started GET "/signin" for 10.104.211.69 at 2017-02-22 20:33:34 -0500 -Cannot render console from 10.104.211.69! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#new as HTML - Rendering registrations/new.html.erb within layouts/application - Rendered shared/_links.html.erb (1.1ms) - Rendered partials/_login_form.html.erb (1.3ms) - Rendered registrations/new.html.erb within layouts/application (23.1ms) -Completed 200 OK in 61ms (Views: 60.0ms) - - -Started POST "/users/sign_in" for 10.104.211.69 at 2017-02-22 20:34:20 -0500 -Cannot render console from 10.104.211.69! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by Devise::SessionsController#create as HTML - Parameters: {"utf8"=>"✓", "authenticity_token"=>"K5uPoHxJO4lEn/6/BPmVHkD8pARi2e0AelWrHXfJ8zusu1DuUIo0a1EmXUCs4w/d76ImS/ZoX651greAQKJHrw==", "user"=>{"email"=>"colemalban@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} - User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'colemalban@gmail.com' ORDER BY `users`.`id` ASC LIMIT 1 -  (0.1ms) BEGIN - SQL (0.2ms) UPDATE `users` SET `current_sign_in_at` = '2017-02-23 01:34:20', `last_sign_in_at` = '2017-02-22 19:08:55', `current_sign_in_ip` = '10.104.211.69', `sign_in_count` = 3, `updated_at` = '2017-02-23 01:34:20' WHERE `users`.`id` = 4 -  (44.1ms) COMMIT -Redirected to http://128.8.221.44:3000/ -Completed 302 Found in 192ms (ActiveRecord: 44.8ms) - - -Started GET "/" for 10.104.211.69 at 2017-02-22 20:34:20 -0500 -Cannot render console from 10.104.211.69! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application -  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (13.9ms) -Completed 200 OK in 55ms (Views: 48.1ms | ActiveRecord: 1.3ms) - - -Started GET "/companies" for 10.104.211.69 at 2017-02-22 20:34:25 -0500 -Cannot render console from 10.104.211.69! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -DEPRECATION WARNING: before_filter is deprecated and will be removed in Rails 5.1. Use before_action instead. (called from at /home/bmv/Pearlception_Website_RoR/Pearlception/app/controllers/companies_controller.rb:3) -Processing by CompaniesController#index as HTML - User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/index.html.erb within layouts/application -  (0.1ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` - Company Load (0.1ms) SELECT `companies`.* FROM `companies` - Rendered companies/index.html.erb within layouts/application (13.4ms) -Completed 200 OK in 51ms (Views: 47.0ms | ActiveRecord: 1.5ms) - - -Started GET "/" for 10.104.211.69 at 2017-02-22 20:34:56 -0500 -Cannot render console from 10.104.211.69! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application -  (0.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (10.6ms) -Completed 200 OK in 50ms (Views: 46.0ms | ActiveRecord: 0.8ms) - - -Started GET "/companies" for 10.104.211.69 at 2017-02-22 20:35:27 -0500 -Cannot render console from 10.104.211.69! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by CompaniesController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/index.html.erb within layouts/application -  (0.2ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` - Company Load (0.1ms) SELECT `companies`.* FROM `companies` - Rendered companies/index.html.erb within layouts/application (8.9ms) -Completed 200 OK in 45ms (Views: 41.2ms | ActiveRecord: 0.9ms) - - -Started GET "/" for 10.104.211.69 at 2017-02-22 20:36:07 -0500 -Cannot render console from 10.104.211.69! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application -  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (8.6ms) -Completed 200 OK in 44ms (Views: 39.8ms | ActiveRecord: 0.7ms) - - -Started GET "/" for 100.15.130.91 at 2017-02-22 20:38:21 -0500 -Cannot render console from 100.15.130.91! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application -  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (8.6ms) -Completed 200 OK in 43ms (Views: 39.1ms | ActiveRecord: 0.7ms) - - -Started GET "/companies" for 100.15.130.91 at 2017-02-22 20:38:23 -0500 -Cannot render console from 100.15.130.91! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by CompaniesController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/index.html.erb within layouts/application -  (0.2ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` - Company Load (0.1ms) SELECT `companies`.* FROM `companies` - Rendered companies/index.html.erb within layouts/application (8.0ms) -Completed 200 OK in 63ms (Views: 59.1ms | ActiveRecord: 0.8ms) - - -Started GET "/" for 100.15.130.91 at 2017-02-22 20:38:40 -0500 -Cannot render console from 100.15.130.91! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application -  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (11.1ms) -Completed 200 OK in 51ms (Views: 46.6ms | ActiveRecord: 0.7ms) - - -Started GET "/companies" for 100.15.130.91 at 2017-02-22 20:38:41 -0500 -Cannot render console from 100.15.130.91! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by CompaniesController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/index.html.erb within layouts/application -  (0.2ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` - Company Load (0.1ms) SELECT `companies`.* FROM `companies` - Rendered companies/index.html.erb within layouts/application (9.1ms) -Completed 200 OK in 49ms (Views: 45.4ms | ActiveRecord: 0.8ms) - - -Started DELETE "/users/sign_out" for 100.15.130.91 at 2017-02-22 20:38:47 -0500 -Cannot render console from 100.15.130.91! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by Devise::SessionsController#destroy as HTML - Parameters: {"authenticity_token"=>"48iDMEe6GoF8jgvolhvwFQ3w+bFdoHD6gNl8SqEhm2SNYPECbK1ZumC0G2m5jT24/E/YOLZXXgtTj2kd8fun8g=="} - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 ORDER BY `users`.`id` ASC LIMIT 1 -  (0.1ms) BEGIN -  (0.1ms) COMMIT -Redirected to http://128.8.221.44:3000/ -Completed 302 Found in 5ms (ActiveRecord: 0.4ms) - - -Started GET "/" for 100.15.130.91 at 2017-02-22 20:38:47 -0500 -Cannot render console from 100.15.130.91! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML -Redirected to http://128.8.221.44:3000/signin -Filter chain halted as :deny_to_visitors rendered or redirected -Completed 302 Found in 1ms (ActiveRecord: 0.0ms) - - -Started GET "/signin" for 100.15.130.91 at 2017-02-22 20:38:47 -0500 -Cannot render console from 100.15.130.91! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#new as HTML - Rendering registrations/new.html.erb within layouts/application - Rendered shared/_links.html.erb (0.9ms) - Rendered partials/_login_form.html.erb (1.1ms) - Rendered registrations/new.html.erb within layouts/application (7.8ms) -Completed 200 OK in 47ms (Views: 43.9ms) - - -Started POST "/users" for 100.15.130.91 at 2017-02-22 20:38:58 -0500 -Cannot render console from 100.15.130.91! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#create as HTML - Parameters: {"utf8"=>"✓", "authenticity_token"=>"zSineyedPxXgofvEodkR5jvN1oHDm3p1b5NVvShCcxFzy7ik5HX/rWoMZwnWeFRAR1caL6o8IbxrR2qIo2QfPQ==", "company_serial"=>"c5a555de-a0ea-48b9-9b6d-8a37f27863b1", "user"=>{"email"=>"example@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} -Unpermitted parameters: email, password, password_confirmation - Company Load (0.2ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`company_token` = 'c5a555de-a0ea-48b9-9b6d-8a37f27863b1' LIMIT 1 -  (0.0ms) BEGIN - User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'example@example.com' LIMIT 1 - SQL (0.2ms) INSERT INTO `users` (`email`, `encrypted_password`, `company_id`, `created_at`, `updated_at`) VALUES ('example@example.com', '$2a$11$a5lwOcPWZL2Z6nEipk3ewO.xwN/5czVRxcTpRo4NhO3ixcAK2vCdK', 3, '2017-02-23 01:38:58', '2017-02-23 01:38:58') -  (43.0ms) COMMIT -  (0.1ms) BEGIN - SQL (0.3ms) UPDATE `users` SET `sign_in_count` = 1, `current_sign_in_at` = '2017-02-23 01:38:58', `last_sign_in_at` = '2017-02-23 01:38:58', `current_sign_in_ip` = '100.15.130.91', `last_sign_in_ip` = '100.15.130.91' WHERE `users`.`id` = 5 -  (47.3ms) COMMIT - Company Load (0.2ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 3 LIMIT 1 -DEPRECATION WARNING: [Deprecation Warning] `switch` now requires a block reset to the default tenant after the block. Please use `switch!` instead if you don't want this (called from create at /home/bmv/Pearlception_Website_RoR/Pearlception/app/controllers/registrations_controller.rb:29) -Redirected to http://128.8.221.44:3000/ -Completed 302 Found in 243ms (ActiveRecord: 91.7ms) - - -Started GET "/" for 100.15.130.91 at 2017-02-22 20:38:58 -0500 -Cannot render console from 100.15.130.91! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application - Company Load (0.2ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 3 LIMIT 1 -  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (12.4ms) -Completed 200 OK in 50ms (Views: 45.9ms | ActiveRecord: 0.8ms) - - -Started GET "/grades" for 100.15.130.91 at 2017-02-22 20:39:00 -0500 -Cannot render console from 100.15.130.91! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -DEPRECATION WARNING: before_filter is deprecated and will be removed in Rails 5.1. Use before_action instead. (called from at /home/bmv/Pearlception_Website_RoR/Pearlception/app/controllers/grades_controller.rb:2) -Processing by GradesController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering grades/index.html.erb within layouts/application -  (0.2ms) SELECT COUNT(*) FROM `grades` - CACHE (0.0ms) SELECT COUNT(*) FROM `grades` - Rendered grades/index.html.erb within layouts/application (41.7ms) -Completed 200 OK in 82ms (Views: 44.7ms | ActiveRecord: 32.8ms) - - -Started GET "/" for 100.15.130.91 at 2017-02-22 20:39:03 -0500 -Cannot render console from 100.15.130.91! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application - Company Load (0.2ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 3 LIMIT 1 -  (0.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (11.4ms) -Completed 200 OK in 52ms (Views: 47.1ms | ActiveRecord: 0.9ms) - - -Started GET "/grades" for 100.15.130.91 at 2017-02-22 20:41:21 -0500 -Cannot render console from 100.15.130.91! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by GradesController#index as HTML - User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering grades/index.html.erb within layouts/application -  (0.2ms) SELECT COUNT(*) FROM `grades` - CACHE (0.0ms) SELECT COUNT(*) FROM `grades` - Rendered grades/index.html.erb within layouts/application (5.9ms) -Completed 200 OK in 44ms (Views: 40.9ms | ActiveRecord: 0.4ms) - - -Started GET "/" for 100.15.130.91 at 2017-02-22 20:41:22 -0500 -Cannot render console from 100.15.130.91! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application - Company Load (0.2ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`id` = 3 LIMIT 1 -  (0.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (11.9ms) -Completed 200 OK in 54ms (Views: 50.3ms | ActiveRecord: 0.8ms) - - -2017-02-23 10:54:42 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:42 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -Started GET "/" for 45.56.76.146 at 2017-02-23 10:54:43 -0500 -Cannot render console from 45.56.76.146! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML -Redirected to http://localhost/signin -Filter chain halted as :deny_to_visitors rendered or redirected -Completed 302 Found in 1ms (ActiveRecord: 0.0ms) - - -2017-02-23 10:54:44 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:44 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-02-23 10:54:44 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:44 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-02-23 10:54:44 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:44 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-02-23 10:54:45 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:45 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-02-23 10:54:45 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:45 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-02-23 10:54:45 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:45 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -Started OPTIONS "/" for 45.56.76.146 at 2017-02-23 10:54:45 -0500 -Cannot render console from 45.56.76.146! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 - -ActionController::RoutingError (No route matches [OPTIONS] "/"): - -actionpack (5.0.1) lib/action_dispatch/middleware/debug_exceptions.rb:53:in `call' -web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app' -web-console (3.4.0) lib/web_console/middleware.rb:20:in `block in call' -web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch' -web-console (3.4.0) lib/web_console/middleware.rb:18:in `call' -actionpack (5.0.1) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' -railties (5.0.1) lib/rails/rack/logger.rb:36:in `call_app' -railties (5.0.1) lib/rails/rack/logger.rb:24:in `block in call' -activesupport (5.0.1) lib/active_support/tagged_logging.rb:69:in `block in tagged' -activesupport (5.0.1) lib/active_support/tagged_logging.rb:26:in `tagged' -activesupport (5.0.1) lib/active_support/tagged_logging.rb:69:in `tagged' -railties (5.0.1) lib/rails/rack/logger.rb:24:in `call' -sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call' -actionpack (5.0.1) lib/action_dispatch/middleware/request_id.rb:24:in `call' -rack (2.0.1) lib/rack/method_override.rb:22:in `call' -rack (2.0.1) lib/rack/runtime.rb:22:in `call' -activesupport (5.0.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' -actionpack (5.0.1) lib/action_dispatch/middleware/executor.rb:12:in `call' -actionpack (5.0.1) lib/action_dispatch/middleware/static.rb:136:in `call' -rack (2.0.1) lib/rack/sendfile.rb:111:in `call' -railties (5.0.1) lib/rails/engine.rb:522:in `call' -puma (3.6.2) lib/puma/configuration.rb:225:in `call' -puma (3.6.2) lib/puma/server.rb:578:in `handle_request' -puma (3.6.2) lib/puma/server.rb:415:in `process_client' -puma (3.6.2) lib/puma/server.rb:275:in `block in run' -puma (3.6.2) lib/puma/thread_pool.rb:116:in `block in spawn_thread' - Rendering /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout - Rendering /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms) - Rendered collection of /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb [44 times] (39.7ms) - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.2ms) - Rendering /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (65.6ms) -2017-02-23 10:54:45 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:45 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2", "REQUEST_METHOD"=>"OPTIONS", "REQUEST_PATH"=>"/", "REQUEST_URI"=>"/"} ---- -2017-02-23 10:54:45 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:45 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-02-23 10:54:46 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:46 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-02-23 10:54:46 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:46 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-02-23 10:54:46 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:46 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-02-23 10:54:46 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:46 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-02-23 10:54:46 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:46 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-02-23 10:54:46 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:46 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-02-23 10:54:46 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:46 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -Started GET "/nice%20ports%2C/Tri%6Eity.txt%2ebak" for 45.56.76.146 at 2017-02-23 10:54:47 -0500 -Cannot render console from 45.56.76.146! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 - -ActionController::RoutingError (No route matches [GET] "/nice%20ports%2C/Tri%6Eity.txt%2Ebak"): - -actionpack (5.0.1) lib/action_dispatch/middleware/debug_exceptions.rb:53:in `call' -web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app' -web-console (3.4.0) lib/web_console/middleware.rb:20:in `block in call' -web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch' -web-console (3.4.0) lib/web_console/middleware.rb:18:in `call' -actionpack (5.0.1) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' -railties (5.0.1) lib/rails/rack/logger.rb:36:in `call_app' -railties (5.0.1) lib/rails/rack/logger.rb:24:in `block in call' -activesupport (5.0.1) lib/active_support/tagged_logging.rb:69:in `block in tagged' -activesupport (5.0.1) lib/active_support/tagged_logging.rb:26:in `tagged' -activesupport (5.0.1) lib/active_support/tagged_logging.rb:69:in `tagged' -railties (5.0.1) lib/rails/rack/logger.rb:24:in `call' -sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call' -actionpack (5.0.1) lib/action_dispatch/middleware/request_id.rb:24:in `call' -rack (2.0.1) lib/rack/method_override.rb:22:in `call' -rack (2.0.1) lib/rack/runtime.rb:22:in `call' -activesupport (5.0.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' -actionpack (5.0.1) lib/action_dispatch/middleware/executor.rb:12:in `call' -actionpack (5.0.1) lib/action_dispatch/middleware/static.rb:136:in `call' -rack (2.0.1) lib/rack/sendfile.rb:111:in `call' -railties (5.0.1) lib/rails/engine.rb:522:in `call' -puma (3.6.2) lib/puma/configuration.rb:225:in `call' -puma (3.6.2) lib/puma/server.rb:578:in `handle_request' -puma (3.6.2) lib/puma/server.rb:415:in `process_client' -puma (3.6.2) lib/puma/server.rb:275:in `block in run' -puma (3.6.2) lib/puma/thread_pool.rb:116:in `block in spawn_thread' - Rendering /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout - Rendering /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.2ms) - Rendered collection of /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb [44 times] (12.0ms) - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.2ms) - Rendering /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) - Rendered /usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (36.6ms) -2017-02-23 10:54:48 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:48 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-02-23 10:54:48 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:48 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-02-23 10:54:48 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:48 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-02-23 10:54:49 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:49 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2", "REQUEST_METHOD"=>"OPTIONS", "REQUEST_URI"=>"sip:nm"} ---- -2017-02-23 10:54:49 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:49 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-02-23 10:54:49 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:49 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-02-23 10:54:49 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:49 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-02-23 10:54:49 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:49 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-02-23 10:54:49 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:49 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-02-23 10:54:50 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:50 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-02-23 10:54:50 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:50 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-02-23 10:54:50 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:50 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -2017-02-23 10:54:50 -0500: HTTP parse error, malformed request (): # -2017-02-23 10:54:50 -0500: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.6.2 Sleepy Sunday Serenity", "GATEWAY_INTERFACE"=>"CGI/1.2"} ---- -Started GET "/" for 10.104.75.139 at 2017-02-23 14:16:42 -0500 -Cannot render console from 10.104.75.139! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -DEPRECATION WARNING: before_filter is deprecated and will be removed in Rails 5.1. Use before_action instead. (called from at /home/bmv/Pearlception_Website_RoR/Pearlception/app/controllers/dashboard_controller.rb:2) -Processing by DashboardController#index as HTML -Redirected to http://128.8.221.44:3000/signin -Filter chain halted as :deny_to_visitors rendered or redirected -Completed 302 Found in 1ms (ActiveRecord: 0.0ms) - - -Started GET "/signin" for 10.104.75.139 at 2017-02-23 14:16:43 -0500 -Cannot render console from 10.104.75.139! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#new as HTML - Rendering registrations/new.html.erb within layouts/application - Rendered shared/_links.html.erb (1.1ms) - Rendered partials/_login_form.html.erb (1.2ms) - Rendered registrations/new.html.erb within layouts/application (22.2ms) -Completed 200 OK in 62ms (Views: 60.9ms) - - -Started POST "/users" for 10.104.75.139 at 2017-02-23 14:29:35 -0500 -Cannot render console from 10.104.75.139! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#create as HTML - Parameters: {"utf8"=>"✓", "authenticity_token"=>"WzykHtrMRT7fcU1tDhlUvgrjEhTEH140LOBdyj7sctlhz2h0QFcS469KIxK4Cr/VFu0KqQ1JXrD29L4U3AW/Uw==", "company_serial"=>"a41b23cf-1d61-4fb4-9b69-0167abd7c583", "user"=>{"email"=>"bobbyvinson@comcast.net", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} -Unpermitted parameters: email, password, password_confirmation - Company Load (0.2ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`company_token` = 'a41b23cf-1d61-4fb4-9b69-0167abd7c583' LIMIT 1 -  (0.0ms) BEGIN - User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'bobbyvinson@comcast.net' LIMIT 1 - SQL (0.5ms) INSERT INTO `users` (`email`, `encrypted_password`, `company_id`, `admin`, `created_at`, `updated_at`) VALUES ('bobbyvinson@comcast.net', '$2a$11$JaWA41eViRVaKqHEj1BLtuCsss1Nl/1tp1RAaOF8/jgc9wdvU2/RW', 1, 1, '2017-02-23 19:29:35', '2017-02-23 19:29:35') -  (108.7ms) COMMIT -  (0.1ms) BEGIN - SQL (0.2ms) UPDATE `users` SET `sign_in_count` = 1, `current_sign_in_at` = '2017-02-23 19:29:35', `last_sign_in_at` = '2017-02-23 19:29:35', `current_sign_in_ip` = '10.104.75.139', `last_sign_in_ip` = '10.104.75.139' WHERE `users`.`id` = 6 -  (97.6ms) COMMIT -Redirected to http://128.8.221.44:3000/ -Completed 302 Found in 364ms (ActiveRecord: 208.5ms) - - -Started GET "/" for 10.104.75.139 at 2017-02-23 14:29:36 -0500 -Cannot render console from 10.104.75.139! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application -  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (15.3ms) -Completed 200 OK in 56ms (Views: 50.8ms | ActiveRecord: 1.3ms) - - -Started GET "/companies" for 10.104.75.139 at 2017-02-23 14:29:44 -0500 -Cannot render console from 10.104.75.139! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -DEPRECATION WARNING: before_filter is deprecated and will be removed in Rails 5.1. Use before_action instead. (called from at /home/bmv/Pearlception_Website_RoR/Pearlception/app/controllers/companies_controller.rb:3) -Processing by CompaniesController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/index.html.erb within layouts/application -  (0.2ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` - Company Load (0.1ms) SELECT `companies`.* FROM `companies` - Rendered companies/index.html.erb within layouts/application (8.5ms) -Completed 200 OK in 50ms (Views: 46.1ms | ActiveRecord: 0.8ms) - - -Started GET "/" for 10.104.75.139 at 2017-02-23 14:29:50 -0500 -Cannot render console from 10.104.75.139! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application -  (0.5ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (10.8ms) -Completed 200 OK in 50ms (Views: 45.9ms | ActiveRecord: 0.9ms) - - -Started GET "/companies" for 10.104.75.139 at 2017-02-23 14:29:53 -0500 -Cannot render console from 10.104.75.139! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by CompaniesController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/index.html.erb within layouts/application -  (0.2ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` - Company Load (0.1ms) SELECT `companies`.* FROM `companies` - Rendered companies/index.html.erb within layouts/application (9.3ms) -Completed 200 OK in 49ms (Views: 44.7ms | ActiveRecord: 0.8ms) - - -Started GET "/" for 10.104.75.139 at 2017-02-23 14:29:55 -0500 -Cannot render console from 10.104.75.139! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application -  (0.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (9.9ms) -Completed 200 OK in 51ms (Views: 46.5ms | ActiveRecord: 0.8ms) - - -Started GET "/companies" for 10.104.75.139 at 2017-02-23 14:55:27 -0500 -Cannot render console from 10.104.75.139! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by CompaniesController#index as HTML - User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering companies/index.html.erb within layouts/application -  (0.2ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` -  (0.1ms) SELECT COUNT(*) FROM `companies` - Company Load (0.1ms) SELECT `companies`.* FROM `companies` - Rendered companies/index.html.erb within layouts/application (7.8ms) -Completed 200 OK in 48ms (Views: 44.7ms | ActiveRecord: 0.7ms) - - -Started GET "/" for 10.104.75.139 at 2017-02-23 14:55:30 -0500 -Cannot render console from 10.104.75.139! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML - User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 ORDER BY `users`.`id` ASC LIMIT 1 - Rendering dashboard/index.html.erb within layouts/application -  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `results` LIMIT 5 OFFSET 0) subquery_for_count - Result Load (0.1ms) SELECT `results`.* FROM `results` LIMIT 5 OFFSET 0 - Rendered dashboard/index.html.erb within layouts/application (8.8ms) -Completed 200 OK in 44ms (Views: 40.6ms | ActiveRecord: 0.6ms) - - -Started GET "/" for 94.102.49.190 at 2017-02-24 06:03:39 -0500 -Cannot render console from 94.102.49.190! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by DashboardController#index as HTML -Redirected to http://128.8.221.44:3000/signin -Filter chain halted as :deny_to_visitors rendered or redirected -Completed 302 Found in 1ms (ActiveRecord: 0.0ms) - - -Started GET "/signin" for 94.102.49.190 at 2017-02-24 06:03:39 -0500 -Cannot render console from 94.102.49.190! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 -Processing by RegistrationsController#new as HTML - Rendering registrations/new.html.erb within layouts/application - Rendered shared/_links.html.erb (0.9ms) - Rendered partials/_login_form.html.erb (1.2ms) - Rendered registrations/new.html.erb within layouts/application (9.0ms) -Completed 200 OK in 55ms (Views: 52.4ms) - - diff --git a/Pearlception/test/controllers/statistics_controller_test.rb b/Pearlception/test/controllers/statistics_controller_test.rb new file mode 100644 index 0000000..e2e12b8 --- /dev/null +++ b/Pearlception/test/controllers/statistics_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class StatisticsControllerTest < ActionDispatch::IntegrationTest + # test "the truth" do + # assert true + # end +end diff --git a/setup.rb b/setup.rb index b3b74d2..2f86e72 100644 --- a/setup.rb +++ b/setup.rb @@ -46,6 +46,7 @@ def initial_migration FileUtils.rm(apartment_path) #Remove the original file FileUtils.cp(apartment_copy_path,apartment_path) #Copy the blank copy into init Dir.chdir('Pearlception') do + puts `rake db:setup` puts `rake db:migrate` #Run the migration end FileUtils.rm(apartment_path) #Remove the blank copy @@ -86,9 +87,17 @@ def migrate_grades end end +#This will remvoe hoopers island DB +def drop_hoopers + client = Mysql2::Client.new(host:'localhost' ,username:"bmv", password:"1156244terps!", database: "Pearlception_development") + client.query("DROP DATABASE development_HoopersIsland;") +end + + ########## MAIN METHOD ##################### #bundle #bundle install #initial_migration #Setup db -setup_initial_admin #Insert the initial admin +initial_migration if ARGV.include? "init" +#setup_initial_admin #Insert the initial admin migrate_runs #migrate_grades #Migrate all the runs over From 3efa49e6f3fd3b832b497c6ef9c2584216e5256e Mon Sep 17 00:00:00 2001 From: cole m alban Date: Fri, 3 Mar 2017 11:26:00 -0500 Subject: [PATCH 09/16] Basic stats --- Pearlception/Gemfile | 1 + Pearlception/Gemfile.lock | 3 ++ .../app/assets/javascripts/application.js | 1 + .../app/assets/javascripts/statistics.coffee | 3 -- .../app/assets/javascripts/statistics.js | 37 +++++++++++++++++++ .../app/assets/stylesheets/statistics.scss | 4 ++ .../app/views/statistics/index.html.erb | 12 ++++++ Pearlception/config/initializers/assets.rb | 2 +- 8 files changed, 59 insertions(+), 4 deletions(-) delete mode 100644 Pearlception/app/assets/javascripts/statistics.coffee create mode 100644 Pearlception/app/assets/javascripts/statistics.js diff --git a/Pearlception/Gemfile b/Pearlception/Gemfile index eef33ba..b20fc1a 100644 --- a/Pearlception/Gemfile +++ b/Pearlception/Gemfile @@ -20,6 +20,7 @@ gem 'uglifier', '>= 1.3.0' gem 'coffee-rails', '~> 4.2' # See https://github.com/rails/execjs#readme for more supported runtimes # gem 'therubyracer', platforms: :ruby +gem 'chart-js-rails' # Use jquery as the JavaScript library gem 'jquery-rails' diff --git a/Pearlception/Gemfile.lock b/Pearlception/Gemfile.lock index 25d69d9..7a43b2b 100644 --- a/Pearlception/Gemfile.lock +++ b/Pearlception/Gemfile.lock @@ -53,6 +53,8 @@ GEM bootstrap-popover-rails (0.1.0) builder (3.2.2) byebug (9.0.6) + chart-js-rails (0.1.2) + railties (> 3.1) coderay (1.1.1) coffee-rails (4.2.1) coffee-script (>= 2.2.0) @@ -213,6 +215,7 @@ DEPENDENCIES bcrypt (~> 3.1.7) bootstrap-popover-rails byebug + chart-js-rails coffee-rails (~> 4.2) devise hirb diff --git a/Pearlception/app/assets/javascripts/application.js b/Pearlception/app/assets/javascripts/application.js index fe47c91..ee26e7b 100644 --- a/Pearlception/app/assets/javascripts/application.js +++ b/Pearlception/app/assets/javascripts/application.js @@ -15,3 +15,4 @@ //= require turbolinks //= require bootstrap/bootstrap-rails-tooltip //= require bootstrap/bootstrap-rails-popover +//= require Chart diff --git a/Pearlception/app/assets/javascripts/statistics.coffee b/Pearlception/app/assets/javascripts/statistics.coffee deleted file mode 100644 index 24f83d1..0000000 --- a/Pearlception/app/assets/javascripts/statistics.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/Pearlception/app/assets/javascripts/statistics.js b/Pearlception/app/assets/javascripts/statistics.js new file mode 100644 index 0000000..988b00f --- /dev/null +++ b/Pearlception/app/assets/javascripts/statistics.js @@ -0,0 +1,37 @@ +var ctx = document.getElementById("gradesChart"); +var myChart = new Chart(ctx, { + type: 'bar', + data: { + labels: ["Grade1", "Grade2", "Grade3", "Grade4", "Grade5", "Grade6"], + datasets: [{ + label: 'Count for each grade', + data: [12, 19, 3, 5, 2, 3], + backgroundColor: [ + 'rgba(255, 99, 132, 0.2)', + 'rgba(54, 162, 235, 0.2)', + 'rgba(255, 206, 86, 0.2)', + 'rgba(75, 192, 192, 0.2)', + 'rgba(153, 102, 255, 0.2)', + 'rgba(255, 159, 64, 0.2)' + ], + borderColor: [ + 'rgba(255,99,132,1)', + 'rgba(54, 162, 235, 1)', + 'rgba(255, 206, 86, 1)', + 'rgba(75, 192, 192, 1)', + 'rgba(153, 102, 255, 1)', + 'rgba(255, 159, 64, 1)' + ], + borderWidth: 1 + }] + }, + options: { + scales: { + yAxes: [{ + ticks: { + beginAtZero:true + } + }] + } + } +}); diff --git a/Pearlception/app/assets/stylesheets/statistics.scss b/Pearlception/app/assets/stylesheets/statistics.scss index 8ccb962..b05be63 100644 --- a/Pearlception/app/assets/stylesheets/statistics.scss +++ b/Pearlception/app/assets/stylesheets/statistics.scss @@ -1,3 +1,7 @@ // Place all the styles related to the statistics controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ +#myChart{ + width:100%; + height: 100%; +} diff --git a/Pearlception/app/views/statistics/index.html.erb b/Pearlception/app/views/statistics/index.html.erb index 882d686..0940def 100644 --- a/Pearlception/app/views/statistics/index.html.erb +++ b/Pearlception/app/views/statistics/index.html.erb @@ -47,5 +47,17 @@ +
    +
    + +
    +
    + +
    +
    + +
    +
    + <%= javascript_include_tag "statistics.js" %> <%= javascript_include_tag "bootstrap.min" %>_ diff --git a/Pearlception/config/initializers/assets.rb b/Pearlception/config/initializers/assets.rb index 3417571..d81e3b7 100644 --- a/Pearlception/config/initializers/assets.rb +++ b/Pearlception/config/initializers/assets.rb @@ -2,7 +2,7 @@ # Version of your assets, change this if you want to expire all your assets. Rails.application.config.assets.version = '1.0' -Rails.application.config.assets.precompile += %w(bootstrap.css styles.css.erb bootstrap.min.js runs.js dashboard.css) +Rails.application.config.assets.precompile += %w( statistics.js bootstrap.css styles.css.erb bootstrap.min.js runs.js dashboard.css) # Add additional assets to the asset load path # Rails.application.config.assets.paths << Emoji.images_path From 5d35e732fc421ca0c5b8e2c6162b9c9bb93677d7 Mon Sep 17 00:00:00 2001 From: cole m alban Date: Fri, 3 Mar 2017 11:43:30 -0500 Subject: [PATCH 10/16] change setup scripts --- setup.rb | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/setup.rb b/setup.rb index 2f86e72..3252d54 100644 --- a/setup.rb +++ b/setup.rb @@ -98,6 +98,12 @@ end #bundle #bundle install #initial_migration #Setup db initial_migration if ARGV.include? "init" -#setup_initial_admin #Insert the initial admin -migrate_runs -#migrate_grades #Migrate all the runs over +if ARGV.include? "reset" + puts "running reset" + Dir.chdir("Pearlception") do + puts `rake db:drop` + end + initial_migration + drop_hoopers + setup_initial_admin +end From 72b547dead8b1451d6b6a52d19c715185a9a0d2b Mon Sep 17 00:00:00 2001 From: cole m alban Date: Fri, 3 Mar 2017 15:52:03 -0500 Subject: [PATCH 11/16] Add grade insertion --- setup.rb | 51 +++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 43 insertions(+), 8 deletions(-) diff --git a/setup.rb b/setup.rb index 3252d54..436c012 100644 --- a/setup.rb +++ b/setup.rb @@ -19,7 +19,6 @@ class Run end def to_insert_query - puts "#{@runDate}" "INSERT into runs (id, runDate, location, harvest_time, supplier, distributor, other, machine_id,created_at,updated_at) VALUES (#{@run_id}, '#{@runDate}',\"#{@location}\",NOW(),\"#{@supplier}\",\"#{@distributor}\", \"#{@other}\",#{@machine_id},NOW(),NOW());" @@ -28,11 +27,25 @@ class Run end #A class to represent a grade -def Grade +class Grade def initialize(params) @id = params["grade_id"] @full_name = params["Full_Name"] || "NULL" + @short_name = params["Short_Name"] || "NULL" + @volume_max = params["Volume_max"] || 0 + @volume_min = params["Volume_min"] || 0 + @length_max = params["Length_max"] || 0 + @length_min = params["Length_min"] || 0 + @width_max = params["Width_max"] || 0 + @width_min = params["Width_min"] || 0 + @height_max = params["Height_max"] || 0 + @height_min = params["Height_min"] || 0 + end + + def to_insert_query + "INSERT into grades (id, Full_Name, Short_Name, Volume_max, Volume_min, Length_max, Length_min, Width_max, Width_min, Height_max, Height_min,created_at,updated_at) VALUES + (#{@id},\"#{@full_name}\",\"#{@short_name}\",#{@volume_max},#{@volume_min},#{@length_max},#{@length_min},#{@width_max},#{@width_min},#{@height_max},#{@height_min},NOW(),NOW());" end end @@ -82,8 +95,10 @@ end #This will migrate over all the oystersd def migrate_grades client = Mysql2::Client.new(host: $company_data_endpoint, username: 'ivauser', password: 'ivapassword', database: 'Hooper\'s Island') + local_client = Mysql2::Client.new(host:'localhost' ,username:"bmv", password:"1156244terps!", database: "development_HoopersIsland") client.query("SELECT * FROM grades").each do |params| - puts params + grade = Grade.new(params) + local_client.query(grade.to_insert_query) end end @@ -94,12 +109,22 @@ def drop_hoopers end +#This will setup the Hooper's Island DB +def setup_hoopers + client = Mysql2::Client.new(host:'localhost' ,username:"bmv", password:"1156244terps!", database: "Pearlception_development") + client.query("CREATE DATABASE development_HoopersIsland;") + client.query("INSERT INTO companies (company_name, company_token, created_at, updated_at) VALUES (\"Hooper's Island\",\"c25f10d9-61ad-4d2e-85fe-21f770d9a391\",NOW(),NOW());") +end + + ########## MAIN METHOD ##################### -#bundle #bundle install -#initial_migration #Setup db -initial_migration if ARGV.include? "init" -if ARGV.include? "reset" - puts "running reset" +if ARGV.include?("init") #What you should run upon a fresh clone eg: ruby setup.rb init + bundle + initial_migration + setup_initial_admin +end + +if ARGV.include? "reset" #What to run if you want to reset ALL the data in the DBs eg: ruby setup.rb reset Dir.chdir("Pearlception") do puts `rake db:drop` end @@ -107,3 +132,13 @@ if ARGV.include? "reset" drop_hoopers setup_initial_admin end + +if ARGV.include? "hoopers" + begin + setup_hoopers + rescue + puts "Hoopers already exists" + end + migrate_runs +end +migrate_grades From 0ffa44897ae4c15c483010267618326d6c314386 Mon Sep 17 00:00:00 2001 From: cole m alban Date: Fri, 31 Mar 2017 16:09:16 -0400 Subject: [PATCH 12/16] Add date filter bar to stats page --- Pearlception/Gemfile | 2 +- Pearlception/Gemfile.lock | 3 ++ .../app/assets/javascripts/application.js | 1 + .../app/assets/javascripts/dashboard.coffee | 3 -- .../app/assets/javascripts/dashboard.js | 0 .../app/assets/javascripts/statistics.js | 6 ++++ .../app/assets/stylesheets/application.css | 1 + .../app/controllers/statistics_controller.rb | 4 +++ .../app/views/statistics/index.html.erb | 28 +++++++++++++------ 9 files changed, 36 insertions(+), 12 deletions(-) delete mode 100644 Pearlception/app/assets/javascripts/dashboard.coffee create mode 100644 Pearlception/app/assets/javascripts/dashboard.js diff --git a/Pearlception/Gemfile b/Pearlception/Gemfile index b20fc1a..ff080f5 100644 --- a/Pearlception/Gemfile +++ b/Pearlception/Gemfile @@ -21,7 +21,7 @@ gem 'coffee-rails', '~> 4.2' # See https://github.com/rails/execjs#readme for more supported runtimes # gem 'therubyracer', platforms: :ruby gem 'chart-js-rails' - +gem 'jquery-ui-rails' # Use jquery as the JavaScript library gem 'jquery-rails' # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks diff --git a/Pearlception/Gemfile.lock b/Pearlception/Gemfile.lock index 7a43b2b..a8849f8 100644 --- a/Pearlception/Gemfile.lock +++ b/Pearlception/Gemfile.lock @@ -88,6 +88,8 @@ GEM rails-dom-testing (>= 1, < 3) railties (>= 4.2.0) thor (>= 0.14, < 2.0) + jquery-ui-rails (6.0.1) + railties (>= 3.2.16) kaminari (1.0.1) activesupport (>= 4.1.0) kaminari-actionview (= 1.0.1) @@ -222,6 +224,7 @@ DEPENDENCIES hirb-unicode jbuilder (~> 2.5) jquery-rails + jquery-ui-rails kaminari listen (~> 3.0.5) mysql2 (>= 0.3.18, < 0.5) diff --git a/Pearlception/app/assets/javascripts/application.js b/Pearlception/app/assets/javascripts/application.js index ee26e7b..1f319ca 100644 --- a/Pearlception/app/assets/javascripts/application.js +++ b/Pearlception/app/assets/javascripts/application.js @@ -16,3 +16,4 @@ //= require bootstrap/bootstrap-rails-tooltip //= require bootstrap/bootstrap-rails-popover //= require Chart +//= require jquery-ui diff --git a/Pearlception/app/assets/javascripts/dashboard.coffee b/Pearlception/app/assets/javascripts/dashboard.coffee deleted file mode 100644 index 24f83d1..0000000 --- a/Pearlception/app/assets/javascripts/dashboard.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/Pearlception/app/assets/javascripts/dashboard.js b/Pearlception/app/assets/javascripts/dashboard.js new file mode 100644 index 0000000..e69de29 diff --git a/Pearlception/app/assets/javascripts/statistics.js b/Pearlception/app/assets/javascripts/statistics.js index 988b00f..25347a8 100644 --- a/Pearlception/app/assets/javascripts/statistics.js +++ b/Pearlception/app/assets/javascripts/statistics.js @@ -1,3 +1,8 @@ +$('#from_datepicker').datepicker() +$('#to_datepicker').datepicker() +/* +*This is code for the grades chart. +*/ var ctx = document.getElementById("gradesChart"); var myChart = new Chart(ctx, { type: 'bar', @@ -35,3 +40,4 @@ var myChart = new Chart(ctx, { } } }); + diff --git a/Pearlception/app/assets/stylesheets/application.css b/Pearlception/app/assets/stylesheets/application.css index a75d597..8b971c4 100644 --- a/Pearlception/app/assets/stylesheets/application.css +++ b/Pearlception/app/assets/stylesheets/application.css @@ -14,4 +14,5 @@ *= require_self *= require bootstrap/bootstrap-rails-tooltip *= require bootstrap/bootstrap-rails-popover + *= require jquery-ui */ diff --git a/Pearlception/app/controllers/statistics_controller.rb b/Pearlception/app/controllers/statistics_controller.rb index b1400fb..b5568cb 100644 --- a/Pearlception/app/controllers/statistics_controller.rb +++ b/Pearlception/app/controllers/statistics_controller.rb @@ -1,2 +1,6 @@ class StatisticsController < ApplicationController + + def index + puts params.inspect + end end diff --git a/Pearlception/app/views/statistics/index.html.erb b/Pearlception/app/views/statistics/index.html.erb index 0940def..d908968 100644 --- a/Pearlception/app/views/statistics/index.html.erb +++ b/Pearlception/app/views/statistics/index.html.erb @@ -40,23 +40,35 @@ <% if current_user.admin? %>
  • Companies
  • <% else %> -
  • Statistics
  • +
  • Statistics
  • Grades (current)
  • <% end %> -
    -
    - +
    +
    + <%= csrf_meta_tag %> +
    +
    +

    From:

    -
    - +
    +

    To:

    -
    - +
    +
    +
    + +
    +
    +
    +
    + +
    +
    <%= javascript_include_tag "statistics.js" %> <%= javascript_include_tag "bootstrap.min" %>_ From 8e2d357c3d6a4822282583d1fe053467028b7549 Mon Sep 17 00:00:00 2001 From: cole m alban Date: Tue, 4 Apr 2017 12:20:22 -0400 Subject: [PATCH 13/16] Started on date filtering for stats --- Pearlception/app/controllers/sessions_controller.rb | 3 --- Pearlception/app/controllers/statistics_controller.rb | 10 +++++++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Pearlception/app/controllers/sessions_controller.rb b/Pearlception/app/controllers/sessions_controller.rb index b19f09c..a135d84 100644 --- a/Pearlception/app/controllers/sessions_controller.rb +++ b/Pearlception/app/controllers/sessions_controller.rb @@ -6,15 +6,12 @@ class SessionsController < Devise::RegistrationsController end def create - puts "NOW IN CREATE" params = sign_in_params @user = User.find_by(email: params[:email]) if @user == nil || !@user.valid_password?(params[:password]) redirect_to "/signin" return end - super - #Do we need this code below? It was never running before resource = warden.authenticate!(:scope => :user) sign_in(:user, resource) if !current_user.admin diff --git a/Pearlception/app/controllers/statistics_controller.rb b/Pearlception/app/controllers/statistics_controller.rb index b5568cb..0af7084 100644 --- a/Pearlception/app/controllers/statistics_controller.rb +++ b/Pearlception/app/controllers/statistics_controller.rb @@ -1,6 +1,14 @@ class StatisticsController < ApplicationController def index - puts params.inspect + if params[:from_date] != nil && params[:to_date] != nil + from_date = Date.parse params[:from_date] + to_date = Date.parse params[:to_date] + runs = Run.where(:runDate => from_date.beginning_of_day..to_date.end_of_day) + puts runs.inspect + else + runs = Run.all + puts runs.inspect + end end end From 13b4fdb59b24d7b3943f5f03c9bb10f1b21f5c48 Mon Sep 17 00:00:00 2001 From: cole m alban Date: Wed, 5 Apr 2017 16:57:57 -0400 Subject: [PATCH 14/16] Added date filtering --- .../app/assets/javascripts/statistics.js | 111 +++++++++++------- .../app/controllers/statistics_controller.rb | 11 +- 2 files changed, 78 insertions(+), 44 deletions(-) diff --git a/Pearlception/app/assets/javascripts/statistics.js b/Pearlception/app/assets/javascripts/statistics.js index 25347a8..5647c58 100644 --- a/Pearlception/app/assets/javascripts/statistics.js +++ b/Pearlception/app/assets/javascripts/statistics.js @@ -1,43 +1,74 @@ +/* +Set up both the datepicker tabs with this +*/ $('#from_datepicker').datepicker() $('#to_datepicker').datepicker() -/* -*This is code for the grades chart. -*/ -var ctx = document.getElementById("gradesChart"); -var myChart = new Chart(ctx, { - type: 'bar', - data: { - labels: ["Grade1", "Grade2", "Grade3", "Grade4", "Grade5", "Grade6"], - datasets: [{ - label: 'Count for each grade', - data: [12, 19, 3, 5, 2, 3], - backgroundColor: [ - 'rgba(255, 99, 132, 0.2)', - 'rgba(54, 162, 235, 0.2)', - 'rgba(255, 206, 86, 0.2)', - 'rgba(75, 192, 192, 0.2)', - 'rgba(153, 102, 255, 0.2)', - 'rgba(255, 159, 64, 0.2)' - ], - borderColor: [ - 'rgba(255,99,132,1)', - 'rgba(54, 162, 235, 1)', - 'rgba(255, 206, 86, 1)', - 'rgba(75, 192, 192, 1)', - 'rgba(153, 102, 255, 1)', - 'rgba(255, 159, 64, 1)' - ], - borderWidth: 1 - }] - }, - options: { - scales: { - yAxes: [{ - ticks: { - beginAtZero:true - } - }] - } - } -}); +$(document).ready( + $.get("statistics.json", function(gradeData){ + constructGradesGraph(gradeData); + }) +); + +function constructGradesGraph(gradeData){ + console.log(gradeData) + var colors = generateColors(gradeData); + var ctx = document.getElementById("gradesChart"); + var myChart = new Chart(ctx, { + type: 'bar', + data: { + labels: generateLabels(gradeData), + datasets: [{ + label: 'Count for each grade', + data: getGradeCount(gradeData), + backgroundColor: colors, + borderColor: colors, + borderWidth: 1 + }] + }, + options: { + scales: { + yAxes: [{ + ticks: { + beginAtZero:true + } + }] + } + } + }); +} + +function generateLabels(gradeData){ + let grades = gradeData.grades; + labels = []; + for(var i = 0; i < grades.length; i++){ + labels.push(grades[i].Full_name) + } + return labels; +} + +function generateColors(gradeData){ + colors = []; + availableColors = [ + 'rgba(255, 99, 132, 0.2)', + 'rgba(54, 162, 235, 0.2)', + 'rgba(255, 206, 86, 0.2)', + 'rgba(75, 192, 192, 0.2)', + 'rgba(153, 102, 255, 0.2)', + 'rgba(255, 159, 64, 0.2)' + ]; + for(var i = 0; i < gradeData.grades.length; i++){ + var index = Math.round(Math.random() * (availableColors.length - 1)); + var color = availableColors[index] + colors.push(color); + } + return colors; +} + +function getGradeCount(gradeData){ + counts = []; + for(var i = 0; i < gradeData.grades.length; i++){ + counts.push(Math.random() * 100); + } + return counts; +} \ No newline at end of file diff --git a/Pearlception/app/controllers/statistics_controller.rb b/Pearlception/app/controllers/statistics_controller.rb index 0af7084..d03658b 100644 --- a/Pearlception/app/controllers/statistics_controller.rb +++ b/Pearlception/app/controllers/statistics_controller.rb @@ -1,14 +1,17 @@ class StatisticsController < ApplicationController def index + puts Grade.all if params[:from_date] != nil && params[:to_date] != nil - from_date = Date.parse params[:from_date] - to_date = Date.parse params[:to_date] + from_date = Date.strptime(params[:from_date], '%m/%d/%Y') + to_date = Date.strptime(params[:to_date], '%m/%d/%Y') runs = Run.where(:runDate => from_date.beginning_of_day..to_date.end_of_day) - puts runs.inspect else runs = Run.all - puts runs.inspect end + respond_to do |f| + f.html + f.json {render :json => {grades:Grade.all,runData:runs}} + end end end From 099bd6b8c114812bdd049dc49ad65b81beb665ac Mon Sep 17 00:00:00 2001 From: cole m alban Date: Wed, 5 Apr 2017 18:18:24 -0400 Subject: [PATCH 15/16] got date filtering js functionality working --- .../app/assets/javascripts/statistics.js | 50 +++++++++++++++---- .../app/controllers/statistics_controller.rb | 12 ++++- .../app/views/statistics/index.html.erb | 5 +- migrations/createDummyData.rb | 35 +++++++++++++ migrations/grade.rb | 24 +++++++++ migrate.rb => migrations/migrate.rb | 0 6 files changed, 109 insertions(+), 17 deletions(-) create mode 100644 migrations/createDummyData.rb create mode 100644 migrations/grade.rb rename migrate.rb => migrations/migrate.rb (100%) diff --git a/Pearlception/app/assets/javascripts/statistics.js b/Pearlception/app/assets/javascripts/statistics.js index 5647c58..1911156 100644 --- a/Pearlception/app/assets/javascripts/statistics.js +++ b/Pearlception/app/assets/javascripts/statistics.js @@ -4,23 +4,40 @@ Set up both the datepicker tabs with this $('#from_datepicker').datepicker() $('#to_datepicker').datepicker() +$('#dateFilterButton').on('click',function(){ + var fromDate = $('#from_datepicker')[0].value; + var toDate = $('#to_datepicker')[0].value; + var queryString = ""; + if(fromDate != "" && toDate != ""){ + queryString = "statistics.json/?from_date="+encodeURI(fromDate)+"&to_date="+encodeURI(toDate); + } + else{ + queryString = "statistics.json" + } + $.get(queryString, function(gradeData){ + constructGradesGraph(gradeData); + }) +}); + $(document).ready( $.get("statistics.json", function(gradeData){ constructGradesGraph(gradeData); }) -); +) function constructGradesGraph(gradeData){ console.log(gradeData) + var labels = generateLabels(gradeData); var colors = generateColors(gradeData); + var gradeCounts = getGradeCounts(labels, gradeData); var ctx = document.getElementById("gradesChart"); var myChart = new Chart(ctx, { type: 'bar', data: { - labels: generateLabels(gradeData), + labels: labels, datasets: [{ label: 'Count for each grade', - data: getGradeCount(gradeData), + data: gradeCounts, backgroundColor: colors, borderColor: colors, borderWidth: 1 @@ -38,6 +55,25 @@ function constructGradesGraph(gradeData){ }); } +function getGradeCounts(labels, gradeData){ + var counts = initCountArray(labels); + var oysters = gradeData.allOysters; + for(var i = 0; i < oysters.length; i++){ + var grade = oysters[i].grade; + counts[labels.indexOf(grade)]++; + } + console.log(counts); + return counts; +} + +function initCountArray(labels){ + counts = []; + for(var i = 0; i < labels.length; i++){ + counts.push(0) + } + return counts; +} + function generateLabels(gradeData){ let grades = gradeData.grades; labels = []; @@ -63,12 +99,4 @@ function generateColors(gradeData){ colors.push(color); } return colors; -} - -function getGradeCount(gradeData){ - counts = []; - for(var i = 0; i < gradeData.grades.length; i++){ - counts.push(Math.random() * 100); - } - return counts; } \ No newline at end of file diff --git a/Pearlception/app/controllers/statistics_controller.rb b/Pearlception/app/controllers/statistics_controller.rb index d03658b..10b2ce4 100644 --- a/Pearlception/app/controllers/statistics_controller.rb +++ b/Pearlception/app/controllers/statistics_controller.rb @@ -1,7 +1,6 @@ class StatisticsController < ApplicationController def index - puts Grade.all if params[:from_date] != nil && params[:to_date] != nil from_date = Date.strptime(params[:from_date], '%m/%d/%Y') to_date = Date.strptime(params[:to_date], '%m/%d/%Y') @@ -9,9 +8,18 @@ class StatisticsController < ApplicationController else runs = Run.all end + puts runs.inspect + oysterData = [] + all_oysters = [] + runs.each do |run| + oysters = Oyster.where(run_id: run.id).to_a + data = {"run": run, "oysters": oysters} + oysterData.push(data) + all_oysters.concat(oysters) + end respond_to do |f| f.html - f.json {render :json => {grades:Grade.all,runData:runs}} + f.json {render :json => {grades:Grade.all,oysterData:oysterData,allOysters:all_oysters}} end end end diff --git a/Pearlception/app/views/statistics/index.html.erb b/Pearlception/app/views/statistics/index.html.erb index d908968..3e4c4ed 100644 --- a/Pearlception/app/views/statistics/index.html.erb +++ b/Pearlception/app/views/statistics/index.html.erb @@ -48,8 +48,6 @@
    -
    - <%= csrf_meta_tag %>

    From:

    @@ -58,10 +56,9 @@

    To:

    - +
    -
    diff --git a/migrations/createDummyData.rb b/migrations/createDummyData.rb new file mode 100644 index 0000000..b932fba --- /dev/null +++ b/migrations/createDummyData.rb @@ -0,0 +1,35 @@ +require 'mysql2' +require 'active_record' + +ActiveRecord::Base.establish_connection( + adapter: 'mysql2', + host: 'localhost', + database: 'development_HoopersIsland', + username: 'bmv', + password: '1156244terps!' +) + +class Grade < ActiveRecord::Base + +end + +class Oyster < ActiveRecord::Base + +end + +class Run < ActiveRecord::Base + +end + +runs = Run.all +grades = Grade.all.to_a +runs.each do |run| + 20.times do + len = rand(0..10) + width = rand(0..10) + height = rand(0..10) + vol = len * width * height + oyster = Oyster.new(run_id: run.id, grade: grades[rand(0...grades.length)].Full_name,volume:vol, length:len, width:width, height:height) + oyster.save + end +end diff --git a/migrations/grade.rb b/migrations/grade.rb new file mode 100644 index 0000000..60fb844 --- /dev/null +++ b/migrations/grade.rb @@ -0,0 +1,24 @@ + +#A class to represent a grade +class Grade + + def initialize(params) + @id = params["grade_id"] + @full_name = params["Full_Name"] || "NULL" + @short_name = params["Short_Name"] || "NULL" + @volume_max = params["Volume_max"] || 0 + @volume_min = params["Volume_min"] || 0 + @length_max = params["Length_max"] || 0 + @length_min = params["Length_min"] || 0 + @width_max = params["Width_max"] || 0 + @width_min = params["Width_min"] || 0 + @height_max = params["Height_max"] || 0 + @height_min = params["Height_min"] || 0 + end + + def to_insert_query + "INSERT into grades (id, Full_Name, Short_Name, Volume_max, Volume_min, Length_max, Length_min, Width_max, Width_min, Height_max, Height_min,created_at,updated_at) VALUES + (#{@id},\"#{@full_name}\",\"#{@short_name}\",#{@volume_max},#{@volume_min},#{@length_max},#{@length_min},#{@width_max},#{@width_min},#{@height_max},#{@height_min},NOW(),NOW());" + end + +end diff --git a/migrate.rb b/migrations/migrate.rb similarity index 100% rename from migrate.rb rename to migrations/migrate.rb From e4d8fa4223915da415b89111f5e90d576c60a33d Mon Sep 17 00:00:00 2001 From: bmv root Date: Fri, 14 Apr 2017 13:22:48 -0400 Subject: [PATCH 16/16] change dashboard controller --- Pearlception/app/controllers/dashboard_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Pearlception/app/controllers/dashboard_controller.rb b/Pearlception/app/controllers/dashboard_controller.rb index 3578c3a..e51857e 100644 --- a/Pearlception/app/controllers/dashboard_controller.rb +++ b/Pearlception/app/controllers/dashboard_controller.rb @@ -8,7 +8,8 @@ class DashboardController < ApplicationController puts params @results = Hash.new names = (Company.pluck :company_name) - ["IVA"] - names.map!{|tenant| tenant.gsub(/'/,'').gsub(/\s/,'')} + binding.pry + names.map!{|tenant| tenant.gsub(/'/,'').gsub(/\s/,'')} names.each do |name|