diff --git a/src/app/app/controllers/college_whitelists_controller.rb b/src/app/app/controllers/college_whitelists_controller.rb index 64fb5fbd..053852bc 100644 --- a/src/app/app/controllers/college_whitelists_controller.rb +++ b/src/app/app/controllers/college_whitelists_controller.rb @@ -1,7 +1,7 @@ class CollegeWhitelistsController < ApplicationController before_action :require_logged_in_user before_action :set_college - before_action :set_college_whitelist, only: [:show, :edit, :update, :destroy] + before_action :set_college_whitelist, only: [:show, :edit, :destroy] def verify_permission if @college.request_to_participate == "0" @@ -15,7 +15,7 @@ def verify_permission # GET /college_whitelists.json def index if isPageAdmin(params[:college_id]) - @college_whitelists = CollegeWhitelist.where(college_id: params[:college_id]) + set_whitelist_by_college render :index else flash[:danger] = 'Área restrita. Você não é administrador da página.' @@ -50,38 +50,10 @@ def create end end - def revoke - @college_whitelist = CollegeWhitelist.find(params[:college_whitelist_id]) - respond_to do |format| - if @college_whitelist.update(status: :pending) - format.html { redirect_to college_college_whitelists_path } - else - format.html { - flash[:danger] = "Não foi possível revogar a credencial do usuário para pendente." - render :index - } - end - end - end - - def aprove - @college_whitelist = CollegeWhitelist.find(params[:college_whitelist_id]) - respond_to do |format| - if @college_whitelist.update(status: :approved) - format.html { redirect_to college_college_whitelists_path } - else - format.html { - flash[:danger] = "Não foi possível alterar a credencial do usuário para aprovado." - render :index - } - end - end - end - - def reject - @college_whitelist = CollegeWhitelist.find(params[:college_whitelist_id]) + def update + @college_whitelist = CollegeWhitelist.find(params[:id]) respond_to do |format| - if @college_whitelist.update(status: :rejected) + if @college_whitelist.update(status: params[:college_whitelist][:status]) format.html { redirect_to college_college_whitelists_path } else format.html { @@ -107,6 +79,10 @@ def college_whitelist_params params.require(:college_whitelist).permit(:status) end + def set_whitelist_by_college + @college_whitelists = CollegeWhitelist.where(college_id: params[:college_id]) + end + def check_college_access_permission @college_whitelist = CollegeWhitelist.find_by(user_id: current_user.id, college_id: @college.id) if !@college_whitelist.nil? @@ -128,5 +104,8 @@ def check_request_access_status(college_whitelist) end end - + def return_status_enum(status) + p status + CollegeWhitelist.statuses[status] + end end \ No newline at end of file diff --git a/src/app/app/views/college_whitelists/index.html.erb b/src/app/app/views/college_whitelists/index.html.erb index 9c20edeb..7ca162af 100644 --- a/src/app/app/views/college_whitelists/index.html.erb +++ b/src/app/app/views/college_whitelists/index.html.erb @@ -21,8 +21,8 @@ <%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %>
- <%= button_to 'Aprovar', { action: "aprove", :college_whitelist => {:status => college_whitelist.status}, :college_id => college_whitelist.college.id, :college_whitelist_id => college_whitelist.id }, method: "patch", class: "botao super small" %> - <%= button_to 'Rejeitar', { action: "reject", :college_whitelist => {:status => college_whitelist.status}, :college_id => college_whitelist.college.id, :college_whitelist_id => college_whitelist.id }, method: "patch", class: "botao super small" %> + <%= button_to 'Aprovar', { action: "update", :college_whitelist => {:status => :approved}, :college_id => college_whitelist.college_id, :id => college_whitelist.id}, method: "patch", class: "botao super small" %> + <%= button_to 'Rejeitar', { action: "update", :college_whitelist => {:status => :rejected}, :college_id => college_whitelist.college_id, :id => college_whitelist.id}, method: "patch", class: "botao super small" %>
@@ -47,7 +47,7 @@ <%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %> <% if !isUserAdminOfPage(college_whitelist.college.id, college_whitelist.user.id) %> - <%= button_to 'Revogar', { action: "revoke", :college_whitelist => {:status => college_whitelist.status}, :college_id => college_whitelist.college.id, :college_whitelist_id => college_whitelist.id }, method: "patch", class: "botao super small" %> + <%= button_to 'Revogar', { action: "update", :college_whitelist => {:status => :pending}, :college_id => college_whitelist.college_id, :id => college_whitelist.id}, method: "patch", class: "botao super small" %> <% end %> <% end %> @@ -70,7 +70,7 @@ <% if (college_whitelist.status == 'rejected') %> <%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %> - <%= button_to 'Revogar', { action: "revoke", :college_whitelist => {:status => college_whitelist.status}, :college_id => college_whitelist.college.id, :college_whitelist_id => college_whitelist.id }, method: "patch", class: "botao super small" %> + <%= button_to 'Revogar', { action: "update", :college_whitelist => {:status => :pending}, :college_id => college_whitelist.college_id, :id => college_whitelist.id}, method: "patch", class: "botao super small" %> <% end %> <% end %> diff --git a/src/app/config/routes.rb b/src/app/config/routes.rb index 85d1b93a..de6f5aa2 100644 --- a/src/app/config/routes.rb +++ b/src/app/config/routes.rb @@ -47,13 +47,8 @@ end resources :colleges, only: [:new, :create, :show, :index, :edit, :update] do - resources :college_whitelists, only: [:new, :create, :index] do - patch 'aprove', to: 'college_whitelists#aprove' - patch 'reject', to: 'college_whitelists#reject' - patch 'revoke', to: 'college_whitelists#revoke' - end + resources :college_whitelists, only: [:new, :create, :index, :update] get 'verify_permission', to: 'college_whitelists#verify_permission' - end resources :spotteds, only: [:new, :create, :show, :index] do diff --git a/src/app/features/step_definitions/edit_page_settings_steps.rb b/src/app/features/step_definitions/edit_page_settings_steps.rb index 482862c2..386151c4 100644 --- a/src/app/features/step_definitions/edit_page_settings_steps.rb +++ b/src/app/features/step_definitions/edit_page_settings_steps.rb @@ -2,34 +2,35 @@ visit edit_college_path(@college, :id => @college.id) end -When(/^I fill the edit page settings form$/) do - fill_in "college[background_color]", with: "#fafafa" - fill_in "college[background_image]", with: "" - fill_in "college[font_family]", with: "Arial" - fill_in "college[font_color]", with: "#000000" - select 'Manual', from: "college[admin_approves_spotted]" - select 'Sim', from: "college[request_to_participate]" -end - Then(/^I should see the green success toast$/) do expect(page).to have_xpath('.//div[@class="alert alert-success alert-dismissible"]') end +When(/^I fill the edit page settings form$/) do + steps %Q{ + Given I fill general info of college + } + fill_in "college[background_image]", with: "" +end + When(/^I fill the edit page settings form including background_image field$/) do - fill_in "college[background_color]", with: "#fafafa" - fill_in "college[background_image]", with: "https://townsquare.media/site/366/files/2019/04/Sabaton1.jpg?w=980&q=75" - fill_in "college[font_family]", with: "Arial" - fill_in "college[font_color]", with: "#000000" - select 'Manual', from: "college[admin_approves_spotted]" - select 'Sim', from: "college[request_to_participate]" + steps %Q{ + Given I fill general info of college + } end When(/^I fill the edit page settings form except font_family field$/) do + steps %Q{ + Given I fill general info of college + } + fill_in "college[font_family]", with: "" +end + +Given (/^I fill general info of college$/) do fill_in "college[background_color]", with: "#fafafa" fill_in "college[background_image]", with: "https://townsquare.media/site/366/files/2019/04/Sabaton1.jpg?w=980&q=75" - fill_in "college[font_family]", with: "" + fill_in "college[font_family]", with: "Arial" fill_in "college[font_color]", with: "#000000" select 'Manual', from: "college[admin_approves_spotted]" select 'Sim', from: "college[request_to_participate]" -end - \ No newline at end of file +end \ No newline at end of file diff --git a/src/app/log/development.log b/src/app/log/development.log index 6c1254bb..1a001e7d 100644 --- a/src/app/log/development.log +++ b/src/app/log/development.log @@ -26628,3 +26628,3358 @@ Completed 200 OK in 180ms (Views: 158.0ms | ActiveRecord: 14.3ms) Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 02:43:59 -0300 +Started GET "/" for 127.0.0.1 at 2019-11-20 22:36:47 -0300 +  (41.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /home/fernandok/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by WelcomeController#index as HTML + User Load (47.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendering welcome/index.html.erb within layouts/application + Rendered welcome/index.html.erb within layouts/application (5224.1ms) + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered layouts/_header.html.erb (8.0ms) + Rendered layouts/_footer.html.erb (0.7ms) +Completed 200 OK in 5830ms (Views: 5623.1ms | ActiveRecord: 119.0ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:36:58 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:36:58 -0300 +Started GET "/entrar" for 127.0.0.1 at 2019-11-20 22:42:50 -0300 +Processing by SessionsController#new as HTML + User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendering sessions/new.html.erb within layouts/application + Rendered sessions/new.html.erb within layouts/application (58.7ms) + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered layouts/_header.html.erb (7.4ms) + Rendered layouts/_footer.html.erb (0.7ms) +Completed 200 OK in 211ms (Views: 162.4ms | ActiveRecord: 9.0ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:42:52 -0300 +Started POST "/entrar" for 127.0.0.1 at 2019-11-20 22:42:54 -0300 +Processing by SessionsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ps0fOWZnH1Gn1UZ1sf3MTkIcvTwXf3sRhtOitpmvUy2Bldrc6at0BsMSqPXpoL2M/ENLYw2W/f9taIaApNJ+wg==", "session"=>{"email"=>"fernando.kga@gmail.com", "password"=>"[FILTERED]"}, "commit"=>"Entrar"} + User Load (24.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2 [["email", "fernando.kga@gmail.com"], ["LIMIT", 1]] + ↳ app/controllers/sessions_controller.rb:7 + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."nickname" = $1 LIMIT $2 [["nickname", "fernando.kga@gmail.com"], ["LIMIT", 1]] + ↳ app/controllers/sessions_controller.rb:8 +Redirected to http://localhost:3000/users/1 +Completed 302 Found in 583ms (ActiveRecord: 133.5ms) + + +Started GET "/users/1" for 127.0.0.1 at 2019-11-20 22:42:55 -0300 +Processing by UsersController#show as HTML + Parameters: {"id"=>"1"} + Rendering users/show.html.erb within layouts/application + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered users/show.html.erb within layouts/application (10.5ms) + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + FavoriteSpotted Exists (13.2ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (71.7ms) + Rendered layouts/_footer.html.erb (0.8ms) +Completed 200 OK in 269ms (Views: 248.9ms | ActiveRecord: 18.8ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:42:57 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:42:57 -0300 +Started GET "/favorite_colleges" for 127.0.0.1 at 2019-11-20 22:42:58 -0300 +Processing by FavoriteCollegesController#show as HTML + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendering favorite_colleges/show.html.erb within layouts/application + FavoriteCollege Load (42.1ms) SELECT "favorite_colleges".* FROM "favorite_colleges" WHERE "favorite_colleges"."user_id" = $1 [["user_id", 1]] + ↳ app/views/favorite_colleges/show.html.erb:6 + College Load (21.4ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/favorite_colleges/show.html.erb:12 + College Exists (1.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + CACHE College Exists (0.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendered favorite_colleges/show.html.erb within layouts/application (184.8ms) + FavoriteSpotted Exists (0.6ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (9.2ms) + Rendered layouts/_footer.html.erb (0.8ms) +Completed 200 OK in 342ms (Views: 237.0ms | ActiveRecord: 77.6ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:43:00 -0300 +Started GET "/colleges/1/college_whitelists" for 127.0.0.1 at 2019-11-20 22:43:01 -0300 +Processing by CollegeWhitelistsController#index as HTML + Parameters: {"college_id"=>"1"} + User Load (1.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.7ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:115 + College Exists (0.9ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendering college_whitelists/index.html.erb within layouts/application + CollegeWhitelist Load (56.7ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1 AND "college_whitelists"."user_id" = $2 [["college_id", 1], ["user_id", 1]] + ↳ app/views/college_whitelists/index.html.erb:18 + Rendered college_whitelists/index.html.erb within layouts/application (59.5ms) + FavoriteSpotted Exists (0.6ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (7.5ms) + Rendered layouts/_footer.html.erb (0.7ms) +Completed 200 OK in 190ms (Views: 112.5ms | ActiveRecord: 63.1ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:43:03 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:43:04 -0300 +  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (63.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]] + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]] + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]] + ↳ bin/rails:9 +  (941.6ms) DROP DATABASE IF EXISTS "app_development" + ↳ bin/rails:9 +  (500.7ms) DROP DATABASE IF EXISTS "app_test" + ↳ bin/rails:9 +  (2088.6ms) CREATE DATABASE "app_development" ENCODING = 'unicode' + ↳ bin/rails:9 +  (1026.9ms) CREATE DATABASE "app_test" ENCODING = 'unicode' + ↳ bin/rails:9 + SQL (0.9ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" + ↳ db/schema.rb:16 +  (48.3ms) DROP TABLE IF EXISTS "administrators" CASCADE + ↳ db/schema.rb:18 +  (183.0ms) CREATE TABLE "administrators" ("id" bigserial primary key, "user_id" bigint, "college_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ db/schema.rb:18 +  (85.1ms) CREATE INDEX "index_administrators_on_college_id" ON "administrators" ("college_id") + ↳ db/schema.rb:18 +  (107.8ms) CREATE INDEX "index_administrators_on_user_id" ON "administrators" ("user_id") + ↳ db/schema.rb:18 +  (0.4ms) DROP TABLE IF EXISTS "college_whitelists" CASCADE + ↳ db/schema.rb:27 +  (98.9ms) CREATE TABLE "college_whitelists" ("id" bigserial primary key, "status" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "user_id" bigint NOT NULL, "college_id" bigint NOT NULL) + ↳ db/schema.rb:27 +  (86.2ms) CREATE INDEX "index_college_whitelists_on_college_id" ON "college_whitelists" ("college_id") + ↳ db/schema.rb:27 +  (74.7ms) CREATE UNIQUE INDEX "index_college_whitelists_on_user_id_and_college_id" ON "college_whitelists" ("user_id", "college_id") + ↳ db/schema.rb:27 +  (74.6ms) CREATE INDEX "index_college_whitelists_on_user_id" ON "college_whitelists" ("user_id") + ↳ db/schema.rb:27 +  (0.4ms) DROP TABLE IF EXISTS "colleges" CASCADE + ↳ db/schema.rb:38 +  (151.8ms) CREATE TABLE "colleges" ("id" bigserial primary key, "name" character varying DEFAULT '' NOT NULL, "initials" character varying DEFAULT '', "city" character varying DEFAULT '' NOT NULL, "state" character varying DEFAULT '' NOT NULL, "country" character varying DEFAULT '' NOT NULL, "unit" character varying DEFAULT '', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "user_id" bigint, "background_color" character varying, "font_family" character varying, "background_image" character varying, "font_color" character varying, "request_to_participate" character varying, "admin_approves_spotted" character varying) + ↳ db/schema.rb:38 +  (74.6ms) CREATE INDEX "index_colleges_on_user_id" ON "colleges" ("user_id") + ↳ db/schema.rb:38 +  (0.4ms) DROP TABLE IF EXISTS "comments" CASCADE + ↳ db/schema.rb:57 +  (154.5ms) CREATE TABLE "comments" ("id" bigserial primary key, "user_id" bigint, "spotted_id" bigint, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ db/schema.rb:57 +  (85.3ms) CREATE INDEX "index_comments_on_spotted_id" ON "comments" ("spotted_id") + ↳ db/schema.rb:57 +  (74.9ms) CREATE INDEX "index_comments_on_user_id" ON "comments" ("user_id") + ↳ db/schema.rb:57 +  (0.4ms) DROP TABLE IF EXISTS "favorite_colleges" CASCADE + ↳ db/schema.rb:67 +  (125.1ms) CREATE TABLE "favorite_colleges" ("id" bigserial primary key, "college_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ db/schema.rb:67 +  (0.5ms) DROP TABLE IF EXISTS "favorite_spotteds" CASCADE + ↳ db/schema.rb:74 +  (132.0ms) CREATE TABLE "favorite_spotteds" ("id" bigserial primary key, "spotted_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ db/schema.rb:74 +  (0.4ms) DROP TABLE IF EXISTS "likes" CASCADE + ↳ db/schema.rb:81 +  (121.2ms) CREATE TABLE "likes" ("id" bigserial primary key, "user_id" bigint, "spotted_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ db/schema.rb:81 +  (63.0ms) CREATE INDEX "index_likes_on_spotted_id" ON "likes" ("spotted_id") + ↳ db/schema.rb:81 +  (64.1ms) CREATE INDEX "index_likes_on_user_id" ON "likes" ("user_id") + ↳ db/schema.rb:81 +  (0.4ms) DROP TABLE IF EXISTS "spotteds" CASCADE + ↳ db/schema.rb:90 +  (211.3ms) CREATE TABLE "spotteds" ("id" bigserial primary key, "content" text, "college_spotted_counter" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "user_id" bigint, "college_id" bigint, "image_file_name" character varying, "image_content_type" character varying, "image_file_size" integer, "image_updated_at" timestamp, "image" character varying) + ↳ db/schema.rb:90 +  (63.6ms) CREATE INDEX "index_spotteds_on_college_id" ON "spotteds" ("college_id") + ↳ db/schema.rb:90 +  (62.5ms) CREATE INDEX "index_spotteds_on_user_id" ON "spotteds" ("user_id") + ↳ db/schema.rb:90 +  (0.4ms) DROP TABLE IF EXISTS "users" CASCADE + ↳ db/schema.rb:106 +  (141.4ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying DEFAULT '' NOT NULL, "first_name" character varying DEFAULT '' NOT NULL, "last_name" character varying DEFAULT '' NOT NULL, "password_digest" character varying DEFAULT '' NOT NULL, "birth_date" date NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "city" character varying, "state" character varying, "country" character varying, "nickname" character varying DEFAULT '' NOT NULL, "profile_picture" character varying, "menu_preference" character varying DEFAULT 'list', "profile_picture_content_type" character varying) + ↳ db/schema.rb:106 +  (10.4ms) ALTER TABLE "administrators" ADD CONSTRAINT "fk_rails_df680ac728" +FOREIGN KEY ("college_id") + REFERENCES "colleges" ("id") + + ↳ db/schema.rb:123 +  (21.5ms) ALTER TABLE "administrators" ADD CONSTRAINT "fk_rails_2733f5ea0b" +FOREIGN KEY ("user_id") + REFERENCES "users" ("id") + + ↳ db/schema.rb:124 +  (10.1ms) ALTER TABLE "college_whitelists" ADD CONSTRAINT "fk_rails_97d9690e4b" +FOREIGN KEY ("college_id") + REFERENCES "colleges" ("id") + + ↳ db/schema.rb:125 +  (10.5ms) ALTER TABLE "college_whitelists" ADD CONSTRAINT "fk_rails_b7f63e7496" +FOREIGN KEY ("user_id") + REFERENCES "users" ("id") + + ↳ db/schema.rb:126 +  (10.4ms) ALTER TABLE "colleges" ADD CONSTRAINT "fk_rails_49306e4f49" +FOREIGN KEY ("user_id") + REFERENCES "users" ("id") + + ↳ db/schema.rb:127 +  (10.3ms) ALTER TABLE "comments" ADD CONSTRAINT "fk_rails_ff224da44e" +FOREIGN KEY ("spotted_id") + REFERENCES "spotteds" ("id") + + ↳ db/schema.rb:128 +  (9.7ms) ALTER TABLE "comments" ADD CONSTRAINT "fk_rails_03de2dc08c" +FOREIGN KEY ("user_id") + REFERENCES "users" ("id") + + ↳ db/schema.rb:129 +  (10.4ms) ALTER TABLE "likes" ADD CONSTRAINT "fk_rails_c9334a5f5a" +FOREIGN KEY ("spotted_id") + REFERENCES "spotteds" ("id") + + ↳ db/schema.rb:130 +  (10.5ms) ALTER TABLE "likes" ADD CONSTRAINT "fk_rails_1e09b5dabf" +FOREIGN KEY ("user_id") + REFERENCES "users" ("id") + + ↳ db/schema.rb:131 +  (10.9ms) ALTER TABLE "spotteds" ADD CONSTRAINT "fk_rails_86620d5d51" +FOREIGN KEY ("college_id") + REFERENCES "colleges" ("id") + + ↳ db/schema.rb:132 +  (10.1ms) ALTER TABLE "spotteds" ADD CONSTRAINT "fk_rails_0aa5129631" +FOREIGN KEY ("user_id") + REFERENCES "users" ("id") + + ↳ db/schema.rb:133 +  (176.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) + ↳ db/schema.rb:13 +  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ db/schema.rb:13 +  (7.5ms) INSERT INTO "schema_migrations" (version) VALUES (20191117102711) + ↳ db/schema.rb:13 +  (10.6ms) INSERT INTO "schema_migrations" (version) VALUES +(20190924020758), +(20191018023813), +(20190904032115), +(20191008130948), +(20191114004531), +(20191101010849), +(20191021233923), +(20190924010505), +(20190904030130), +(20191105234543), +(20191117005258), +(20190903003832), +(20190904031944), +(20191009015901), +(20190926031057), +(20191112013408), +(20190915191815), +(20190902022737), +(20190921194746), +(20191022024453), +(20190924015930); + + + ↳ db/schema.rb:13 +  (154.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ db/schema.rb:13 + ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] + ↳ db/schema.rb:13 +  (0.3ms) BEGIN + ↳ db/schema.rb:13 + ActiveRecord::InternalMetadata Create (0.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2019-11-21 01:43:31.970125"], ["updated_at", "2019-11-21 01:43:31.970125"]] + ↳ db/schema.rb:13 +  (6.7ms) COMMIT + ↳ db/schema.rb:13 + ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (1.0ms) BEGIN + ↳ bin/rails:9 +  (0.4ms) COMMIT + ↳ bin/rails:9 + SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" + ↳ db/schema.rb:16 +  (0.5ms) DROP TABLE IF EXISTS "administrators" CASCADE + ↳ db/schema.rb:18 +  (120.9ms) CREATE TABLE "administrators" ("id" bigserial primary key, "user_id" bigint, "college_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ db/schema.rb:18 +  (60.9ms) CREATE INDEX "index_administrators_on_college_id" ON "administrators" ("college_id") + ↳ db/schema.rb:18 +  (74.8ms) CREATE INDEX "index_administrators_on_user_id" ON "administrators" ("user_id") + ↳ db/schema.rb:18 +  (0.4ms) DROP TABLE IF EXISTS "college_whitelists" CASCADE + ↳ db/schema.rb:27 +  (75.3ms) CREATE TABLE "college_whitelists" ("id" bigserial primary key, "status" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "user_id" bigint NOT NULL, "college_id" bigint NOT NULL) + ↳ db/schema.rb:27 +  (63.0ms) CREATE INDEX "index_college_whitelists_on_college_id" ON "college_whitelists" ("college_id") + ↳ db/schema.rb:27 +  (64.0ms) CREATE UNIQUE INDEX "index_college_whitelists_on_user_id_and_college_id" ON "college_whitelists" ("user_id", "college_id") + ↳ db/schema.rb:27 +  (72.0ms) CREATE INDEX "index_college_whitelists_on_user_id" ON "college_whitelists" ("user_id") + ↳ db/schema.rb:27 +  (0.5ms) DROP TABLE IF EXISTS "colleges" CASCADE + ↳ db/schema.rb:38 +  (127.6ms) CREATE TABLE "colleges" ("id" bigserial primary key, "name" character varying DEFAULT '' NOT NULL, "initials" character varying DEFAULT '', "city" character varying DEFAULT '' NOT NULL, "state" character varying DEFAULT '' NOT NULL, "country" character varying DEFAULT '' NOT NULL, "unit" character varying DEFAULT '', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "user_id" bigint, "background_color" character varying, "font_family" character varying, "background_image" character varying, "font_color" character varying, "request_to_participate" character varying, "admin_approves_spotted" character varying) + ↳ db/schema.rb:38 +  (63.0ms) CREATE INDEX "index_colleges_on_user_id" ON "colleges" ("user_id") + ↳ db/schema.rb:38 +  (0.4ms) DROP TABLE IF EXISTS "comments" CASCADE + ↳ db/schema.rb:57 +  (119.9ms) CREATE TABLE "comments" ("id" bigserial primary key, "user_id" bigint, "spotted_id" bigint, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ db/schema.rb:57 +  (63.7ms) CREATE INDEX "index_comments_on_spotted_id" ON "comments" ("spotted_id") + ↳ db/schema.rb:57 +  (61.8ms) CREATE INDEX "index_comments_on_user_id" ON "comments" ("user_id") + ↳ db/schema.rb:57 +  (1.2ms) DROP TABLE IF EXISTS "favorite_colleges" CASCADE + ↳ db/schema.rb:67 +  (63.5ms) CREATE TABLE "favorite_colleges" ("id" bigserial primary key, "college_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ db/schema.rb:67 +  (0.6ms) DROP TABLE IF EXISTS "favorite_spotteds" CASCADE + ↳ db/schema.rb:74 +  (75.7ms) CREATE TABLE "favorite_spotteds" ("id" bigserial primary key, "spotted_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ db/schema.rb:74 +  (0.4ms) DROP TABLE IF EXISTS "likes" CASCADE + ↳ db/schema.rb:81 +  (64.9ms) CREATE TABLE "likes" ("id" bigserial primary key, "user_id" bigint, "spotted_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ db/schema.rb:81 +  (62.9ms) CREATE INDEX "index_likes_on_spotted_id" ON "likes" ("spotted_id") + ↳ db/schema.rb:81 +  (63.2ms) CREATE INDEX "index_likes_on_user_id" ON "likes" ("user_id") + ↳ db/schema.rb:81 +  (0.4ms) DROP TABLE IF EXISTS "spotteds" CASCADE + ↳ db/schema.rb:90 +  (109.4ms) CREATE TABLE "spotteds" ("id" bigserial primary key, "content" text, "college_spotted_counter" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "user_id" bigint, "college_id" bigint, "image_file_name" character varying, "image_content_type" character varying, "image_file_size" integer, "image_updated_at" timestamp, "image" character varying) + ↳ db/schema.rb:90 +  (63.9ms) CREATE INDEX "index_spotteds_on_college_id" ON "spotteds" ("college_id") + ↳ db/schema.rb:90 +  (74.3ms) CREATE INDEX "index_spotteds_on_user_id" ON "spotteds" ("user_id") + ↳ db/schema.rb:90 +  (0.8ms) DROP TABLE IF EXISTS "users" CASCADE + ↳ db/schema.rb:106 +  (118.2ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying DEFAULT '' NOT NULL, "first_name" character varying DEFAULT '' NOT NULL, "last_name" character varying DEFAULT '' NOT NULL, "password_digest" character varying DEFAULT '' NOT NULL, "birth_date" date NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "city" character varying, "state" character varying, "country" character varying, "nickname" character varying DEFAULT '' NOT NULL, "profile_picture" character varying, "menu_preference" character varying DEFAULT 'list', "profile_picture_content_type" character varying) + ↳ db/schema.rb:106 +  (9.9ms) ALTER TABLE "administrators" ADD CONSTRAINT "fk_rails_df680ac728" +FOREIGN KEY ("college_id") + REFERENCES "colleges" ("id") + + ↳ db/schema.rb:123 +  (10.5ms) ALTER TABLE "administrators" ADD CONSTRAINT "fk_rails_2733f5ea0b" +FOREIGN KEY ("user_id") + REFERENCES "users" ("id") + + ↳ db/schema.rb:124 +  (9.8ms) ALTER TABLE "college_whitelists" ADD CONSTRAINT "fk_rails_97d9690e4b" +FOREIGN KEY ("college_id") + REFERENCES "colleges" ("id") + + ↳ db/schema.rb:125 +  (10.4ms) ALTER TABLE "college_whitelists" ADD CONSTRAINT "fk_rails_b7f63e7496" +FOREIGN KEY ("user_id") + REFERENCES "users" ("id") + + ↳ db/schema.rb:126 +  (8.3ms) ALTER TABLE "colleges" ADD CONSTRAINT "fk_rails_49306e4f49" +FOREIGN KEY ("user_id") + REFERENCES "users" ("id") + + ↳ db/schema.rb:127 +  (10.4ms) ALTER TABLE "comments" ADD CONSTRAINT "fk_rails_ff224da44e" +FOREIGN KEY ("spotted_id") + REFERENCES "spotteds" ("id") + + ↳ db/schema.rb:128 +  (9.6ms) ALTER TABLE "comments" ADD CONSTRAINT "fk_rails_03de2dc08c" +FOREIGN KEY ("user_id") + REFERENCES "users" ("id") + + ↳ db/schema.rb:129 +  (10.1ms) ALTER TABLE "likes" ADD CONSTRAINT "fk_rails_c9334a5f5a" +FOREIGN KEY ("spotted_id") + REFERENCES "spotteds" ("id") + + ↳ db/schema.rb:130 +  (10.5ms) ALTER TABLE "likes" ADD CONSTRAINT "fk_rails_1e09b5dabf" +FOREIGN KEY ("user_id") + REFERENCES "users" ("id") + + ↳ db/schema.rb:131 +  (9.2ms) ALTER TABLE "spotteds" ADD CONSTRAINT "fk_rails_86620d5d51" +FOREIGN KEY ("college_id") + REFERENCES "colleges" ("id") + + ↳ db/schema.rb:132 +  (10.8ms) ALTER TABLE "spotteds" ADD CONSTRAINT "fk_rails_0aa5129631" +FOREIGN KEY ("user_id") + REFERENCES "users" ("id") + + ↳ db/schema.rb:133 +  (118.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) + ↳ db/schema.rb:13 +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ db/schema.rb:13 +  (6.0ms) INSERT INTO "schema_migrations" (version) VALUES (20191117102711) + ↳ db/schema.rb:13 +  (10.6ms) INSERT INTO "schema_migrations" (version) VALUES +(20190924020758), +(20191018023813), +(20190904032115), +(20191008130948), +(20191114004531), +(20191101010849), +(20191021233923), +(20190924010505), +(20190904030130), +(20191105234543), +(20191117005258), +(20190903003832), +(20190904031944), +(20191009015901), +(20190926031057), +(20191112013408), +(20190915191815), +(20190902022737), +(20190921194746), +(20191022024453), +(20190924015930); + + + ↳ db/schema.rb:13 +  (120.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ db/schema.rb:13 + ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] + ↳ db/schema.rb:13 +  (0.6ms) BEGIN + ↳ db/schema.rb:13 + ActiveRecord::InternalMetadata Create (1.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2019-11-21 01:43:34.172393"], ["updated_at", "2019-11-21 01:43:34.172393"]] + ↳ db/schema.rb:13 +  (13.4ms) COMMIT + ↳ db/schema.rb:13 + ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (1.0ms) BEGIN + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Update (0.6ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2019-11-21 01:43:34.197102"], ["key", "environment"]] + ↳ bin/rails:9 +  (12.5ms) COMMIT + ↳ bin/rails:9 +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Started GET "/users/1" for 127.0.0.1 at 2019-11-20 22:48:48 -0300 +  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /home/fernandok/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by UsersController#show as HTML + Parameters: {"id"=>"1"} + Rendering users/show.html.erb within layouts/application + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered users/show.html.erb within layouts/application (46.3ms) +Completed 500 Internal Server Error in 89ms (ActiveRecord: 5.0ms) + + + +ActionView::Template::Error (undefined method `menu_preference' for nil:NilClass): + 4:
+ 5: + 6:
+ 7: <% if current_user.menu_preference == "list" %> + 8:
+ 9:

Olá <%= current_user.first_name %>

+ 10: + +app/views/users/show.html.erb:7:in `_app_views_users_show_html_erb___1691327558630918633_70314961344960' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:48:49 -0300 +Started GET "/" for 127.0.0.1 at 2019-11-20 22:48:52 -0300 +Processing by WelcomeController#index as HTML + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendering welcome/index.html.erb within layouts/application + Rendered welcome/index.html.erb within layouts/application (97.3ms) + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered layouts/_header.html.erb (5.0ms) + Rendered layouts/_footer.html.erb (0.6ms) +Completed 200 OK in 291ms (Views: 287.9ms | ActiveRecord: 0.7ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:48:54 -0300 +Started GET "/users/new" for 127.0.0.1 at 2019-11-20 22:48:55 -0300 +Processing by UsersController#new as HTML + Rendering users/new.html.erb within layouts/application + Rendered layouts/_error_messages.html.erb (1.3ms) + Rendered users/new.html.erb within layouts/application (427.3ms) + User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered layouts/_header.html.erb (7.6ms) + Rendered layouts/_footer.html.erb (0.8ms) +Completed 200 OK in 806ms (Views: 673.3ms | ActiveRecord: 5.8ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:48:57 -0300 +Started POST "/users" for 127.0.0.1 at 2019-11-20 22:49:17 -0300 +Processing by UsersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"LWr/K1wrcVpfkST57mZ9w/c0cy8DhoqDfdOo8GYr+10KMjrO0+caDTtWynm2OwwBSWuFcBlvDG2WaIzGW1bWsg==", "user"=>{"first_name"=>"Fernando", "last_name"=>"Amorim", "nickname"=>"ferkga", "birth_date"=>"1999-11-11", "email"=>"fernando.kga@gmail.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "country"=>"Brasil", "state"=>"SP", "city"=>"São Paulo"}, "commit"=>"Cadastrar"} +  (0.3ms) BEGIN + ↳ app/controllers/users_controller.rb:18 + User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2 [["email", "fernando.kga@gmail.com"], ["LIMIT", 1]] + ↳ app/controllers/users_controller.rb:18 + User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."nickname" = $1 LIMIT $2 [["nickname", "ferkga"], ["LIMIT", 1]] + ↳ app/controllers/users_controller.rb:18 + User Create (0.9ms) INSERT INTO "users" ("email", "first_name", "last_name", "password_digest", "birth_date", "created_at", "updated_at", "city", "state", "country", "nickname") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["email", "fernando.kga@gmail.com"], ["first_name", "Fernando"], ["last_name", "Amorim"], ["password_digest", "$2a$12$vLlookFxVvfXkWZC0Jf/q.4.ujgKaZ2th4dTIbEruhevCZN7qk2h."], ["birth_date", "1999-11-11"], ["created_at", "2019-11-21 01:49:17.808533"], ["updated_at", "2019-11-21 01:49:17.808533"], ["city", "São Paulo"], ["state", "SP"], ["country", "Brasil"], ["nickname", "ferkga"]] + ↳ app/controllers/users_controller.rb:18 +  (22.6ms) COMMIT + ↳ app/controllers/users_controller.rb:18 +Redirected to http://localhost:3000/ +Completed 302 Found in 392ms (ActiveRecord: 25.2ms) + + +Started GET "/" for 127.0.0.1 at 2019-11-20 22:49:17 -0300 +Processing by WelcomeController#index as HTML + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 +Redirected to http://localhost:3000/users/1 +Filter chain halted as :require_unlogged_user rendered or redirected +Completed 302 Found in 7ms (ActiveRecord: 0.7ms) + + +Started GET "/users/1" for 127.0.0.1 at 2019-11-20 22:49:17 -0300 +Processing by UsersController#show as HTML + Parameters: {"id"=>"1"} + Rendering users/show.html.erb within layouts/application + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered users/show.html.erb within layouts/application (5.4ms) + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + FavoriteSpotted Exists (1.0ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (15.6ms) + Rendered layouts/_footer.html.erb (0.7ms) +Completed 200 OK in 117ms (Views: 111.7ms | ActiveRecord: 3.9ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:49:20 -0300 +Started GET "/colleges" for 127.0.0.1 at 2019-11-20 22:49:35 -0300 +Processing by CollegesController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendering colleges/index.html.erb within layouts/application + College Load (0.9ms) SELECT "colleges".* FROM "colleges" + ↳ app/views/colleges/index.html.erb:6 + Rendered colleges/index.html.erb within layouts/application (9.3ms) + FavoriteSpotted Exists (1.7ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (9.1ms) + Rendered layouts/_footer.html.erb (0.7ms) +Completed 200 OK in 199ms (Views: 119.3ms | ActiveRecord: 6.2ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:49:38 -0300 +Started GET "/colleges/new" for 127.0.0.1 at 2019-11-20 22:49:38 -0300 +Processing by CollegesController#new as HTML + User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendering colleges/new.html.erb within layouts/application + Rendered layouts/_error_messages.html.erb (0.7ms) + Rendered colleges/new.html.erb within layouts/application (34.6ms) + FavoriteSpotted Exists (0.6ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (6.6ms) + Rendered layouts/_footer.html.erb (0.7ms) +Completed 200 OK in 227ms (Views: 143.3ms | ActiveRecord: 5.0ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:49:40 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:49:40 -0300 +Started POST "/colleges" for 127.0.0.1 at 2019-11-20 22:50:00 -0300 +Processing by CollegesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"eTBy5GcGE4MhiwZxAGcP9mS6wYcPq6N2wbEgSXsSC7heaLcB6Mp41EVM6PFYOn402uU32BVCJZgqCgR/Rm8mVw==", "college"=>{"name"=>"Escola de Artes, Ciências e Humanidades", "initials"=>"EACH", "city"=>"São Paulo", "state"=>"SP", "country"=>"Brasil", "unit"=>"USP LESTE", "font_color"=>"#000000", "font_family"=>"", "background_color"=>"#ffffff", "background_image"=>"", "request_to_participate"=>"1", "admin_approves_spotted"=>"1"}, "commit"=>"Cadastrar"} + User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 +  (2.6ms) BEGIN + ↳ app/controllers/colleges_controller.rb:21 + College Create (1.5ms) INSERT INTO "colleges" ("name", "initials", "city", "state", "country", "unit", "created_at", "updated_at", "user_id", "background_color", "font_family", "background_image", "font_color", "request_to_participate", "admin_approves_spotted") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id" [["name", "Escola de Artes, Ciências e Humanidades"], ["initials", "EACH"], ["city", "São Paulo"], ["state", "SP"], ["country", "Brasil"], ["unit", "USP LESTE"], ["created_at", "2019-11-21 01:50:00.511794"], ["updated_at", "2019-11-21 01:50:00.511794"], ["user_id", 1], ["background_color", "#ffffff"], ["font_family", ""], ["background_image", ""], ["font_color", "#000000"], ["request_to_participate", "1"], ["admin_approves_spotted", "1"]] + ↳ app/controllers/colleges_controller.rb:21 +  (78.8ms) COMMIT + ↳ app/controllers/colleges_controller.rb:21 +  (0.3ms) BEGIN + ↳ app/controllers/colleges_controller.rb:22 + FavoriteCollege Create (1.0ms) INSERT INTO "favorite_colleges" ("college_id", "user_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["college_id", 1], ["user_id", 1], ["created_at", "2019-11-21 01:50:00.713752"], ["updated_at", "2019-11-21 01:50:00.713752"]] + ↳ app/controllers/colleges_controller.rb:22 +  (11.5ms) COMMIT + ↳ app/controllers/colleges_controller.rb:22 +  (0.3ms) BEGIN + ↳ app/controllers/colleges_controller.rb:24 + CollegeWhitelist Create (2.9ms) INSERT INTO "college_whitelists" ("status", "created_at", "updated_at", "user_id", "college_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 1], ["created_at", "2019-11-21 01:50:00.758582"], ["updated_at", "2019-11-21 01:50:00.758582"], ["user_id", 1], ["college_id", 1]] + ↳ app/controllers/colleges_controller.rb:24 +  (10.2ms) COMMIT + ↳ app/controllers/colleges_controller.rb:24 +Redirected to http://localhost:3000/ +Completed 302 Found in 274ms (ActiveRecord: 120.7ms) + + +Started GET "/" for 127.0.0.1 at 2019-11-20 22:50:00 -0300 +Processing by WelcomeController#index as HTML + User Load (1.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 +Redirected to http://localhost:3000/users/1 +Filter chain halted as :require_unlogged_user rendered or redirected +Completed 302 Found in 5ms (ActiveRecord: 1.5ms) + + +Started GET "/users/1" for 127.0.0.1 at 2019-11-20 22:50:00 -0300 +Processing by UsersController#show as HTML + Parameters: {"id"=>"1"} + Rendering users/show.html.erb within layouts/application + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered users/show.html.erb within layouts/application (6.3ms) + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + FavoriteSpotted Exists (0.6ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (7.7ms) + Rendered layouts/_footer.html.erb (0.8ms) +Completed 200 OK in 116ms (Views: 113.4ms | ActiveRecord: 1.1ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:50:02 -0300 +Started POST "/users/change_menu_preference?type=circle" for 127.0.0.1 at 2019-11-20 22:50:03 -0300 +Processing by UsersController#change_menu_preference as HTML + Parameters: {"authenticity_token"=>"0YnCwx4Ma+NPTLvWpBlozADCPy+Skq+NZYZFXiRJTlP20QcmkcAAtCuLVVb8RBkOvp3JcIh7KWOOPWFoGTRjvA==", "type"=>"circle"} + User Load (3.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + User Update (19.9ms) UPDATE "users" SET "menu_preference" = $1 WHERE "users"."id" = $2 [["menu_preference", "circle"], ["id", 1]] + ↳ app/controllers/users_controller.rb:61 +Redirected to http://localhost:3000/users/1 +Completed 302 Found in 26ms (ActiveRecord: 23.1ms) + + +Started GET "/users/1" for 127.0.0.1 at 2019-11-20 22:50:03 -0300 +Processing by UsersController#show as HTML + Parameters: {"id"=>"1"} + Rendering users/show.html.erb within layouts/application + User Load (1.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered users/show.html.erb within layouts/application (8.0ms) + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + FavoriteSpotted Exists (0.6ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (7.4ms) + Rendered layouts/_footer.html.erb (0.7ms) +Completed 200 OK in 150ms (Views: 145.4ms | ActiveRecord: 1.8ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:50:05 -0300 +Started POST "/users/change_menu_preference?type=list" for 127.0.0.1 at 2019-11-20 22:50:05 -0300 +Processing by UsersController#change_menu_preference as HTML + Parameters: {"authenticity_token"=>"Ht+5pnz2QR0atTRT8tdvelDNrbBIm2kPDQ3gv2VPvfE5h3xD8zoqSn5y2tOqih647pJb71Jy7+HmtsSJWDKQHg==", "type"=>"list"} + User Load (3.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + User Update (29.8ms) UPDATE "users" SET "menu_preference" = $1 WHERE "users"."id" = $2 [["menu_preference", "list"], ["id", 1]] + ↳ app/controllers/users_controller.rb:65 +Redirected to http://localhost:3000/users/1 +Completed 302 Found in 37ms (ActiveRecord: 32.8ms) + + +Started GET "/users/1" for 127.0.0.1 at 2019-11-20 22:50:06 -0300 +Processing by UsersController#show as HTML + Parameters: {"id"=>"1"} + Rendering users/show.html.erb within layouts/application + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered users/show.html.erb within layouts/application (5.1ms) + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + FavoriteSpotted Exists (0.5ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (7.1ms) + Rendered layouts/_footer.html.erb (0.8ms) +Completed 200 OK in 112ms (Views: 109.3ms | ActiveRecord: 1.1ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:50:07 -0300 +Started GET "/colleges" for 127.0.0.1 at 2019-11-20 22:50:18 -0300 +Processing by CollegesController#index as HTML + User Load (3.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendering colleges/index.html.erb within layouts/application + College Load (1.9ms) SELECT "colleges".* FROM "colleges" + ↳ app/views/colleges/index.html.erb:6 + College Exists (0.8ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + CACHE College Exists (0.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendered colleges/index.html.erb within layouts/application (14.6ms) + FavoriteSpotted Exists (0.6ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (7.4ms) + Rendered layouts/_footer.html.erb (0.8ms) +Completed 200 OK in 156ms (Views: 145.5ms | ActiveRecord: 6.5ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:50:19 -0300 +Started GET "/colleges/new" for 127.0.0.1 at 2019-11-20 22:50:20 -0300 +Processing by CollegesController#new as HTML + User Load (3.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendering colleges/new.html.erb within layouts/application + Rendered layouts/_error_messages.html.erb (0.6ms) + Rendered colleges/new.html.erb within layouts/application (12.1ms) + FavoriteSpotted Exists (0.5ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (6.5ms) + Rendered layouts/_footer.html.erb (0.7ms) +Completed 200 OK in 115ms (Views: 109.0ms | ActiveRecord: 3.5ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:50:21 -0300 +Started POST "/colleges" for 127.0.0.1 at 2019-11-20 22:50:38 -0300 +Processing by CollegesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"+FG+SlQL8cGhLBNErdswGBe7Nt65Idc2gciKmaUA+3rfCXuv28ealsXr/cT1hkHaqeTAgaPIUdhqc66vmH3WlQ==", "college"=>{"name"=>"asdasdsa", "initials"=>"asdasda", "city"=>"São Paulo", "state"=>"SP", "country"=>"Brasil", "unit"=>"AAAA", "font_color"=>"#000000", "font_family"=>"", "background_color"=>"#ffffff", "background_image"=>"", "request_to_participate"=>"1", "admin_approves_spotted"=>"1"}, "commit"=>"Cadastrar"} + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 +  (2.3ms) BEGIN + ↳ app/controllers/colleges_controller.rb:21 + College Create (1.0ms) INSERT INTO "colleges" ("name", "initials", "city", "state", "country", "unit", "created_at", "updated_at", "user_id", "background_color", "font_family", "background_image", "font_color", "request_to_participate", "admin_approves_spotted") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id" [["name", "asdasdsa"], ["initials", "asdasda"], ["city", "São Paulo"], ["state", "SP"], ["country", "Brasil"], ["unit", "AAAA"], ["created_at", "2019-11-21 01:50:38.842348"], ["updated_at", "2019-11-21 01:50:38.842348"], ["user_id", 1], ["background_color", "#ffffff"], ["font_family", ""], ["background_image", ""], ["font_color", "#000000"], ["request_to_participate", "1"], ["admin_approves_spotted", "1"]] + ↳ app/controllers/colleges_controller.rb:21 +  (41.7ms) COMMIT + ↳ app/controllers/colleges_controller.rb:21 +  (1.7ms) BEGIN + ↳ app/controllers/colleges_controller.rb:22 + FavoriteCollege Create (0.9ms) INSERT INTO "favorite_colleges" ("college_id", "user_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["college_id", 2], ["user_id", 1], ["created_at", "2019-11-21 01:50:38.894350"], ["updated_at", "2019-11-21 01:50:38.894350"]] + ↳ app/controllers/colleges_controller.rb:22 +  (92.1ms) COMMIT + ↳ app/controllers/colleges_controller.rb:22 +  (1.3ms) BEGIN + ↳ app/controllers/colleges_controller.rb:24 + CollegeWhitelist Create (0.9ms) INSERT INTO "college_whitelists" ("status", "created_at", "updated_at", "user_id", "college_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 1], ["created_at", "2019-11-21 01:50:38.992028"], ["updated_at", "2019-11-21 01:50:38.992028"], ["user_id", 1], ["college_id", 2]] + ↳ app/controllers/colleges_controller.rb:24 +  (16.2ms) COMMIT + ↳ app/controllers/colleges_controller.rb:24 +Redirected to http://localhost:3000/ +Completed 302 Found in 176ms (ActiveRecord: 158.9ms) + + +Started GET "/" for 127.0.0.1 at 2019-11-20 22:50:39 -0300 +Processing by WelcomeController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 +Redirected to http://localhost:3000/users/1 +Filter chain halted as :require_unlogged_user rendered or redirected +Completed 302 Found in 7ms (ActiveRecord: 0.4ms) + + +Started GET "/users/1" for 127.0.0.1 at 2019-11-20 22:50:39 -0300 +Processing by UsersController#show as HTML + Parameters: {"id"=>"1"} + Rendering users/show.html.erb within layouts/application + User Load (1.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered users/show.html.erb within layouts/application (7.0ms) + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + FavoriteSpotted Exists (0.6ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (38.5ms) + Rendered layouts/_footer.html.erb (1.0ms) +Completed 200 OK in 161ms (Views: 157.7ms | ActiveRecord: 2.0ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:50:40 -0300 +Started GET "/favorite_colleges" for 127.0.0.1 at 2019-11-20 22:51:10 -0300 +Processing by FavoriteCollegesController#show as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendering favorite_colleges/show.html.erb within layouts/application + FavoriteCollege Load (0.9ms) SELECT "favorite_colleges".* FROM "favorite_colleges" WHERE "favorite_colleges"."user_id" = $1 [["user_id", 1]] + ↳ app/views/favorite_colleges/show.html.erb:6 + College Load (0.4ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/favorite_colleges/show.html.erb:12 + College Exists (0.6ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + CACHE College Exists (0.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/views/favorite_colleges/show.html.erb:12 + College Exists (1.3ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + CACHE College Exists (0.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendered favorite_colleges/show.html.erb within layouts/application (21.1ms) + FavoriteSpotted Exists (0.9ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (6.9ms) + Rendered layouts/_footer.html.erb (0.7ms) +Completed 200 OK in 124ms (Views: 116.4ms | ActiveRecord: 5.2ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:51:11 -0300 +Started GET "/colleges/1/spotteds" for 127.0.0.1 at 2019-11-20 22:51:13 -0300 +Processing by SpottedsController#index as HTML + Parameters: {"college_id"=>"1"} + College Load (0.7ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/spotteds_controller.rb:82 + Rendering spotteds/index.html.erb within layouts/application + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Exists (1.2ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + CACHE College Exists (0.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Spotted Load (0.6ms) SELECT "spotteds".* FROM "spotteds" WHERE "spotteds"."college_id" = $1 [["college_id", 1]] + ↳ app/views/spotteds/index.html.erb:74 + Rendered spotteds/index.html.erb within layouts/application (18.4ms) + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + FavoriteSpotted Exists (0.6ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (7.4ms) + Rendered layouts/_footer.html.erb (0.7ms) +Completed 200 OK in 361ms (Views: 112.2ms | ActiveRecord: 6.9ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:51:15 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:51:17 -0300 +Started GET "/colleges/1/college_whitelists" for 127.0.0.1 at 2019-11-20 22:51:18 -0300 +Processing by CollegeWhitelistsController#index as HTML + Parameters: {"college_id"=>"1"} + User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.5ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:115 + College Exists (0.6ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendering college_whitelists/index.html.erb within layouts/application + CollegeWhitelist Load (0.5ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1 AND "college_whitelists"."user_id" = $2 [["college_id", 1], ["user_id", 1]] + ↳ app/views/college_whitelists/index.html.erb:18 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:48 + College Load (1.4ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:49 + College Exists (0.7ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:46 + Rendered college_whitelists/index.html.erb within layouts/application (12.4ms) + FavoriteSpotted Exists (0.6ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (8.6ms) + Rendered layouts/_footer.html.erb (1.3ms) +Completed 200 OK in 181ms (Views: 165.4ms | ActiveRecord: 5.4ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:51:19 -0300 +Started DELETE "/sair" for 127.0.0.1 at 2019-11-20 22:54:03 -0300 +Processing by SessionsController#destroy as HTML + Parameters: {"authenticity_token"=>"JMkTp8yuXsROoGUWqagd/rl8F03ieiWCIJmfiL/XsxYDkdZCQ2I1kypni5bx9Ww8ByPhEviTo2zLIru+gqqe+Q=="} +Redirected to http://localhost:3000/entrar +Completed 302 Found in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/entrar" for 127.0.0.1 at 2019-11-20 22:54:03 -0300 +Processing by SessionsController#new as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendering sessions/new.html.erb within layouts/application + Rendered sessions/new.html.erb within layouts/application (1.7ms) + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered layouts/_header.html.erb (7.3ms) + Rendered layouts/_footer.html.erb (0.7ms) +Completed 200 OK in 107ms (Views: 102.7ms | ActiveRecord: 0.5ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:54:04 -0300 +Started GET "/" for 127.0.0.1 at 2019-11-20 22:54:07 -0300 +Processing by WelcomeController#index as HTML + User Load (1.9ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendering welcome/index.html.erb within layouts/application + Rendered welcome/index.html.erb within layouts/application (5.4ms) + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered layouts/_header.html.erb (9.9ms) + Rendered layouts/_footer.html.erb (1.6ms) +Completed 200 OK in 174ms (Views: 169.8ms | ActiveRecord: 2.0ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:54:08 -0300 +Started GET "/users/new" for 127.0.0.1 at 2019-11-20 22:54:09 -0300 +Processing by UsersController#new as HTML + Rendering users/new.html.erb within layouts/application + Rendered layouts/_error_messages.html.erb (0.6ms) + Rendered users/new.html.erb within layouts/application (9.0ms) + User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered layouts/_header.html.erb (8.8ms) + Rendered layouts/_footer.html.erb (0.9ms) +Completed 200 OK in 115ms (Views: 113.1ms | ActiveRecord: 0.8ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:54:10 -0300 +Started POST "/users" for 127.0.0.1 at 2019-11-20 22:54:33 -0300 +Processing by UsersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"FLR9XMOZg2YF2gSrdWec6F1/b8P1enIEa6nEbko7sJIz7Li5TFXoMWEd6istOu0q4yCZnO+T9OqAEuBYd0adfQ==", "user"=>{"first_name"=>"João", "last_name"=>"Carvalho", "nickname"=>"joaoc", "birth_date"=>"1999-11-11", "email"=>"fernando.kga@gmail.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "country"=>"Brasil", "state"=>"SP", "city"=>"São Paulo"}, "commit"=>"Cadastrar"} +  (0.3ms) BEGIN + ↳ app/controllers/users_controller.rb:18 + User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2 [["email", "fernando.kga@gmail.com"], ["LIMIT", 1]] + ↳ app/controllers/users_controller.rb:18 + User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."nickname" = $1 LIMIT $2 [["nickname", "joaoc"], ["LIMIT", 1]] + ↳ app/controllers/users_controller.rb:18 +  (0.3ms) ROLLBACK + ↳ app/controllers/users_controller.rb:18 + Rendering users/new.html.erb within layouts/application + Rendered layouts/_error_messages.html.erb (1.0ms) + Rendered users/new.html.erb within layouts/application (9.3ms) + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered layouts/_header.html.erb (12.9ms) + Rendered layouts/_footer.html.erb (0.8ms) +Completed 200 OK in 565ms (Views: 175.5ms | ActiveRecord: 2.6ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:54:35 -0300 +Started POST "/users" for 127.0.0.1 at 2019-11-20 22:54:42 -0300 +Processing by UsersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"xjU9TqyMcyU0ebw5pcO7AhnG5WsnkUhtkweSKIdqG/vhbfirI0AYclC+Urn9nsrAp5kTND14zoN4vLYeuhc2FA==", "user"=>{"first_name"=>"João", "last_name"=>"Carvalho", "nickname"=>"joaoc", "birth_date"=>"1999-11-11", "email"=>"joaoc@gmail.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "country"=>"Brasil", "state"=>"SP", "city"=>"São Paulo"}, "commit"=>"Cadastrar"} +  (0.3ms) BEGIN + ↳ app/controllers/users_controller.rb:18 + User Exists (1.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2 [["email", "joaoc@gmail.com"], ["LIMIT", 1]] + ↳ app/controllers/users_controller.rb:18 + User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."nickname" = $1 LIMIT $2 [["nickname", "joaoc"], ["LIMIT", 1]] + ↳ app/controllers/users_controller.rb:18 + User Create (0.8ms) INSERT INTO "users" ("email", "first_name", "last_name", "password_digest", "birth_date", "created_at", "updated_at", "city", "state", "country", "nickname") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["email", "joaoc@gmail.com"], ["first_name", "João"], ["last_name", "Carvalho"], ["password_digest", "$2a$12$DyqGts1d8.37IfczFBcLyuG5qUrAkPROCaG2KsRALmNQTZ1UlM92G"], ["birth_date", "1999-11-11"], ["created_at", "2019-11-21 01:54:42.487458"], ["updated_at", "2019-11-21 01:54:42.487458"], ["city", "São Paulo"], ["state", "SP"], ["country", "Brasil"], ["nickname", "joaoc"]] + ↳ app/controllers/users_controller.rb:18 +  (15.3ms) COMMIT + ↳ app/controllers/users_controller.rb:18 +Redirected to http://localhost:3000/ +Completed 302 Found in 383ms (ActiveRecord: 18.5ms) + + +Started GET "/" for 127.0.0.1 at 2019-11-20 22:54:42 -0300 +Processing by WelcomeController#index as HTML + User Load (2.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendering welcome/index.html.erb within layouts/application + Rendered welcome/index.html.erb within layouts/application (4.0ms) + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered layouts/_header.html.erb (7.4ms) + Rendered layouts/_footer.html.erb (0.8ms) +Completed 200 OK in 125ms (Views: 118.0ms | ActiveRecord: 2.1ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:54:44 -0300 +Started GET "/entrar" for 127.0.0.1 at 2019-11-20 22:54:45 -0300 +Processing by SessionsController#new as HTML + User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendering sessions/new.html.erb within layouts/application + Rendered sessions/new.html.erb within layouts/application (6.3ms) + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered layouts/_header.html.erb (7.2ms) + Rendered layouts/_footer.html.erb (0.7ms) +Completed 200 OK in 114ms (Views: 111.1ms | ActiveRecord: 1.1ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:54:46 -0300 +Started POST "/entrar" for 127.0.0.1 at 2019-11-20 22:54:50 -0300 +Processing by SessionsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"9xDp+FeBaJULb3slhJk6W5x53+4kozKbkJfOcj+KH53QSCwd2E0Dwm+olaXcxEuZIiYpsT5KtHV7LOpEAvcycg==", "session"=>{"email"=>"joaoc@gmail.com", "password"=>"[FILTERED]"}, "commit"=>"Entrar"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2 [["email", "joaoc@gmail.com"], ["LIMIT", 1]] + ↳ app/controllers/sessions_controller.rb:7 + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."nickname" = $1 LIMIT $2 [["nickname", "joaoc@gmail.com"], ["LIMIT", 1]] + ↳ app/controllers/sessions_controller.rb:8 +Redirected to http://localhost:3000/users/2 +Completed 302 Found in 368ms (ActiveRecord: 1.0ms) + + +Started GET "/users/2" for 127.0.0.1 at 2019-11-20 22:54:50 -0300 +Processing by UsersController#show as HTML + Parameters: {"id"=>"2"} + Rendering users/show.html.erb within layouts/application + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered users/show.html.erb within layouts/application (5.2ms) + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + FavoriteSpotted Exists (0.7ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (8.3ms) + Rendered layouts/_footer.html.erb (0.8ms) +Completed 200 OK in 115ms (Views: 113.0ms | ActiveRecord: 1.2ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:54:51 -0300 +Started GET "/colleges" for 127.0.0.1 at 2019-11-20 22:54:53 -0300 +Processing by CollegesController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendering colleges/index.html.erb within layouts/application + College Load (0.6ms) SELECT "colleges".* FROM "colleges" + ↳ app/views/colleges/index.html.erb:6 + College Exists (3.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 2], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Administrator Exists (1.4ms) SELECT 1 AS one FROM "administrators" WHERE "administrators"."user_id" = $1 AND "administrators"."college_id" = $2 LIMIT $3 [["user_id", 2], ["college_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:36 + FavoriteCollege Exists (0.7ms) SELECT 1 AS one FROM "favorite_colleges" WHERE "favorite_colleges"."user_id" = $1 AND "favorite_colleges"."college_id" = $2 LIMIT $3 [["user_id", 2], ["college_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:13 + CACHE College Exists (0.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 2], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + CACHE Administrator Exists (0.0ms) SELECT 1 AS one FROM "administrators" WHERE "administrators"."user_id" = $1 AND "administrators"."college_id" = $2 LIMIT $3 [["user_id", 2], ["college_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:36 + College Exists (1.1ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 2], ["id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Administrator Exists (0.7ms) SELECT 1 AS one FROM "administrators" WHERE "administrators"."user_id" = $1 AND "administrators"."college_id" = $2 LIMIT $3 [["user_id", 2], ["college_id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:36 + FavoriteCollege Exists (0.8ms) SELECT 1 AS one FROM "favorite_colleges" WHERE "favorite_colleges"."user_id" = $1 AND "favorite_colleges"."college_id" = $2 LIMIT $3 [["user_id", 2], ["college_id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:13 + CACHE College Exists (0.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 2], ["id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + CACHE Administrator Exists (0.0ms) SELECT 1 AS one FROM "administrators" WHERE "administrators"."user_id" = $1 AND "administrators"."college_id" = $2 LIMIT $3 [["user_id", 2], ["college_id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:36 + Rendered colleges/index.html.erb within layouts/application (73.2ms) + FavoriteSpotted Exists (0.9ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (7.1ms) + Rendered layouts/_footer.html.erb (0.8ms) +Completed 200 OK in 178ms (Views: 163.3ms | ActiveRecord: 12.0ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:54:54 -0300 +Started PUT "/colleges/1/favorite?type=favorite" for 127.0.0.1 at 2019-11-20 22:54:56 -0300 +Processing by CollegesController#favorite as HTML + Parameters: {"authenticity_token"=>"g5fgHqj6oUGJ08ig+/Xp8xXqXh3CWDug/8gSQI5go8mkzyX7JzbKFu0UJiCjqJgxq7WoQtixvU4UczZ2sx2OJg==", "type"=>"favorite", "id"=>"1"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.5ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/colleges_controller.rb:37 +  (0.2ms) BEGIN + ↳ app/controllers/colleges_controller.rb:40 + FavoriteCollege Create (1.2ms) INSERT INTO "favorite_colleges" ("college_id", "user_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["college_id", 1], ["user_id", 2], ["created_at", "2019-11-21 01:54:56.064255"], ["updated_at", "2019-11-21 01:54:56.064255"]] + ↳ app/controllers/colleges_controller.rb:40 +  (25.3ms) COMMIT + ↳ app/controllers/colleges_controller.rb:40 +Redirected to http://localhost:3000/colleges +Completed 302 Found in 35ms (ActiveRecord: 27.7ms) + + +Started GET "/colleges" for 127.0.0.1 at 2019-11-20 22:54:56 -0300 +Processing by CollegesController#index as HTML + User Load (1.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendering colleges/index.html.erb within layouts/application + College Load (4.1ms) SELECT "colleges".* FROM "colleges" + ↳ app/views/colleges/index.html.erb:6 + College Exists (1.4ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 2], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Administrator Exists (1.0ms) SELECT 1 AS one FROM "administrators" WHERE "administrators"."user_id" = $1 AND "administrators"."college_id" = $2 LIMIT $3 [["user_id", 2], ["college_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:36 + FavoriteCollege Exists (0.6ms) SELECT 1 AS one FROM "favorite_colleges" WHERE "favorite_colleges"."user_id" = $1 AND "favorite_colleges"."college_id" = $2 LIMIT $3 [["user_id", 2], ["college_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:13 + CACHE College Exists (0.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 2], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + CACHE Administrator Exists (0.0ms) SELECT 1 AS one FROM "administrators" WHERE "administrators"."user_id" = $1 AND "administrators"."college_id" = $2 LIMIT $3 [["user_id", 2], ["college_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:36 + College Exists (1.3ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 2], ["id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Administrator Exists (0.9ms) SELECT 1 AS one FROM "administrators" WHERE "administrators"."user_id" = $1 AND "administrators"."college_id" = $2 LIMIT $3 [["user_id", 2], ["college_id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:36 + FavoriteCollege Exists (0.6ms) SELECT 1 AS one FROM "favorite_colleges" WHERE "favorite_colleges"."user_id" = $1 AND "favorite_colleges"."college_id" = $2 LIMIT $3 [["user_id", 2], ["college_id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:13 + CACHE College Exists (0.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 2], ["id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + CACHE Administrator Exists (0.0ms) SELECT 1 AS one FROM "administrators" WHERE "administrators"."user_id" = $1 AND "administrators"."college_id" = $2 LIMIT $3 [["user_id", 2], ["college_id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:36 + Rendered colleges/index.html.erb within layouts/application (64.0ms) + FavoriteSpotted Exists (0.6ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (6.4ms) + Rendered layouts/_footer.html.erb (1.8ms) +Completed 200 OK in 184ms (Views: 169.8ms | ActiveRecord: 11.9ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:54:57 -0300 +Started GET "/colleges/1/verify_permission" for 127.0.0.1 at 2019-11-20 22:54:59 -0300 +Processing by CollegeWhitelistsController#verify_permission as HTML + Parameters: {"college_id"=>"1"} + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.4ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:115 + CollegeWhitelist Load (1.2ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."user_id" = $1 AND "college_whitelists"."college_id" = $2 LIMIT $3 [["user_id", 2], ["college_id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:10 + Rendering college_whitelists/new.html.erb within layouts/application + Rendered college_whitelists/_form.html.erb (19.2ms) + Rendered college_whitelists/new.html.erb within layouts/application (29.2ms) + FavoriteSpotted Exists (3.4ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (10.3ms) + Rendered layouts/_footer.html.erb (0.8ms) +Completed 200 OK in 148ms (Views: 135.1ms | ActiveRecord: 5.8ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:55:00 -0300 +Started POST "/colleges/1/college_whitelists" for 127.0.0.1 at 2019-11-20 22:55:01 -0300 +Processing by CollegeWhitelistsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"TFYMk2Y3reFJG5Y55MJV1CRFbFEEc7uMWTYILdlc7e9rDsl26fvGti3ceLm8nyQWmhqaDh6aPWKyjSwb5CHAAA==", "college_whitelist"=>{"status"=>"pending"}, "commit"=>"Pedir permissão", "college_id"=>"1"} + User Load (1.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.5ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:115 +  (0.4ms) BEGIN + ↳ app/controllers/college_whitelists_controller.rb:58 + CollegeWhitelist Create (0.8ms) INSERT INTO "college_whitelists" ("status", "created_at", "updated_at", "user_id", "college_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["created_at", "2019-11-21 01:55:01.595936"], ["updated_at", "2019-11-21 01:55:01.595936"], ["user_id", 2], ["college_id", 1]] + ↳ app/controllers/college_whitelists_controller.rb:58 +  (55.9ms) COMMIT + ↳ app/controllers/college_whitelists_controller.rb:58 + Rendering college_whitelists/pending.html.erb within layouts/application + Rendered college_whitelists/pending.html.erb within layouts/application (0.8ms) + FavoriteSpotted Exists (0.6ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (7.6ms) + Rendered layouts/_footer.html.erb (0.8ms) +Completed 200 OK in 217ms (Views: 149.7ms | ActiveRecord: 59.8ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:55:02 -0300 +Started DELETE "/sair" for 127.0.0.1 at 2019-11-20 22:55:05 -0300 +Processing by SessionsController#destroy as HTML + Parameters: {"authenticity_token"=>"dV++y3U4oN1zUGmvtPAA5dMnsDqex/8minb0aYBjNSdSB3su+vTLiheXhy/srXEnbXhGZYQuechhzdBfvR4YyA=="} +Redirected to http://localhost:3000/entrar +Completed 302 Found in 2ms (ActiveRecord: 0.0ms) + + +Started GET "/entrar" for 127.0.0.1 at 2019-11-20 22:55:05 -0300 +Processing by SessionsController#new as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendering sessions/new.html.erb within layouts/application + Rendered sessions/new.html.erb within layouts/application (7.3ms) + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered layouts/_header.html.erb (13.6ms) + Rendered layouts/_footer.html.erb (0.8ms) +Completed 200 OK in 135ms (Views: 130.4ms | ActiveRecord: 0.6ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:55:07 -0300 +Started POST "/entrar" for 127.0.0.1 at 2019-11-20 22:55:08 -0300 +Processing by SessionsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"RFm6vOp1b4VSlpjbUNFY44rZ783BRAulFjSxcQlH++djAX9ZZbkE0jZRdlsIjCkhNIYZktutjUv9j5VHNDrWCA==", "session"=>{"email"=>"fernando.kga@gmail.com", "password"=>"[FILTERED]"}, "commit"=>"Entrar"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2 [["email", "fernando.kga@gmail.com"], ["LIMIT", 1]] + ↳ app/controllers/sessions_controller.rb:7 + User Load (1.5ms) SELECT "users".* FROM "users" WHERE "users"."nickname" = $1 LIMIT $2 [["nickname", "fernando.kga@gmail.com"], ["LIMIT", 1]] + ↳ app/controllers/sessions_controller.rb:8 +Redirected to http://localhost:3000/users/1 +Completed 302 Found in 360ms (ActiveRecord: 2.1ms) + + +Started GET "/users/1" for 127.0.0.1 at 2019-11-20 22:55:09 -0300 +Processing by UsersController#show as HTML + Parameters: {"id"=>"1"} + Rendering users/show.html.erb within layouts/application + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered users/show.html.erb within layouts/application (5.3ms) + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + FavoriteSpotted Exists (1.0ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (8.6ms) + Rendered layouts/_footer.html.erb (0.8ms) +Completed 200 OK in 140ms (Views: 136.8ms | ActiveRecord: 1.6ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:55:10 -0300 +Started GET "/favorite_colleges" for 127.0.0.1 at 2019-11-20 22:55:32 -0300 +Processing by FavoriteCollegesController#show as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendering favorite_colleges/show.html.erb within layouts/application + FavoriteCollege Load (1.2ms) SELECT "favorite_colleges".* FROM "favorite_colleges" WHERE "favorite_colleges"."user_id" = $1 [["user_id", 1]] + ↳ app/views/favorite_colleges/show.html.erb:6 + College Load (0.5ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/favorite_colleges/show.html.erb:12 + College Exists (0.9ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + CACHE College Exists (0.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/views/favorite_colleges/show.html.erb:12 + College Exists (0.7ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + CACHE College Exists (0.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendered favorite_colleges/show.html.erb within layouts/application (28.6ms) + FavoriteSpotted Exists (0.6ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (6.5ms) + Rendered layouts/_footer.html.erb (0.8ms) +Completed 200 OK in 139ms (Views: 128.1ms | ActiveRecord: 5.1ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:55:34 -0300 +Started GET "/colleges/1/college_whitelists" for 127.0.0.1 at 2019-11-20 22:55:35 -0300 +Processing by CollegeWhitelistsController#index as HTML + Parameters: {"college_id"=>"1"} + User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (1.9ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:115 + College Exists (3.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendering college_whitelists/index.html.erb within layouts/application + CollegeWhitelist Load (0.7ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1 AND "college_whitelists"."user_id" = $2 [["college_id", 1], ["user_id", 1]] + ↳ app/views/college_whitelists/index.html.erb:18 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:48 + College Load (0.4ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:49 + College Exists (0.6ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:46 + Rendered college_whitelists/index.html.erb within layouts/application (8.5ms) + FavoriteSpotted Exists (0.6ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (7.4ms) + Rendered layouts/_footer.html.erb (1.1ms) +Completed 200 OK in 155ms (Views: 142.1ms | ActiveRecord: 8.0ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:55:36 -0300 +Started GET "/colleges/1/college_whitelists" for 127.0.0.1 at 2019-11-20 22:59:14 -0300 +Processing by CollegeWhitelistsController#index as HTML + Parameters: {"college_id"=>"1"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.4ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:115 + College Exists (0.7ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendering college_whitelists/index.html.erb within layouts/application + CollegeWhitelist Load (0.4ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1 [["college_id", 1]] + ↳ app/views/college_whitelists/index.html.erb:18 + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:21 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:24 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:48 + CACHE College Load (0.0ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:49 + College Exists (0.7ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:46 + Rendered college_whitelists/index.html.erb within layouts/application (35.7ms) + FavoriteSpotted Exists (0.5ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (13.9ms) + Rendered layouts/_footer.html.erb (1.1ms) +Completed 200 OK in 244ms (Views: 140.1ms | ActiveRecord: 26.0ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 22:59:16 -0300 +Started GET "/users/1" for 127.0.0.1 at 2019-11-20 23:04:24 -0300 +Processing by UsersController#show as HTML + Parameters: {"id"=>"1"} + Rendering users/show.html.erb within layouts/application + User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered users/show.html.erb within layouts/application (9.3ms) + CACHE User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + FavoriteSpotted Exists (0.9ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (8.3ms) + Rendered layouts/_footer.html.erb (0.8ms) +Completed 200 OK in 158ms (Views: 154.3ms | ActiveRecord: 2.3ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 23:04:26 -0300 +Started GET "/colleges" for 127.0.0.1 at 2019-11-20 23:04:28 -0300 +Processing by CollegesController#index as HTML + User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendering colleges/index.html.erb within layouts/application + College Load (1.9ms) SELECT "colleges".* FROM "colleges" + ↳ app/views/colleges/index.html.erb:6 + College Exists (0.7ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + CACHE College Exists (0.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + College Exists (0.6ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + CACHE College Exists (0.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendered colleges/index.html.erb within layouts/application (16.0ms) + FavoriteSpotted Exists (0.6ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (8.6ms) + Rendered layouts/_footer.html.erb (0.9ms) +Completed 200 OK in 163ms (Views: 155.2ms | ActiveRecord: 4.8ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 23:04:29 -0300 +Started GET "/users/1" for 127.0.0.1 at 2019-11-20 23:04:37 -0300 +Processing by UsersController#show as HTML + Parameters: {"id"=>"1"} + Rendering users/show.html.erb within layouts/application + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered users/show.html.erb within layouts/application (8.6ms) + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + FavoriteSpotted Exists (7.7ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (16.4ms) + Rendered layouts/_footer.html.erb (0.9ms) +Completed 200 OK in 143ms (Views: 133.4ms | ActiveRecord: 8.3ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 23:04:38 -0300 +Started GET "/favorite_colleges" for 127.0.0.1 at 2019-11-20 23:04:39 -0300 +Processing by FavoriteCollegesController#show as HTML + User Load (2.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendering favorite_colleges/show.html.erb within layouts/application + FavoriteCollege Load (1.2ms) SELECT "favorite_colleges".* FROM "favorite_colleges" WHERE "favorite_colleges"."user_id" = $1 [["user_id", 1]] + ↳ app/views/favorite_colleges/show.html.erb:6 + College Load (0.5ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/favorite_colleges/show.html.erb:12 + College Exists (1.2ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + CACHE College Exists (0.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/views/favorite_colleges/show.html.erb:12 + College Exists (0.6ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + CACHE College Exists (0.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendered favorite_colleges/show.html.erb within layouts/application (45.1ms) + FavoriteSpotted Exists (0.8ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (8.6ms) + Rendered layouts/_footer.html.erb (0.8ms) +Completed 200 OK in 198ms (Views: 167.9ms | ActiveRecord: 22.2ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 23:04:40 -0300 +Started GET "/users/1/edit" for 127.0.0.1 at 2019-11-20 23:04:42 -0300 +Processing by UsersController#edit as HTML + Parameters: {"authenticity_token"=>"iYs26T1eUg+At6cUhTqBbPx7kE5xeBOkNugzvrxx9+2u0/MMspI5WORwSZTdZ/CuQiRmEWuRlUrdUxeIgQzaAg==", "id"=>"1"} + User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/users_controller.rb:33 + Rendering users/edit.html.erb within layouts/application + Rendered layouts/_error_messages.html.erb (2.2ms) + Rendered users/edit.html.erb within layouts/application (11.7ms) + FavoriteSpotted Exists (0.6ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (8.1ms) + Rendered layouts/_footer.html.erb (0.7ms) +Completed 200 OK in 141ms (Views: 114.4ms | ActiveRecord: 2.3ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 23:04:43 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 23:04:43 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 23:04:44 -0300 +Started GET "/users/1" for 127.0.0.1 at 2019-11-20 23:04:46 -0300 +Processing by UsersController#show as HTML + Parameters: {"id"=>"1"} + Rendering users/show.html.erb within layouts/application + User Load (2.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered users/show.html.erb within layouts/application (14.2ms) + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + FavoriteSpotted Exists (0.7ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (9.3ms) + Rendered layouts/_footer.html.erb (1.2ms) +Completed 200 OK in 190ms (Views: 185.3ms | ActiveRecord: 3.4ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 23:04:47 -0300 +Started POST "/users/change_menu_preference?type=circle" for 127.0.0.1 at 2019-11-20 23:04:52 -0300 +Processing by UsersController#change_menu_preference as HTML + Parameters: {"authenticity_token"=>"KSxUMeeN5Z0B/SKBoAScRLO+7FvGNjaIuvOqWv9vbmcOdJHUaEGOymU6zAH4We2GDeEaBNzfsGZRSI5swhJDiA==", "type"=>"circle"} + User Load (3.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + User Update (25.5ms) UPDATE "users" SET "menu_preference" = $1 WHERE "users"."id" = $2 [["menu_preference", "circle"], ["id", 1]] + ↳ app/controllers/users_controller.rb:61 +Redirected to http://localhost:3000/users/1 +Completed 302 Found in 32ms (ActiveRecord: 29.2ms) + + +Started GET "/users/1" for 127.0.0.1 at 2019-11-20 23:04:52 -0300 +Processing by UsersController#show as HTML + Parameters: {"id"=>"1"} + Rendering users/show.html.erb within layouts/application + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered users/show.html.erb within layouts/application (5.5ms) + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + FavoriteSpotted Exists (0.5ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (7.8ms) + Rendered layouts/_footer.html.erb (0.8ms) +Completed 200 OK in 107ms (Views: 104.6ms | ActiveRecord: 1.0ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 23:04:53 -0300 +Started POST "/users/change_menu_preference?type=list" for 127.0.0.1 at 2019-11-20 23:04:59 -0300 +Processing by UsersController#change_menu_preference as HTML + Parameters: {"authenticity_token"=>"0nNB0tNPthOzG6Ido/epk+WJvzNMTStdHTO6XPFqs2n1K4Q3XIPdRNfcTJ37qthRW9ZJbFakrbP2iJ5qzBeehg==", "type"=>"list"} + User Load (1.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + User Update (43.6ms) UPDATE "users" SET "menu_preference" = $1 WHERE "users"."id" = $2 [["menu_preference", "list"], ["id", 1]] + ↳ app/controllers/users_controller.rb:65 +Redirected to http://localhost:3000/users/1 +Completed 302 Found in 48ms (ActiveRecord: 45.2ms) + + +Started GET "/users/1" for 127.0.0.1 at 2019-11-20 23:04:59 -0300 +Processing by UsersController#show as HTML + Parameters: {"id"=>"1"} + Rendering users/show.html.erb within layouts/application + User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered users/show.html.erb within layouts/application (8.1ms) + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + FavoriteSpotted Exists (0.6ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (8.8ms) + Rendered layouts/_footer.html.erb (1.2ms) +Completed 200 OK in 138ms (Views: 134.9ms | ActiveRecord: 1.6ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 23:05:01 -0300 +Started GET "/favorite_colleges" for 127.0.0.1 at 2019-11-20 23:21:55 -0300 +Processing by FavoriteCollegesController#show as HTML + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendering favorite_colleges/show.html.erb within layouts/application + FavoriteCollege Load (0.9ms) SELECT "favorite_colleges".* FROM "favorite_colleges" WHERE "favorite_colleges"."user_id" = $1 [["user_id", 1]] + ↳ app/views/favorite_colleges/show.html.erb:6 + College Load (0.8ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/favorite_colleges/show.html.erb:12 + College Exists (1.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + CACHE College Exists (0.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + College Load (1.9ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/views/favorite_colleges/show.html.erb:12 + College Exists (1.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + CACHE College Exists (0.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendered favorite_colleges/show.html.erb within layouts/application (36.9ms) + FavoriteSpotted Exists (0.8ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (11.9ms) + Rendered layouts/_footer.html.erb (0.9ms) +Completed 200 OK in 213ms (Views: 200.7ms | ActiveRecord: 7.5ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 23:21:57 -0300 +Started GET "/colleges/2/college_whitelists" for 127.0.0.1 at 2019-11-20 23:21:57 -0300 +Processing by CollegeWhitelistsController#index as HTML + Parameters: {"college_id"=>"2"} + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:115 + College Exists (0.6ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendering college_whitelists/index.html.erb within layouts/application + CollegeWhitelist Load (1.0ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1 [["college_id", 2]] + ↳ app/views/college_whitelists/index.html.erb:18 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:48 + College Load (0.9ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:49 + College Exists (1.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:46 + Rendered college_whitelists/index.html.erb within layouts/application (15.4ms) + FavoriteSpotted Exists (0.6ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (9.0ms) + Rendered layouts/_footer.html.erb (1.5ms) +Completed 200 OK in 143ms (Views: 130.5ms | ActiveRecord: 5.4ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 23:21:58 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 23:21:59 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 23:22:02 -0300 +Started GET "/colleges/1/college_whitelists" for 127.0.0.1 at 2019-11-20 23:22:03 -0300 +Processing by CollegeWhitelistsController#index as HTML + Parameters: {"college_id"=>"1"} + User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.7ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:115 + College Exists (1.9ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendering college_whitelists/index.html.erb within layouts/application + CollegeWhitelist Load (0.6ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1 [["college_id", 1]] + ↳ app/views/college_whitelists/index.html.erb:18 + User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:21 + College Load (0.5ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:24 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:48 + CACHE College Load (0.0ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:49 + College Exists (0.7ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:46 + Rendered college_whitelists/index.html.erb within layouts/application (18.2ms) + FavoriteSpotted Exists (0.7ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (7.1ms) + Rendered layouts/_footer.html.erb (1.8ms) +Completed 200 OK in 219ms (Views: 199.0ms | ActiveRecord: 6.7ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 23:22:04 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-11-20 23:22:11 -0300 +Started GET "/" for 127.0.0.1 at 2019-12-04 00:10:42 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 00:10:43 -0300 +  (79.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /home/fernandok/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +  (128.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /home/fernandok/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by WelcomeController#index as HTML + User Load (21.8ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendering welcome/index.html.erb within layouts/application + Rendered welcome/index.html.erb within layouts/application (797.0ms) + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered layouts/_header.html.erb (7.3ms) + Rendered layouts/_footer.html.erb (0.7ms) +Completed 200 OK in 2457ms (Views: 2049.7ms | ActiveRecord: 132.2ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 00:10:50 -0300 +Started GET "/entrar" for 127.0.0.1 at 2019-12-04 00:10:51 -0300 +Processing by SessionsController#new as HTML + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendering sessions/new.html.erb within layouts/application + Rendered sessions/new.html.erb within layouts/application (9.5ms) + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered layouts/_header.html.erb (8.2ms) + Rendered layouts/_footer.html.erb (1.9ms) +Completed 200 OK in 167ms (Views: 160.5ms | ActiveRecord: 3.3ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 00:10:52 -0300 +Started POST "/entrar" for 127.0.0.1 at 2019-12-04 00:10:55 -0300 +Processing by SessionsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"GPF6ipdPBGrQIgDVHT3XZVRJObwuDByF60VBx6txnZG58h79OtK/8wb1UBB4YsTeZ3hJEYEvg3qyoAWXx83Oiw==", "session"=>{"email"=>"fernando.kga@gmail.com", "password"=>"[FILTERED]"}, "commit"=>"Entrar"} + User Load (28.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2 [["email", "fernando.kga@gmail.com"], ["LIMIT", 1]] + ↳ app/controllers/sessions_controller.rb:7 + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."nickname" = $1 LIMIT $2 [["nickname", "fernando.kga@gmail.com"], ["LIMIT", 1]] + ↳ app/controllers/sessions_controller.rb:8 +Redirected to http://localhost:3000/users/1 +Completed 302 Found in 592ms (ActiveRecord: 192.8ms) + + +Started GET "/users/1" for 127.0.0.1 at 2019-12-04 00:10:55 -0300 +Processing by UsersController#show as HTML + Parameters: {"id"=>"1"} + Rendering users/show.html.erb within layouts/application + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered users/show.html.erb within layouts/application (7.4ms) + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + FavoriteSpotted Exists (16.0ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (35.0ms) + Rendered layouts/_footer.html.erb (2.4ms) +Completed 200 OK in 134ms (Views: 111.6ms | ActiveRecord: 21.1ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 00:10:57 -0300 +Started GET "/favorite_colleges" for 127.0.0.1 at 2019-12-04 00:10:58 -0300 +Processing by FavoriteCollegesController#show as HTML + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendering favorite_colleges/show.html.erb within layouts/application + FavoriteCollege Load (85.0ms) SELECT "favorite_colleges".* FROM "favorite_colleges" WHERE "favorite_colleges"."user_id" = $1 [["user_id", 1]] + ↳ app/views/favorite_colleges/show.html.erb:6 + College Load (63.8ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/favorite_colleges/show.html.erb:12 + College Exists (0.8ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + CACHE College Exists (0.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + College Load (1.2ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/views/favorite_colleges/show.html.erb:12 + College Exists (0.8ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + CACHE College Exists (0.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendered favorite_colleges/show.html.erb within layouts/application (230.0ms) + FavoriteSpotted Exists (0.6ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (56.4ms) + Rendered layouts/_footer.html.erb (0.7ms) +Completed 200 OK in 462ms (Views: 288.4ms | ActiveRecord: 165.0ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 00:11:01 -0300 +Started GET "/colleges/1/college_whitelists" for 127.0.0.1 at 2019-12-04 00:11:02 -0300 +Processing by CollegeWhitelistsController#index as HTML + Parameters: {"college_id"=>"1"} + User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:116 + College Exists (0.6ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendering college_whitelists/index.html.erb within layouts/application + CollegeWhitelist Load (154.6ms) SELECT "college_whitelists".* FROM "college_whitelists" + ↳ app/views/college_whitelists/index.html.erb:18 + User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:21 + College Load (0.7ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:25 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:49 + CACHE College Load (0.0ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:50 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:49 + College Load (0.7ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:50 + Rendered college_whitelists/index.html.erb within layouts/application (202.4ms) + FavoriteSpotted Exists (0.7ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (7.4ms) + Rendered layouts/_footer.html.erb (0.8ms) +Completed 200 OK in 323ms (Views: 149.6ms | ActiveRecord: 165.0ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 00:11:03 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 00:11:33 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"sHN7H1cyq39Btm5i1NEmzyENEu45GCVPIK+xnNPwVOkRcB9o+q8Q5pdhPqexjjV0EjxiQ5Y7urB5SvXMv0wH8w==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:116 + CollegeWhitelist Load (0.5ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:112 + CACHE CollegeWhitelist Load (0.0ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +  (0.3ms) BEGIN + ↳ app/controllers/college_whitelists_controller.rb:98 + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:98 + College Load (0.4ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:98 +  (0.6ms) ROLLBACK + ↳ app/controllers/college_whitelists_controller.rb:98 + Rendering college_whitelists/index.html.erb within layouts/application + Rendered college_whitelists/index.html.erb within layouts/application (138.6ms) +Completed 500 Internal Server Error in 742ms (ActiveRecord: 3.7ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 15:
+ 16:
+ 17: + 18: <% @college_whitelists.each do |college_whitelist| %> + 19: <% if (college_whitelist.status == 'pending') %> + 20: + 21: + +app/views/college_whitelists/index.html.erb:18:in `_app_views_college_whitelists_index_html_erb___3775531201234151436_70213835829920' +app/controllers/college_whitelists_controller.rb:103:in `block (2 levels) in update' +app/controllers/college_whitelists_controller.rb:97:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 00:11:38 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 00:12:36 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 00:12:39 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"sHN7H1cyq39Btm5i1NEmzyENEu45GCVPIK+xnNPwVOkRcB9o+q8Q5pdhPqexjjV0EjxiQ5Y7urB5SvXMv0wH8w==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:116 + CollegeWhitelist Load (0.8ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +  (0.3ms) BEGIN + ↳ app/controllers/college_whitelists_controller.rb:98 + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:98 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:98 +  (0.4ms) ROLLBACK + ↳ app/controllers/college_whitelists_controller.rb:98 + Rendering college_whitelists/index.html.erb within layouts/application + Rendered college_whitelists/index.html.erb within layouts/application (2.4ms) +Completed 500 Internal Server Error in 123ms (ActiveRecord: 26.2ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 15: + 16:
+ 17:
<%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %>
+ 18: <% @college_whitelists.each do |college_whitelist| %> + 19: <% if (college_whitelist.status == 'pending') %> + 20: + 21: + +app/views/college_whitelists/index.html.erb:18:in `_app_views_college_whitelists_index_html_erb___3775531201234151436_70213834425540' +app/controllers/college_whitelists_controller.rb:103:in `block (2 levels) in update' +app/controllers/college_whitelists_controller.rb:97:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 00:12:40 -0300 +Started PUT "/__web_console/repl_sessions/d02c46ebfe5b957ddfbd19c80c268d34" for 127.0.0.1 at 2019-12-04 00:12:47 -0300 +Started PUT "/__web_console/repl_sessions/d02c46ebfe5b957ddfbd19c80c268d34" for 127.0.0.1 at 2019-12-04 00:12:48 -0300 +Started GET "/" for 127.0.0.1 at 2019-12-04 10:15:00 -0300 +  (47.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /home/fernandok/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by WelcomeController#index as HTML + User Load (9.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendering welcome/index.html.erb within layouts/application +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:15:01 -0300 + Rendered welcome/index.html.erb within layouts/application (984.6ms) + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered layouts/_header.html.erb (6.1ms) + Rendered layouts/_footer.html.erb (0.7ms) +Completed 200 OK in 1835ms (Views: 1763.9ms | ActiveRecord: 35.0ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:15:05 -0300 +Started GET "/entrar" for 127.0.0.1 at 2019-12-04 10:15:06 -0300 +Processing by SessionsController#new as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendering sessions/new.html.erb within layouts/application + Rendered sessions/new.html.erb within layouts/application (8.3ms) + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1 [["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered layouts/_header.html.erb (6.7ms) + Rendered layouts/_footer.html.erb (0.7ms) +Completed 200 OK in 114ms (Views: 108.6ms | ActiveRecord: 1.0ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:15:07 -0300 +Started POST "/entrar" for 127.0.0.1 at 2019-12-04 10:15:14 -0300 +Processing by SessionsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"aZhkJ73uwlp7eiwV5RNlWAFYxv1FhqKoNWW/x2m2AkGAMz15hVh1ZA1DCD5OK1LiM2yQoPX0cjQVSazCb4lJ0w==", "session"=>{"email"=>"fernando.kga@gmail.com", "password"=>"[FILTERED]"}, "commit"=>"Entrar"} + User Load (52.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2 [["email", "fernando.kga@gmail.com"], ["LIMIT", 1]] + ↳ app/controllers/sessions_controller.rb:7 + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."nickname" = $1 LIMIT $2 [["nickname", "fernando.kga@gmail.com"], ["LIMIT", 1]] + ↳ app/controllers/sessions_controller.rb:8 +Redirected to http://localhost:3000/users/1 +Completed 302 Found in 547ms (ActiveRecord: 150.6ms) + + +Started GET "/users/1" for 127.0.0.1 at 2019-12-04 10:15:15 -0300 +Processing by UsersController#show as HTML + Parameters: {"id"=>"1"} + Rendering users/show.html.erb within layouts/application + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendered users/show.html.erb within layouts/application (8.5ms) + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + FavoriteSpotted Exists (13.2ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (28.3ms) + Rendered layouts/_footer.html.erb (0.8ms) +Completed 200 OK in 156ms (Views: 134.5ms | ActiveRecord: 17.5ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:15:16 -0300 +Started GET "/favorite_colleges" for 127.0.0.1 at 2019-12-04 10:15:17 -0300 +Processing by FavoriteCollegesController#show as HTML + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + Rendering favorite_colleges/show.html.erb within layouts/application + FavoriteCollege Load (76.6ms) SELECT "favorite_colleges".* FROM "favorite_colleges" WHERE "favorite_colleges"."user_id" = $1 [["user_id", 1]] + ↳ app/views/favorite_colleges/show.html.erb:6 + College Load (39.9ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/favorite_colleges/show.html.erb:12 + College Exists (0.7ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + CACHE College Exists (0.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + College Load (0.7ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/views/favorite_colleges/show.html.erb:12 + College Exists (0.6ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + CACHE College Exists (0.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 2], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendered favorite_colleges/show.html.erb within layouts/application (211.0ms) + FavoriteSpotted Exists (0.6ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (9.1ms) + Rendered layouts/_footer.html.erb (0.7ms) +Completed 200 OK in 386ms (Views: 248.5ms | ActiveRecord: 129.8ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:15:19 -0300 +Started GET "/colleges/1/college_whitelists" for 127.0.0.1 at 2019-12-04 10:15:20 -0300 +Processing by CollegeWhitelistsController#index as HTML + Parameters: {"college_id"=>"1"} + User Load (1.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (1.8ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:116 + College Exists (0.7ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendering college_whitelists/index.html.erb within layouts/application + CollegeWhitelist Load (31.4ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1 [["college_id", 1]] + ↳ app/views/college_whitelists/index.html.erb:18 + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:21 + College Load (1.4ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:25 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:49 + CACHE College Load (0.0ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:50 + College Exists (0.7ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:46 + Rendered college_whitelists/index.html.erb within layouts/application (118.6ms) + FavoriteSpotted Exists (0.7ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (8.8ms) + Rendered layouts/_footer.html.erb (0.7ms) +Completed 200 OK in 256ms (Views: 196.1ms | ActiveRecord: 45.4ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:15:21 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 10:15:36 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"1IBvh9kZD9G1mxSAZhJSuV3lEEkOxaqN7Axr8cLEvQQ9KzbZ4a+478OiMKvNKmUDb9FGFL63ehHMIHj0xPv2lg==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (1.0ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:116 + CollegeWhitelist Load (0.5ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +  (0.2ms) BEGIN + ↳ app/controllers/college_whitelists_controller.rb:98 + User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:98 + College Load (0.8ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:98 +  (0.3ms) ROLLBACK + ↳ app/controllers/college_whitelists_controller.rb:98 + Rendering college_whitelists/index.html.erb within layouts/application + Rendered college_whitelists/index.html.erb within layouts/application (16.0ms) +Completed 500 Internal Server Error in 61ms (ActiveRecord: 4.4ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 15: + 16:
+ 17:
<%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %>
+ 18: <% @college_whitelists.each do |college_whitelist| %> + 19: <% if (college_whitelist.status == 'pending') %> + 20: + 21: + +app/views/college_whitelists/index.html.erb:18:in `_app_views_college_whitelists_index_html_erb___1265514627900625378_70291724758380' +app/controllers/college_whitelists_controller.rb:103:in `block (2 levels) in update' +app/controllers/college_whitelists_controller.rb:97:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:15:37 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:16:22 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 10:16:23 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"1IBvh9kZD9G1mxSAZhJSuV3lEEkOxaqN7Axr8cLEvQQ9KzbZ4a+478OiMKvNKmUDb9FGFL63ehHMIHj0xPv2lg==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.5ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:117 + CollegeWhitelist Load (0.6ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:97 +  (0.3ms) BEGIN + ↳ app/controllers/college_whitelists_controller.rb:99 + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:99 + College Load (0.5ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:99 +  (0.4ms) ROLLBACK + ↳ app/controllers/college_whitelists_controller.rb:99 + Rendering college_whitelists/index.html.erb within layouts/application + Rendered college_whitelists/index.html.erb within layouts/application (2.7ms) +Completed 500 Internal Server Error in 145ms (ActiveRecord: 21.4ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 15: + 16:
+ 17:
<%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %>
+ 18: <% @college_whitelists.each do |college_whitelist| %> + 19: <% if (college_whitelist.status == 'pending') %> + 20: + 21: + +app/views/college_whitelists/index.html.erb:18:in `_app_views_college_whitelists_index_html_erb___1265514627900625378_70291724605920' +app/controllers/college_whitelists_controller.rb:104:in `block (2 levels) in update' +app/controllers/college_whitelists_controller.rb:98:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:16:24 -0300 +Started GET "/colleges/1/college_whitelists" for 127.0.0.1 at 2019-12-04 10:16:36 -0300 +Processing by CollegeWhitelistsController#index as HTML + Parameters: {"college_id"=>"1"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.5ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:117 + College Exists (1.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendering college_whitelists/index.html.erb within layouts/application + CollegeWhitelist Load (1.4ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1 [["college_id", 1]] + ↳ app/views/college_whitelists/index.html.erb:18 + User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:21 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:25 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:49 + CACHE College Load (0.0ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:50 + College Exists (0.7ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:46 + Rendered college_whitelists/index.html.erb within layouts/application (22.1ms) +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:16:36 -0300 + FavoriteSpotted Exists (1.6ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (23.5ms) + Rendered layouts/_footer.html.erb (0.8ms) +Completed 200 OK in 235ms (Views: 215.1ms | ActiveRecord: 9.8ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:16:39 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 10:16:39 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"dogC6k+yv7giOf3NxxCkhgc9eNYcXERIXTcCLlAKnbqfI1u0dwQIhlQA2eZsKJM8NQkui6wulNR9GxErVjXWKA==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.7ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:117 + CollegeWhitelist Load (0.8ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:97 +  (1.2ms) BEGIN + ↳ app/controllers/college_whitelists_controller.rb:99 + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:99 + College Load (1.8ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:99 +  (5.2ms) ROLLBACK + ↳ app/controllers/college_whitelists_controller.rb:99 + Rendering college_whitelists/index.html.erb within layouts/application + Rendered college_whitelists/index.html.erb within layouts/application (2.3ms) +Completed 500 Internal Server Error in 33ms (ActiveRecord: 11.4ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 15: + 16:
+ 17:
<%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %>
+ 18: <% @college_whitelists.each do |college_whitelist| %> + 19: <% if (college_whitelist.status == 'pending') %> + 20: + 21: + +app/views/college_whitelists/index.html.erb:18:in `_app_views_college_whitelists_index_html_erb___1265514627900625378_70291719818000' +app/controllers/college_whitelists_controller.rb:104:in `block (2 levels) in update' +app/controllers/college_whitelists_controller.rb:98:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:16:40 -0300 +Started POST "/__web_console/repl_sessions/d4865fb422a4bc02f2b122d06db305b0/trace" for 127.0.0.1 at 2019-12-04 10:17:08 -0300 +Started PUT "/__web_console/repl_sessions/d4865fb422a4bc02f2b122d06db305b0" for 127.0.0.1 at 2019-12-04 10:17:13 -0300 +Started PUT "/__web_console/repl_sessions/d4865fb422a4bc02f2b122d06db305b0" for 127.0.0.1 at 2019-12-04 10:17:13 -0300 +Started PUT "/__web_console/repl_sessions/d4865fb422a4bc02f2b122d06db305b0" for 127.0.0.1 at 2019-12-04 10:17:19 -0300 +Started PUT "/__web_console/repl_sessions/d4865fb422a4bc02f2b122d06db305b0" for 127.0.0.1 at 2019-12-04 10:17:28 -0300 +Started PUT "/__web_console/repl_sessions/d4865fb422a4bc02f2b122d06db305b0" for 127.0.0.1 at 2019-12-04 10:17:33 -0300 +Started PUT "/__web_console/repl_sessions/d4865fb422a4bc02f2b122d06db305b0" for 127.0.0.1 at 2019-12-04 10:17:40 -0300 +Started GET "/colleges/1/college_whitelists/" for 127.0.0.1 at 2019-12-04 10:21:05 -0300 +  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /home/fernandok/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by CollegeWhitelistsController#index as HTML + Parameters: {"college_id"=>"1"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:117 + College Exists (0.7ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendering college_whitelists/index.html.erb within layouts/application + CollegeWhitelist Load (0.7ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1 [["college_id", 1]] + ↳ app/views/college_whitelists/index.html.erb:18 + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:21 + College Load (0.7ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:25 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:49 + CACHE College Load (0.0ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:50 + College Exists (0.8ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:46 + Rendered college_whitelists/index.html.erb within layouts/application (71.1ms) + FavoriteSpotted Exists (0.6ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (12.3ms) + Rendered layouts/_footer.html.erb (0.6ms) +Completed 200 OK in 1381ms (Views: 1192.5ms | ActiveRecord: 27.3ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:21:08 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:21:09 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:21:09 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 10:21:11 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"JuG8M+5TD1G8C4dyO0IY3X57p/voPVv8cutqZj3VBLvPSuVt1uW4b8oyo1mQei9nTE/xplhPi2BSx3ljO+pPKQ==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (3.0ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:117 + CollegeWhitelist Load (0.6ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:97 +  (0.7ms) BEGIN + ↳ app/controllers/college_whitelists_controller.rb:99 + User Load (2.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:99 + College Load (1.1ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:99 +  (0.4ms) ROLLBACK + ↳ app/controllers/college_whitelists_controller.rb:99 + Rendering college_whitelists/index.html.erb within layouts/application + Rendered college_whitelists/index.html.erb within layouts/application (3.4ms) +Completed 500 Internal Server Error in 39ms (ActiveRecord: 8.7ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 15: + 16:
+ 17:
<%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %>
+ 18: <% @college_whitelists.each do |college_whitelist| %> + 19: <% if (college_whitelist.status == 'pending') %> + 20: + 21: + +app/views/college_whitelists/index.html.erb:18:in `_app_views_college_whitelists_index_html_erb__3195832291392552276_70280214754600' +app/controllers/college_whitelists_controller.rb:104:in `block (2 levels) in update' +app/controllers/college_whitelists_controller.rb:98:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:21:12 -0300 +Started GET "/colleges/1/college_whitelists/" for 127.0.0.1 at 2019-12-04 10:23:23 -0300 +Processing by CollegeWhitelistsController#index as HTML + Parameters: {"college_id"=>"1"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:117 + College Exists (0.7ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendering college_whitelists/index.html.erb within layouts/application + CollegeWhitelist Load (0.6ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1 [["college_id", 1]] + ↳ app/views/college_whitelists/index.html.erb:18 + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:21 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:25 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:49 + CACHE College Load (0.0ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:50 + College Exists (0.9ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:46 + Rendered college_whitelists/index.html.erb within layouts/application (32.5ms) + FavoriteSpotted Exists (0.4ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (11.9ms) + Rendered layouts/_footer.html.erb (0.7ms) +Completed 200 OK in 235ms (Views: 132.6ms | ActiveRecord: 28.9ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:23:25 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 10:23:26 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"WtAF8YCSkI03wK+0XLlTVdrBWD1JInS0rS47FduItbuze1yvuCQns0H5i5/3gWTv6PUOYPlQpCiNAigQ3bf+KQ==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.4ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:117 + CollegeWhitelist Load (0.5ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +  (0.4ms) BEGIN + ↳ app/controllers/college_whitelists_controller.rb:98 + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:98 + College Load (0.4ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:98 +  (0.4ms) ROLLBACK + ↳ app/controllers/college_whitelists_controller.rb:98 + Rendering college_whitelists/index.html.erb within layouts/application + Rendered college_whitelists/index.html.erb within layouts/application (2.6ms) +Completed 500 Internal Server Error in 20ms (ActiveRecord: 3.1ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 15: + 16:
+ 17:
<%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %>
+ 18: <% @college_whitelists.each do |college_whitelist| %> + 19: <% if (college_whitelist.status == 'pending') %> + 20: + 21: + +app/views/college_whitelists/index.html.erb:18:in `_app_views_college_whitelists_index_html_erb__3195832291392552276_70280219889460' +app/controllers/college_whitelists_controller.rb:104:in `block (2 levels) in update' +app/controllers/college_whitelists_controller.rb:97:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:23:27 -0300 +Started GET "/colleges/1/college_whitelists/" for 127.0.0.1 at 2019-12-04 10:23:32 -0300 +Processing by CollegeWhitelistsController#index as HTML + Parameters: {"college_id"=>"1"} + User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.8ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:117 + College Exists (0.7ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendering college_whitelists/index.html.erb within layouts/application + CollegeWhitelist Load (0.5ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1 [["college_id", 1]] + ↳ app/views/college_whitelists/index.html.erb:18 + User Load (4.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:21 + College Load (1.3ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:25 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:49 + CACHE College Load (0.0ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:50 + College Exists (0.7ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:46 + Rendered college_whitelists/index.html.erb within layouts/application (19.2ms) + FavoriteSpotted Exists (0.6ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (7.5ms) + Rendered layouts/_footer.html.erb (0.7ms) +Completed 200 OK in 127ms (Views: 112.8ms | ActiveRecord: 9.9ms) + + +Started GET "/colleges/1/college_whitelists/" for 127.0.0.1 at 2019-12-04 10:23:34 -0300 +Processing by CollegeWhitelistsController#index as HTML + Parameters: {"college_id"=>"1"} + User Load (2.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.8ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:117 + College Exists (0.6ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendering college_whitelists/index.html.erb within layouts/application + CollegeWhitelist Load (3.2ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1 [["college_id", 1]] + ↳ app/views/college_whitelists/index.html.erb:18 + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:21 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:25 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:49 + CACHE College Load (0.0ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:50 + College Exists (0.7ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:46 + Rendered college_whitelists/index.html.erb within layouts/application (20.0ms) +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:23:35 -0300 + FavoriteSpotted Exists (0.6ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (8.1ms) + Rendered layouts/_footer.html.erb (0.7ms) +Completed 200 OK in 185ms (Views: 171.6ms | ActiveRecord: 9.3ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:23:37 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 10:23:39 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"2lTVjZnwnyU+aeoEjfO+jE/LRtS0gDtbghym0L8UMQMz/4zToUYoG0hQzi8my4k2ff8QiQTy68eiMLXVuSt6kQ==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:117 + CollegeWhitelist Load (2.3ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +  (0.3ms) BEGIN + ↳ app/controllers/college_whitelists_controller.rb:98 + User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:98 + College Load (0.5ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:98 +  (0.3ms) ROLLBACK + ↳ app/controllers/college_whitelists_controller.rb:98 + Rendering college_whitelists/index.html.erb within layouts/application + Rendered college_whitelists/index.html.erb within layouts/application (4.3ms) +Completed 500 Internal Server Error in 28ms (ActiveRecord: 6.9ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 15: + 16:
+ 17:
<%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %>
+ 18: <% @college_whitelists.each do |college_whitelist| %> + 19: <% if (college_whitelist.status == 'pending') %> + 20: + 21: + +app/views/college_whitelists/index.html.erb:18:in `_app_views_college_whitelists_index_html_erb__3195832291392552276_70280218024960' +app/controllers/college_whitelists_controller.rb:104:in `block (2 levels) in update' +app/controllers/college_whitelists_controller.rb:97:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:23:40 -0300 +Started GET "/colleges/1/college_whitelists/" for 127.0.0.1 at 2019-12-04 10:23:49 -0300 +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /home/fernandok/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by CollegeWhitelistsController#index as HTML + Parameters: {"college_id"=>"1"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:117 + College Exists (0.7ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendering college_whitelists/index.html.erb within layouts/application + CollegeWhitelist Load (0.7ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1 [["college_id", 1]] + ↳ app/views/college_whitelists/index.html.erb:18 + User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:21 + College Load (0.7ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:25 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:49 + CACHE College Load (0.0ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:50 + College Exists (1.2ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:46 + Rendered college_whitelists/index.html.erb within layouts/application (88.9ms) + FavoriteSpotted Exists (0.8ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (13.1ms) + Rendered layouts/_footer.html.erb (0.7ms) +Completed 200 OK in 750ms (Views: 564.2ms | ActiveRecord: 31.9ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:23:52 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 10:23:53 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"hwOCSEkpnrLRujXLAylwzf+SO0fg7ef+evcex2DBBNFuqNsWcZ8pjKeDEeCoEUd3zaZtGlCfN2Ja2w3CZv5PQw==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:117 + CollegeWhitelist Load (0.4ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +  (0.3ms) BEGIN + ↳ app/controllers/college_whitelists_controller.rb:98 + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:98 + College Load (1.5ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:98 +  (1.2ms) ROLLBACK + ↳ app/controllers/college_whitelists_controller.rb:98 + Rendering college_whitelists/index.html.erb within layouts/application + Rendered college_whitelists/index.html.erb within layouts/application (3.9ms) +Completed 500 Internal Server Error in 38ms (ActiveRecord: 5.5ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 15: + 16:
+ 17:
<%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %>
+ 18: <% @college_whitelists.each do |college_whitelist| %> + 19: <% if (college_whitelist.status == 'pending') %> + 20: + 21: + +app/views/college_whitelists/index.html.erb:18:in `_app_views_college_whitelists_index_html_erb__916775929006155802_70099388233740' +app/controllers/college_whitelists_controller.rb:104:in `block (2 levels) in update' +app/controllers/college_whitelists_controller.rb:97:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:23:54 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:24:10 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 10:24:11 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"hwOCSEkpnrLRujXLAylwzf+SO0fg7ef+evcex2DBBNFuqNsWcZ8pjKeDEeCoEUd3zaZtGlCfN2Ja2w3CZv5PQw==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:117 + CollegeWhitelist Load (1.2ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +  (0.3ms) BEGIN + ↳ app/controllers/college_whitelists_controller.rb:98 + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:98 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:98 +  (0.4ms) ROLLBACK + ↳ app/controllers/college_whitelists_controller.rb:98 + Rendering college_whitelists/index.html.erb within layouts/application + Rendered college_whitelists/index.html.erb within layouts/application (3.6ms) +Completed 500 Internal Server Error in 119ms (ActiveRecord: 24.8ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 15: + 16:
+ 17:
<%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %>
+ 18: <% @college_whitelists.each do |college_whitelist| %> + 19: <% if (college_whitelist.status == 'pending') %> + 20: + 21: + +app/views/college_whitelists/index.html.erb:18:in `_app_views_college_whitelists_index_html_erb__916775929006155802_70099388068220' +app/controllers/college_whitelists_controller.rb:104:in `block (2 levels) in update' +app/controllers/college_whitelists_controller.rb:97:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:24:12 -0300 +Started GET "/colleges/1/college_whitelists/" for 127.0.0.1 at 2019-12-04 10:31:37 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:31:37 -0300 +Processing by CollegeWhitelistsController#index as HTML + Parameters: {"college_id"=>"1"} + User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (1.2ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:117 + College Exists (5.4ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendering college_whitelists/index.html.erb within layouts/application + CollegeWhitelist Load (0.8ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1 [["college_id", 1]] + ↳ app/views/college_whitelists/index.html.erb:18 + User Load (1.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:21 + College Load (0.8ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:25 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:49 + CACHE College Load (0.0ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:50 + College Exists (3.2ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:46 + Rendered college_whitelists/index.html.erb within layouts/application (36.4ms) + FavoriteSpotted Exists (0.6ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (12.4ms) + Rendered layouts/_footer.html.erb (0.8ms) +Completed 200 OK in 279ms (Views: 143.2ms | ActiveRecord: 49.9ms) + + +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 10:31:40 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"QHEcwVgoPZQKO+Hw3Zl3cD7xQ+mmojShZB6EQGtQF16p2kWfYJ6KqnwCxdt2oUDKDMUVtBbQ5D1EMpdFbW9czA==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:117 + CollegeWhitelist Load (0.6ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +  (0.3ms) BEGIN + ↳ app/controllers/college_whitelists_controller.rb:98 + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:98 + College Load (0.7ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:98 +  (0.3ms) ROLLBACK + ↳ app/controllers/college_whitelists_controller.rb:98 + Rendering college_whitelists/index.html.erb within layouts/application + Rendered college_whitelists/index.html.erb within layouts/application (2.4ms) +Completed 500 Internal Server Error in 131ms (ActiveRecord: 26.5ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 15: + 16:
+ 17:
<%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %>
+ 18: <% @college_whitelists.each do |college_whitelist| %> + 19: <% if (college_whitelist.status == 'pending') %> + 20: + 21: + +app/views/college_whitelists/index.html.erb:18:in `_app_views_college_whitelists_index_html_erb__916775929006155802_70099387907240' +app/controllers/college_whitelists_controller.rb:104:in `block (2 levels) in update' +app/controllers/college_whitelists_controller.rb:97:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:31:41 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:32:21 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 10:32:21 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"QHEcwVgoPZQKO+Hw3Zl3cD7xQ+mmojShZB6EQGtQF16p2kWfYJ6KqnwCxdt2oUDKDMUVtBbQ5D1EMpdFbW9czA==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.5ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:118 + CollegeWhitelist Load (0.5ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +  (0.6ms) BEGIN + ↳ app/controllers/college_whitelists_controller.rb:99 + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:99 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:99 +  (0.4ms) ROLLBACK + ↳ app/controllers/college_whitelists_controller.rb:99 + Rendering college_whitelists/index.html.erb within layouts/application + Rendered college_whitelists/index.html.erb within layouts/application (4.8ms) +Completed 500 Internal Server Error in 127ms (ActiveRecord: 27.0ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 15: + 16:
+ 17:
<%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %>
+ 18: <% @college_whitelists.each do |college_whitelist| %> + 19: <% if (college_whitelist.status == 'pending') %> + 20: + 21: + +app/views/college_whitelists/index.html.erb:18:in `_app_views_college_whitelists_index_html_erb__916775929006155802_47441623607780' +app/controllers/college_whitelists_controller.rb:105:in `block (2 levels) in update' +app/controllers/college_whitelists_controller.rb:98:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:32:22 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:42:04 -0300 +Started GET "/colleges/1/college_whitelists/" for 127.0.0.1 at 2019-12-04 10:42:04 -0300 + +SyntaxError (/home/fernandok/Projetos/Spottapp/src/app/app/controllers/college_whitelists_controller.rb:159: syntax error, unexpected end-of-input, expecting end): + +app/controllers/college_whitelists_controller.rb:159: syntax error, unexpected end-of-input, expecting end +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:42:06 -0300 +Started GET "/colleges/1/college_whitelists/" for 127.0.0.1 at 2019-12-04 10:42:18 -0300 +Processing by CollegeWhitelistsController#index as HTML + Parameters: {"college_id"=>"1"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.8ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:118 + College Exists (0.8ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendering college_whitelists/index.html.erb within layouts/application + CollegeWhitelist Load (0.7ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1 [["college_id", 1]] + ↳ app/views/college_whitelists/index.html.erb:18 + User Load (2.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:21 + College Load (0.8ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:25 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:49 + CACHE College Load (0.0ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:50 + College Exists (1.7ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:46 + Rendered college_whitelists/index.html.erb within layouts/application (61.4ms) + FavoriteSpotted Exists (0.6ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (114.9ms) + Rendered layouts/_footer.html.erb (0.8ms) +Completed 200 OK in 1334ms (Views: 1156.1ms | ActiveRecord: 76.0ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:42:22 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 10:42:22 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"nXfbsXgYuKxeQwQOtjepb3hV4lrPIrn6YSwpG/G4xBt03ILvQK4Pkih6ICUdD57VSmG0B39QaWZBADoe94ePiQ==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.8ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:118 + CollegeWhitelist Load (1.1ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +  (0.3ms) BEGIN + ↳ app/controllers/college_whitelists_controller.rb:99 + User Load (1.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:99 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:99 +  (0.4ms) ROLLBACK + ↳ app/controllers/college_whitelists_controller.rb:99 + Rendering college_whitelists/index.html.erb within layouts/application + Rendered college_whitelists/index.html.erb within layouts/application (3.3ms) +Completed 500 Internal Server Error in 67ms (ActiveRecord: 5.6ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 15: + 16:
+ 17:
<%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %>
+ 18: <% @college_whitelists.each do |college_whitelist| %> + 19: <% if (college_whitelist.status == 'pending') %> + 20: + 21: + +app/views/college_whitelists/index.html.erb:18:in `_app_views_college_whitelists_index_html_erb__916775929006155802_70099386052200' +app/controllers/college_whitelists_controller.rb:105:in `block (2 levels) in update' +app/controllers/college_whitelists_controller.rb:98:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 10:42:24 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:08:33 -0300 +Started GET "/colleges/1/college_whitelists/" for 127.0.0.1 at 2019-12-04 11:08:35 -0300 +Processing by CollegeWhitelistsController#index as HTML + Parameters: {"college_id"=>"1"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (1.0ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:119 + College Exists (0.8ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendering college_whitelists/index.html.erb within layouts/application + CollegeWhitelist Load (0.7ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1 [["college_id", 1]] + ↳ app/views/college_whitelists/index.html.erb:18 + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:21 + College Load (0.7ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:25 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:49 + CACHE College Load (0.0ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:50 + College Exists (0.8ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:46 + Rendered college_whitelists/index.html.erb within layouts/application (41.5ms) + FavoriteSpotted Exists (0.6ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (113.7ms) + Rendered layouts/_footer.html.erb (0.9ms) +Completed 200 OK in 1282ms (Views: 1106.4ms | ActiveRecord: 58.6ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:08:40 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 11:08:42 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"xbg2m+EL0gmBBu7HHj4kml783OPF3O4CxcGN8coIB78sE2/F2b1lN/c/yuy1BhMgbMiKvnWuPp7l7Z70zDdMLQ==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:119 + CollegeWhitelist Load (0.7ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +  (0.4ms) BEGIN + ↳ app/controllers/college_whitelists_controller.rb:100 + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:100 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:100 +  (0.3ms) ROLLBACK + ↳ app/controllers/college_whitelists_controller.rb:100 + Rendering college_whitelists/index.html.erb within layouts/application + Rendered college_whitelists/index.html.erb within layouts/application (2.5ms) +Completed 500 Internal Server Error in 59ms (ActiveRecord: 4.4ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 15: + 16:
+ 17:
<%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %>
+ 18: <% @college_whitelists.each do |college_whitelist| %> + 19: <% if (college_whitelist.status == 'pending') %> + 20: + 21: + +app/views/college_whitelists/index.html.erb:18:in `_app_views_college_whitelists_index_html_erb__916775929006155802_47441627436280' +app/controllers/college_whitelists_controller.rb:106:in `block (2 levels) in update' +app/controllers/college_whitelists_controller.rb:99:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:08:43 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:09:12 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 11:09:14 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"xbg2m+EL0gmBBu7HHj4kml783OPF3O4CxcGN8coIB78sE2/F2b1lN/c/yuy1BhMgbMiKvnWuPp7l7Z70zDdMLQ==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (1.4ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:119 + CollegeWhitelist Load (0.8ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +  (0.4ms) BEGIN + ↳ app/controllers/college_whitelists_controller.rb:100 + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:100 + College Load (2.3ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:100 +  (0.4ms) ROLLBACK + ↳ app/controllers/college_whitelists_controller.rb:100 + Rendering college_whitelists/index.html.erb within layouts/application + Rendered college_whitelists/index.html.erb within layouts/application (7.5ms) +Completed 500 Internal Server Error in 208ms (ActiveRecord: 30.2ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 15: + 16:
+ 17:
<%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %>
+ 18: <% @college_whitelists.each do |college_whitelist| %> + 19: <% if (college_whitelist.status == 'pending') %> + 20: + 21: + +app/views/college_whitelists/index.html.erb:18:in `_app_views_college_whitelists_index_html_erb__916775929006155802_70099388159420' +app/controllers/college_whitelists_controller.rb:106:in `block (2 levels) in update' +app/controllers/college_whitelists_controller.rb:99:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:09:16 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:16:53 -0300 +Started GET "/colleges/1/college_whitelists/" for 127.0.0.1 at 2019-12-04 11:16:54 -0300 +Processing by CollegeWhitelistsController#index as HTML + Parameters: {"college_id"=>"1"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.8ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:119 + College Exists (0.8ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendering college_whitelists/index.html.erb within layouts/application + CollegeWhitelist Load (0.6ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1 [["college_id", 1]] + ↳ app/views/college_whitelists/index.html.erb:18 + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:21 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:25 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:49 + CACHE College Load (0.0ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:50 + College Exists (0.6ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:46 + Rendered college_whitelists/index.html.erb within layouts/application (175.4ms) + FavoriteSpotted Exists (0.6ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (90.2ms) + Rendered layouts/_footer.html.erb (0.9ms) +Completed 200 OK in 2569ms (Views: 1753.0ms | ActiveRecord: 101.8ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:17:03 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 11:17:06 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"W4FSLijqLl/grHS2Unz1hnrbk2/ra68hiT6Pl42vFoKyKgtwEFyZYZaVUJ35RMI8SO/FMlsZf72pEpySi5BdEA==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:119 + CollegeWhitelist Load (9.6ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +Completed 500 Internal Server Error in 39ms (ActiveRecord: 12.6ms) + + + +NoMethodError (undefined method `status' for #): + +app/controllers/college_whitelists_controller.rb:153:in `return_status_enum' +app/controllers/college_whitelists_controller.rb:98:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:17:09 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:18:26 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 11:18:27 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"W4FSLijqLl/grHS2Unz1hnrbk2/ra68hiT6Pl42vFoKyKgtwEFyZYZaVUJ35RMI8SO/FMlsZf72pEpySi5BdEA==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.8ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:119 + CollegeWhitelist Load (0.9ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +Completed 500 Internal Server Error in 115ms (ActiveRecord: 26.4ms) + + + +NoMethodError (undefined method `status' for #): + +app/controllers/college_whitelists_controller.rb:153:in `return_status_enum' +app/controllers/college_whitelists_controller.rb:98:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:18:28 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:20:01 -0300 +Started GET "/colleges/1/college_whitelists/" for 127.0.0.1 at 2019-12-04 11:20:02 -0300 +Processing by CollegeWhitelistsController#index as HTML + Parameters: {"college_id"=>"1"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:119 + College Exists (0.7ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendering college_whitelists/index.html.erb within layouts/application + CollegeWhitelist Load (0.4ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1 [["college_id", 1]] + ↳ app/views/college_whitelists/index.html.erb:18 + User Load (1.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:21 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:25 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:49 + CACHE College Load (0.0ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:50 + College Exists (1.0ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:46 + Rendered college_whitelists/index.html.erb within layouts/application (62.9ms) + FavoriteSpotted Exists (0.6ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (80.7ms) + Rendered layouts/_footer.html.erb (0.8ms) +Completed 200 OK in 1487ms (Views: 1313.6ms | ActiveRecord: 26.0ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:20:08 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 11:20:08 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"8AUQhAlcPflfCJzBUp6yyehk7XqLzQ3pMFn6/IWG3b4ZrknaMeqKxykxuOr5poVz2lC7Jzu/3XUQden5g7mWLA==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.8ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:119 + CollegeWhitelist Load (0.7ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +Completed 500 Internal Server Error in 14ms (ActiveRecord: 2.9ms) + + + +NoMethodError (undefined method `status' for #): + +app/controllers/college_whitelists_controller.rb:153:in `return_status_enum' +app/controllers/college_whitelists_controller.rb:98:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:20:10 -0300 +Started PUT "/__web_console/repl_sessions/5ed067fad6b03387a7b1d87ec47446b0" for 127.0.0.1 at 2019-12-04 11:20:21 -0300 +Started PUT "/__web_console/repl_sessions/5ed067fad6b03387a7b1d87ec47446b0" for 127.0.0.1 at 2019-12-04 11:20:22 -0300 +Started PUT "/__web_console/repl_sessions/5ed067fad6b03387a7b1d87ec47446b0" for 127.0.0.1 at 2019-12-04 11:20:25 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:27:35 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 11:27:36 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"8AUQhAlcPflfCJzBUp6yyehk7XqLzQ3pMFn6/IWG3b4ZrknaMeqKxykxuOr5poVz2lC7Jzu/3XUQden5g7mWLA==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.8ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:119 + CollegeWhitelist Load (0.6ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +  (0.4ms) BEGIN + ↳ app/controllers/college_whitelists_controller.rb:100 + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:100 + College Load (0.5ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:100 +  (2.9ms) ROLLBACK + ↳ app/controllers/college_whitelists_controller.rb:100 + Rendering college_whitelists/index.html.erb within layouts/application + Rendered college_whitelists/index.html.erb within layouts/application (2.4ms) +Completed 500 Internal Server Error in 204ms (ActiveRecord: 49.2ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 15: + 16:
+ 17:
<%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %>
+ 18: <% @college_whitelists.each do |college_whitelist| %> + 19: <% if (college_whitelist.status == 'pending') %> + 20: + 21: + +app/views/college_whitelists/index.html.erb:18:in `_app_views_college_whitelists_index_html_erb__916775929006155802_70099436728380' +app/controllers/college_whitelists_controller.rb:106:in `block (2 levels) in update' +app/controllers/college_whitelists_controller.rb:99:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:27:38 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 11:28:12 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"8AUQhAlcPflfCJzBUp6yyehk7XqLzQ3pMFn6/IWG3b4ZrknaMeqKxykxuOr5poVz2lC7Jzu/3XUQden5g7mWLA==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (1.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (1.1ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:119 + CollegeWhitelist Load (0.6ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +  (0.3ms) BEGIN + ↳ app/controllers/college_whitelists_controller.rb:100 + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:100 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:100 +  (0.4ms) ROLLBACK + ↳ app/controllers/college_whitelists_controller.rb:100 + Rendering college_whitelists/index.html.erb within layouts/application + Rendered college_whitelists/index.html.erb within layouts/application (2.6ms) +Completed 500 Internal Server Error in 24ms (ActiveRecord: 5.0ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 15: + 16:
+ 17:
<%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %>
+ 18: <% @college_whitelists.each do |college_whitelist| %> + 19: <% if (college_whitelist.status == 'pending') %> + 20: + 21: + +app/views/college_whitelists/index.html.erb:18:in `_app_views_college_whitelists_index_html_erb__916775929006155802_70099387611620' +app/controllers/college_whitelists_controller.rb:106:in `block (2 levels) in update' +app/controllers/college_whitelists_controller.rb:99:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:28:13 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:29:50 -0300 +  (52.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /home/fernandok/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 11:29:51 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"8AUQhAlcPflfCJzBUp6yyehk7XqLzQ3pMFn6/IWG3b4ZrknaMeqKxykxuOr5poVz2lC7Jzu/3XUQden5g7mWLA==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.7ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:119 + CollegeWhitelist Load (0.7ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +  (0.4ms) BEGIN + ↳ app/controllers/college_whitelists_controller.rb:100 + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:100 + College Load (0.5ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:100 +  (0.3ms) ROLLBACK + ↳ app/controllers/college_whitelists_controller.rb:100 + Rendering college_whitelists/index.html.erb within layouts/application + Rendered college_whitelists/index.html.erb within layouts/application (14.4ms) +Completed 500 Internal Server Error in 612ms (ActiveRecord: 29.7ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 15: + 16:
+ 17:
<%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %>
+ 18: <% @college_whitelists.each do |college_whitelist| %> + 19: <% if (college_whitelist.status == 'pending') %> + 20: + 21: + +app/views/college_whitelists/index.html.erb:18:in `_app_views_college_whitelists_index_html_erb__3154168490089095789_69836440266600' +app/controllers/college_whitelists_controller.rb:106:in `block (2 levels) in update' +app/controllers/college_whitelists_controller.rb:99:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:29:53 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:32:46 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 11:32:46 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"8AUQhAlcPflfCJzBUp6yyehk7XqLzQ3pMFn6/IWG3b4ZrknaMeqKxykxuOr5poVz2lC7Jzu/3XUQden5g7mWLA==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.5ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:119 + CollegeWhitelist Load (0.5ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +  (0.4ms) BEGIN + ↳ app/controllers/college_whitelists_controller.rb:100 + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:100 + College Load (0.5ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:100 +  (0.3ms) ROLLBACK + ↳ app/controllers/college_whitelists_controller.rb:100 + Rendering college_whitelists/index.html.erb within layouts/application + Rendered college_whitelists/index.html.erb within layouts/application (3.2ms) +Completed 500 Internal Server Error in 119ms (ActiveRecord: 20.4ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 15: + 16:
+ 17:
<%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %>
+ 18: <% @college_whitelists.each do |college_whitelist| %> + 19: <% if (college_whitelist.status == 'pending') %> + 20: + 21: + +app/views/college_whitelists/index.html.erb:18:in `_app_views_college_whitelists_index_html_erb__3154168490089095789_69836438065920' +app/controllers/college_whitelists_controller.rb:106:in `block (2 levels) in update' +app/controllers/college_whitelists_controller.rb:99:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:32:47 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 11:33:26 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:33:26 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"8AUQhAlcPflfCJzBUp6yyehk7XqLzQ3pMFn6/IWG3b4ZrknaMeqKxykxuOr5poVz2lC7Jzu/3XUQden5g7mWLA==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.7ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:118 + CollegeWhitelist Load (0.5ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +  (1.3ms) BEGIN + ↳ app/controllers/college_whitelists_controller.rb:99 + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:99 + College Load (0.7ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:99 +  (0.4ms) ROLLBACK + ↳ app/controllers/college_whitelists_controller.rb:99 + Rendering college_whitelists/index.html.erb within layouts/application + Rendered college_whitelists/index.html.erb within layouts/application (2.2ms) +Completed 500 Internal Server Error in 157ms (ActiveRecord: 22.5ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 15: + 16:
+ 17:
<%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %>
+ 18: <% @college_whitelists.each do |college_whitelist| %> + 19: <% if (college_whitelist.status == 'pending') %> + 20: + 21: + +app/views/college_whitelists/index.html.erb:18:in `_app_views_college_whitelists_index_html_erb__3154168490089095789_69836510072800' +app/controllers/college_whitelists_controller.rb:105:in `block (2 levels) in update' +app/controllers/college_whitelists_controller.rb:98:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:33:27 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:36:16 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 11:36:16 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"8AUQhAlcPflfCJzBUp6yyehk7XqLzQ3pMFn6/IWG3b4ZrknaMeqKxykxuOr5poVz2lC7Jzu/3XUQden5g7mWLA==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.4ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:119 + CollegeWhitelist Load (0.5ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +Completed 500 Internal Server Error in 105ms (ActiveRecord: 18.6ms) + + + +ArgumentError (wrong number of arguments (given 1, expected 0)): + +app/controllers/college_whitelists_controller.rb:152:in `return_status_enum' +app/controllers/college_whitelists_controller.rb:98:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:36:17 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:36:35 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 11:36:35 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"8AUQhAlcPflfCJzBUp6yyehk7XqLzQ3pMFn6/IWG3b4ZrknaMeqKxykxuOr5poVz2lC7Jzu/3XUQden5g7mWLA==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (1.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.5ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:119 + CollegeWhitelist Load (0.5ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +  (1.4ms) BEGIN + ↳ app/controllers/college_whitelists_controller.rb:100 + User Load (1.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:100 + College Load (0.8ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:100 +  (0.4ms) ROLLBACK + ↳ app/controllers/college_whitelists_controller.rb:100 + Rendering college_whitelists/index.html.erb within layouts/application + Rendered college_whitelists/index.html.erb within layouts/application (2.7ms) +Completed 500 Internal Server Error in 170ms (ActiveRecord: 25.1ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 15: + 16:
+ 17:
<%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %>
+ 18: <% @college_whitelists.each do |college_whitelist| %> + 19: <% if (college_whitelist.status == 'pending') %> + 20: + 21: + +app/views/college_whitelists/index.html.erb:18:in `_app_views_college_whitelists_index_html_erb__3154168490089095789_69836509961380' +app/controllers/college_whitelists_controller.rb:106:in `block (2 levels) in update' +app/controllers/college_whitelists_controller.rb:99:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:36:36 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:37:06 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 11:37:06 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"8AUQhAlcPflfCJzBUp6yyehk7XqLzQ3pMFn6/IWG3b4ZrknaMeqKxykxuOr5poVz2lC7Jzu/3XUQden5g7mWLA==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.4ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:119 + CollegeWhitelist Load (1.1ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +  (0.3ms) BEGIN + ↳ app/controllers/college_whitelists_controller.rb:100 + User Load (2.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:100 + College Load (0.9ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:100 +  (0.4ms) ROLLBACK + ↳ app/controllers/college_whitelists_controller.rb:100 + Rendering college_whitelists/index.html.erb within layouts/application + Rendered college_whitelists/index.html.erb within layouts/application (3.2ms) +Completed 500 Internal Server Error in 173ms (ActiveRecord: 28.2ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 15: + 16:
+ 17:
<%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %>
+ 18: <% @college_whitelists.each do |college_whitelist| %> + 19: <% if (college_whitelist.status == 'pending') %> + 20: + 21: + +app/views/college_whitelists/index.html.erb:18:in `_app_views_college_whitelists_index_html_erb__3154168490089095789_69836438095480' +app/controllers/college_whitelists_controller.rb:106:in `block (2 levels) in update' +app/controllers/college_whitelists_controller.rb:99:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:37:08 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 11:37:47 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:37:47 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"8AUQhAlcPflfCJzBUp6yyehk7XqLzQ3pMFn6/IWG3b4ZrknaMeqKxykxuOr5poVz2lC7Jzu/3XUQden5g7mWLA==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:119 + CollegeWhitelist Load (0.4ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +  (0.4ms) BEGIN + ↳ app/controllers/college_whitelists_controller.rb:100 + User Load (2.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:100 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:100 +  (0.4ms) ROLLBACK + ↳ app/controllers/college_whitelists_controller.rb:100 + Rendering college_whitelists/index.html.erb within layouts/application + Rendered college_whitelists/index.html.erb within layouts/application (2.3ms) +Completed 500 Internal Server Error in 122ms (ActiveRecord: 22.5ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 15: + 16:
+ 17:
<%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %>
+ 18: <% @college_whitelists.each do |college_whitelist| %> + 19: <% if (college_whitelist.status == 'pending') %> + 20: + 21: + +app/views/college_whitelists/index.html.erb:18:in `_app_views_college_whitelists_index_html_erb__3154168490089095789_69836443615580' +app/controllers/college_whitelists_controller.rb:106:in `block (2 levels) in update' +app/controllers/college_whitelists_controller.rb:99:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:37:49 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 11:38:16 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:38:16 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"8AUQhAlcPflfCJzBUp6yyehk7XqLzQ3pMFn6/IWG3b4ZrknaMeqKxykxuOr5poVz2lC7Jzu/3XUQden5g7mWLA==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:119 + CollegeWhitelist Load (0.6ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +Completed 500 Internal Server Error in 104ms (ActiveRecord: 18.1ms) + + + +TypeError (no implicit conversion of Symbol into Integer): + +app/controllers/college_whitelists_controller.rb:98:in `[]' +app/controllers/college_whitelists_controller.rb:98:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:38:17 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:38:43 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 11:38:43 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"8AUQhAlcPflfCJzBUp6yyehk7XqLzQ3pMFn6/IWG3b4ZrknaMeqKxykxuOr5poVz2lC7Jzu/3XUQden5g7mWLA==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.5ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:119 + CollegeWhitelist Load (0.4ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +  (0.3ms) BEGIN + ↳ app/controllers/college_whitelists_controller.rb:100 + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:100 + College Load (0.8ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:100 +  (0.4ms) ROLLBACK + ↳ app/controllers/college_whitelists_controller.rb:100 + Rendering college_whitelists/index.html.erb within layouts/application + Rendered college_whitelists/index.html.erb within layouts/application (4.9ms) +Completed 500 Internal Server Error in 128ms (ActiveRecord: 23.1ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 15: + 16:
+ 17:
<%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %>
+ 18: <% @college_whitelists.each do |college_whitelist| %> + 19: <% if (college_whitelist.status == 'pending') %> + 20: + 21: + +app/views/college_whitelists/index.html.erb:18:in `_app_views_college_whitelists_index_html_erb__3154168490089095789_69836470698820' +app/controllers/college_whitelists_controller.rb:106:in `block (2 levels) in update' +app/controllers/college_whitelists_controller.rb:99:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:38:44 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:39:10 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 11:39:11 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"8AUQhAlcPflfCJzBUp6yyehk7XqLzQ3pMFn6/IWG3b4ZrknaMeqKxykxuOr5poVz2lC7Jzu/3XUQden5g7mWLA==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.4ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:119 + CollegeWhitelist Load (0.5ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +Completed 500 Internal Server Error in 112ms (ActiveRecord: 25.8ms) + + + +NoMethodError (undefined method `status' for #): + +app/controllers/college_whitelists_controller.rb:98:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:39:12 -0300 +Started PUT "/__web_console/repl_sessions/d0210f1b3143e7358ca8c39ccd131d1e" for 127.0.0.1 at 2019-12-04 11:39:17 -0300 +Started PUT "/__web_console/repl_sessions/d0210f1b3143e7358ca8c39ccd131d1e" for 127.0.0.1 at 2019-12-04 11:39:18 -0300 +Started PUT "/__web_console/repl_sessions/d0210f1b3143e7358ca8c39ccd131d1e" for 127.0.0.1 at 2019-12-04 11:39:23 -0300 +Started PUT "/__web_console/repl_sessions/d0210f1b3143e7358ca8c39ccd131d1e" for 127.0.0.1 at 2019-12-04 11:39:30 -0300 +Started PUT "/__web_console/repl_sessions/d0210f1b3143e7358ca8c39ccd131d1e" for 127.0.0.1 at 2019-12-04 11:39:32 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:39:45 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 11:39:46 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"8AUQhAlcPflfCJzBUp6yyehk7XqLzQ3pMFn6/IWG3b4ZrknaMeqKxykxuOr5poVz2lC7Jzu/3XUQden5g7mWLA==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.7ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:119 + CollegeWhitelist Load (0.4ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +  (0.3ms) BEGIN + ↳ app/controllers/college_whitelists_controller.rb:100 + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:100 + College Load (0.5ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:100 +  (1.8ms) ROLLBACK + ↳ app/controllers/college_whitelists_controller.rb:100 + Rendering college_whitelists/index.html.erb within layouts/application + Rendered college_whitelists/index.html.erb within layouts/application (3.7ms) +Completed 500 Internal Server Error in 180ms (ActiveRecord: 22.3ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 15: + 16:
+ 17:
<%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %>
+ 18: <% @college_whitelists.each do |college_whitelist| %> + 19: <% if (college_whitelist.status == 'pending') %> + 20: + 21: + +app/views/college_whitelists/index.html.erb:18:in `_app_views_college_whitelists_index_html_erb__3154168490089095789_47386581077240' +app/controllers/college_whitelists_controller.rb:106:in `block (2 levels) in update' +app/controllers/college_whitelists_controller.rb:99:in `update' +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:39:47 -0300 +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:40:28 -0300 +Started PATCH "/colleges/1/college_whitelists/3?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 11:40:28 -0300 +Processing by CollegeWhitelistsController#update as HTML + Parameters: {"authenticity_token"=>"8AUQhAlcPflfCJzBUp6yyehk7XqLzQ3pMFn6/IWG3b4ZrknaMeqKxykxuOr5poVz2lC7Jzu/3XUQden5g7mWLA==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "id"=>"3"} + User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.4ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:116 + CollegeWhitelist Load (0.4ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:96 +  (0.4ms) BEGIN + ↳ app/controllers/college_whitelists_controller.rb:98 + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:98 + College Load (0.7ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:98 + CollegeWhitelist Update (157.7ms) UPDATE "college_whitelists" SET "status" = $1, "updated_at" = $2 WHERE "college_whitelists"."id" = $3 [["status", 1], ["updated_at", "2019-12-04 14:40:28.680502"], ["id", 3]] + ↳ app/controllers/college_whitelists_controller.rb:98 +  (35.2ms) COMMIT + ↳ app/controllers/college_whitelists_controller.rb:98 +Redirected to http://localhost:3000/colleges/1/college_whitelists +Completed 302 Found in 520ms (ActiveRecord: 214.7ms) + + +Started GET "/colleges/1/college_whitelists" for 127.0.0.1 at 2019-12-04 11:40:29 -0300 +Processing by CollegeWhitelistsController#index as HTML + Parameters: {"college_id"=>"1"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.3ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:116 + College Exists (1.3ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendering college_whitelists/index.html.erb within layouts/application + CollegeWhitelist Load (0.6ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1 [["college_id", 1]] + ↳ app/views/college_whitelists/index.html.erb:18 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:49 + College Load (4.2ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:50 + College Exists (0.7ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:46 + User Load (2.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:49 + CACHE College Load (0.0ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:50 + College Exists (1.7ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 2], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:46 + Administrator Exists (27.9ms) SELECT 1 AS one FROM "administrators" WHERE "administrators"."user_id" = $1 AND "administrators"."college_id" = $2 LIMIT $3 [["user_id", 2], ["college_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:49 + Rendered college_whitelists/index.html.erb within layouts/application (167.6ms) + FavoriteSpotted Exists (0.7ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (28.6ms) + Rendered layouts/_footer.html.erb (0.8ms) +Completed 200 OK in 4337ms (Views: 4288.2ms | ActiveRecord: 44.9ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:40:36 -0300 +Started PATCH "/colleges/1/college_whitelists/3/revoke?college_whitelist%5Bstatus%5D=approved" for 127.0.0.1 at 2019-12-04 11:41:14 -0300 +Processing by CollegeWhitelistsController#revoke as HTML + Parameters: {"authenticity_token"=>"wlm+CMLWa7N90C3YlDbQYtt0ECLlpBbH+807LsnM334r8udW+mDcjQvpCfM/DufY6UBGf1XWxlvb4Sgrz/OU7A==", "college_whitelist"=>{"status"=>"approved"}, "college_id"=>"1", "college_whitelist_id"=>"3"} + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.8ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:116 + CollegeWhitelist Load (0.6ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:54 +  (0.3ms) BEGIN + ↳ app/controllers/college_whitelists_controller.rb:56 + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:56 + College Load (3.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:56 + CollegeWhitelist Update (0.9ms) UPDATE "college_whitelists" SET "status" = $1, "updated_at" = $2 WHERE "college_whitelists"."id" = $3 [["status", 0], ["updated_at", "2019-12-04 14:41:14.969149"], ["id", 3]] + ↳ app/controllers/college_whitelists_controller.rb:56 +  (19.6ms) COMMIT + ↳ app/controllers/college_whitelists_controller.rb:56 +Redirected to http://localhost:3000/colleges/1/college_whitelists +Completed 302 Found in 45ms (ActiveRecord: 27.0ms) + + +Started GET "/colleges/1/college_whitelists" for 127.0.0.1 at 2019-12-04 11:41:15 -0300 +Processing by CollegeWhitelistsController#index as HTML + Parameters: {"college_id"=>"1"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/helpers/sessions_helper.rb:12 + College Load (0.6ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/college_whitelists_controller.rb:116 + College Exists (0.8ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:33 + Rendering college_whitelists/index.html.erb within layouts/application + CollegeWhitelist Load (1.3ms) SELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1 [["college_id", 1]] + ↳ app/views/college_whitelists/index.html.erb:18 + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:21 + College Load (0.5ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:25 + CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:49 + CACHE College Load (0.0ms) SELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/views/college_whitelists/index.html.erb:50 + College Exists (0.7ms) SELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3 [["user_id", 1], ["id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:46 + Rendered college_whitelists/index.html.erb within layouts/application (33.7ms) + FavoriteSpotted Exists (0.8ms) SELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2 [["user_id", 1], ["LIMIT", 1]] + ↳ app/controllers/application_controller.rb:23 + Rendered layouts/_header.html.erb (7.6ms) + Rendered layouts/_footer.html.erb (0.8ms) +Completed 200 OK in 271ms (Views: 256.7ms | ActiveRecord: 5.7ms) + + +Started GET "/serviceworker.js" for 127.0.0.1 at 2019-12-04 11:41:17 -0300 diff --git a/src/app/tmp/cache/bootsnap-load-path-cache b/src/app/tmp/cache/bootsnap-load-path-cache index 716b4438..f07da5d9 100644 Binary files a/src/app/tmp/cache/bootsnap-load-path-cache and b/src/app/tmp/cache/bootsnap-load-path-cache differ
<%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %>