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
+ [1m[35m (41.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
+ ↳ /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
+ [1m[36mUser Load (47.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1[0m [["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)
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1[0m [["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1[0m [["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1[0m [["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
+ [1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1[0m [["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)
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1[0m [["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1[0m [["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1[0m [["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"}
+ [1m[36mUser Load (24.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "fernando.kga@gmail.com"], ["LIMIT", 1]]
+ ↳ app/controllers/sessions_controller.rb:7
+ [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."nickname" = $1 LIMIT $2[0m [["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
+ [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ Rendered users/show.html.erb within layouts/application (10.5ms)
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mFavoriteSpotted Exists (13.2ms)[0m [1m[34mSELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2[0m [["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
+ [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ Rendering favorite_colleges/show.html.erb within layouts/application
+ [1m[36mFavoriteCollege Load (42.1ms)[0m [1m[34mSELECT "favorite_colleges".* FROM "favorite_colleges" WHERE "favorite_colleges"."user_id" = $1[0m [["user_id", 1]]
+ ↳ app/views/favorite_colleges/show.html.erb:6
+ [1m[36mCollege Load (21.4ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/favorite_colleges/show.html.erb:12
+ [1m[36mCollege Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:33
+ [1m[36mCACHE College Exists (0.0ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:33
+ Rendered favorite_colleges/show.html.erb within layouts/application (184.8ms)
+ [1m[36mFavoriteSpotted Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2[0m [["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"}
+ [1m[36mUser Load (1.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.7ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:115
+ [1m[36mCollege Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:33
+ Rendering college_whitelists/index.html.erb within layouts/application
+ [1m[36mCollegeWhitelist Load (56.7ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1 AND "college_whitelists"."user_id" = $2[0m [["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)
+ [1m[36mFavoriteSpotted Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2[0m [["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
+ [1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
+ ↳ bin/rails:9
+ [1m[35m (63.4ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
+ ↳ bin/rails:9
+ [1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
+ ↳ bin/rails:9
+ [1m[35m (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
+ ↳ bin/rails:9
+ [1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
+ ↳ bin/rails:9
+ [1m[35m (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
+ ↳ bin/rails:9
+ [1m[35m (941.6ms)[0m [1m[35mDROP DATABASE IF EXISTS "app_development"[0m
+ ↳ bin/rails:9
+ [1m[35m (500.7ms)[0m [1m[35mDROP DATABASE IF EXISTS "app_test"[0m
+ ↳ bin/rails:9
+ [1m[35m (2088.6ms)[0m [1m[35mCREATE DATABASE "app_development" ENCODING = 'unicode'[0m
+ ↳ bin/rails:9
+ [1m[35m (1026.9ms)[0m [1m[35mCREATE DATABASE "app_test" ENCODING = 'unicode'[0m
+ ↳ bin/rails:9
+ [1m[35mSQL (0.9ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ ↳ db/schema.rb:16
+ [1m[35m (48.3ms)[0m [1m[35mDROP TABLE IF EXISTS "administrators" CASCADE[0m
+ ↳ db/schema.rb:18
+ [1m[35m (183.0ms)[0m [1m[35mCREATE TABLE "administrators" ("id" bigserial primary key, "user_id" bigint, "college_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ ↳ db/schema.rb:18
+ [1m[35m (85.1ms)[0m [1m[35mCREATE INDEX "index_administrators_on_college_id" ON "administrators" ("college_id")[0m
+ ↳ db/schema.rb:18
+ [1m[35m (107.8ms)[0m [1m[35mCREATE INDEX "index_administrators_on_user_id" ON "administrators" ("user_id")[0m
+ ↳ db/schema.rb:18
+ [1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS "college_whitelists" CASCADE[0m
+ ↳ db/schema.rb:27
+ [1m[35m (98.9ms)[0m [1m[35mCREATE 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)[0m
+ ↳ db/schema.rb:27
+ [1m[35m (86.2ms)[0m [1m[35mCREATE INDEX "index_college_whitelists_on_college_id" ON "college_whitelists" ("college_id")[0m
+ ↳ db/schema.rb:27
+ [1m[35m (74.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_college_whitelists_on_user_id_and_college_id" ON "college_whitelists" ("user_id", "college_id")[0m
+ ↳ db/schema.rb:27
+ [1m[35m (74.6ms)[0m [1m[35mCREATE INDEX "index_college_whitelists_on_user_id" ON "college_whitelists" ("user_id")[0m
+ ↳ db/schema.rb:27
+ [1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS "colleges" CASCADE[0m
+ ↳ db/schema.rb:38
+ [1m[35m (151.8ms)[0m [1m[35mCREATE 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)[0m
+ ↳ db/schema.rb:38
+ [1m[35m (74.6ms)[0m [1m[35mCREATE INDEX "index_colleges_on_user_id" ON "colleges" ("user_id")[0m
+ ↳ db/schema.rb:38
+ [1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS "comments" CASCADE[0m
+ ↳ db/schema.rb:57
+ [1m[35m (154.5ms)[0m [1m[35mCREATE TABLE "comments" ("id" bigserial primary key, "user_id" bigint, "spotted_id" bigint, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ ↳ db/schema.rb:57
+ [1m[35m (85.3ms)[0m [1m[35mCREATE INDEX "index_comments_on_spotted_id" ON "comments" ("spotted_id")[0m
+ ↳ db/schema.rb:57
+ [1m[35m (74.9ms)[0m [1m[35mCREATE INDEX "index_comments_on_user_id" ON "comments" ("user_id")[0m
+ ↳ db/schema.rb:57
+ [1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS "favorite_colleges" CASCADE[0m
+ ↳ db/schema.rb:67
+ [1m[35m (125.1ms)[0m [1m[35mCREATE TABLE "favorite_colleges" ("id" bigserial primary key, "college_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ ↳ db/schema.rb:67
+ [1m[35m (0.5ms)[0m [1m[35mDROP TABLE IF EXISTS "favorite_spotteds" CASCADE[0m
+ ↳ db/schema.rb:74
+ [1m[35m (132.0ms)[0m [1m[35mCREATE TABLE "favorite_spotteds" ("id" bigserial primary key, "spotted_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ ↳ db/schema.rb:74
+ [1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS "likes" CASCADE[0m
+ ↳ db/schema.rb:81
+ [1m[35m (121.2ms)[0m [1m[35mCREATE TABLE "likes" ("id" bigserial primary key, "user_id" bigint, "spotted_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ ↳ db/schema.rb:81
+ [1m[35m (63.0ms)[0m [1m[35mCREATE INDEX "index_likes_on_spotted_id" ON "likes" ("spotted_id")[0m
+ ↳ db/schema.rb:81
+ [1m[35m (64.1ms)[0m [1m[35mCREATE INDEX "index_likes_on_user_id" ON "likes" ("user_id")[0m
+ ↳ db/schema.rb:81
+ [1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS "spotteds" CASCADE[0m
+ ↳ db/schema.rb:90
+ [1m[35m (211.3ms)[0m [1m[35mCREATE 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)[0m
+ ↳ db/schema.rb:90
+ [1m[35m (63.6ms)[0m [1m[35mCREATE INDEX "index_spotteds_on_college_id" ON "spotteds" ("college_id")[0m
+ ↳ db/schema.rb:90
+ [1m[35m (62.5ms)[0m [1m[35mCREATE INDEX "index_spotteds_on_user_id" ON "spotteds" ("user_id")[0m
+ ↳ db/schema.rb:90
+ [1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS "users" CASCADE[0m
+ ↳ db/schema.rb:106
+ [1m[35m (141.4ms)[0m [1m[35mCREATE 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)[0m
+ ↳ db/schema.rb:106
+ [1m[35m (10.4ms)[0m [1m[35mALTER TABLE "administrators" ADD CONSTRAINT "fk_rails_df680ac728"
+FOREIGN KEY ("college_id")
+ REFERENCES "colleges" ("id")
+[0m
+ ↳ db/schema.rb:123
+ [1m[35m (21.5ms)[0m [1m[35mALTER TABLE "administrators" ADD CONSTRAINT "fk_rails_2733f5ea0b"
+FOREIGN KEY ("user_id")
+ REFERENCES "users" ("id")
+[0m
+ ↳ db/schema.rb:124
+ [1m[35m (10.1ms)[0m [1m[35mALTER TABLE "college_whitelists" ADD CONSTRAINT "fk_rails_97d9690e4b"
+FOREIGN KEY ("college_id")
+ REFERENCES "colleges" ("id")
+[0m
+ ↳ db/schema.rb:125
+ [1m[35m (10.5ms)[0m [1m[35mALTER TABLE "college_whitelists" ADD CONSTRAINT "fk_rails_b7f63e7496"
+FOREIGN KEY ("user_id")
+ REFERENCES "users" ("id")
+[0m
+ ↳ db/schema.rb:126
+ [1m[35m (10.4ms)[0m [1m[35mALTER TABLE "colleges" ADD CONSTRAINT "fk_rails_49306e4f49"
+FOREIGN KEY ("user_id")
+ REFERENCES "users" ("id")
+[0m
+ ↳ db/schema.rb:127
+ [1m[35m (10.3ms)[0m [1m[35mALTER TABLE "comments" ADD CONSTRAINT "fk_rails_ff224da44e"
+FOREIGN KEY ("spotted_id")
+ REFERENCES "spotteds" ("id")
+[0m
+ ↳ db/schema.rb:128
+ [1m[35m (9.7ms)[0m [1m[35mALTER TABLE "comments" ADD CONSTRAINT "fk_rails_03de2dc08c"
+FOREIGN KEY ("user_id")
+ REFERENCES "users" ("id")
+[0m
+ ↳ db/schema.rb:129
+ [1m[35m (10.4ms)[0m [1m[35mALTER TABLE "likes" ADD CONSTRAINT "fk_rails_c9334a5f5a"
+FOREIGN KEY ("spotted_id")
+ REFERENCES "spotteds" ("id")
+[0m
+ ↳ db/schema.rb:130
+ [1m[35m (10.5ms)[0m [1m[35mALTER TABLE "likes" ADD CONSTRAINT "fk_rails_1e09b5dabf"
+FOREIGN KEY ("user_id")
+ REFERENCES "users" ("id")
+[0m
+ ↳ db/schema.rb:131
+ [1m[35m (10.9ms)[0m [1m[35mALTER TABLE "spotteds" ADD CONSTRAINT "fk_rails_86620d5d51"
+FOREIGN KEY ("college_id")
+ REFERENCES "colleges" ("id")
+[0m
+ ↳ db/schema.rb:132
+ [1m[35m (10.1ms)[0m [1m[35mALTER TABLE "spotteds" ADD CONSTRAINT "fk_rails_0aa5129631"
+FOREIGN KEY ("user_id")
+ REFERENCES "users" ("id")
+[0m
+ ↳ db/schema.rb:133
+ [1m[35m (176.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
+ ↳ db/schema.rb:13
+ [1m[35m (1.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
+ ↳ db/schema.rb:13
+ [1m[35m (7.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20191117102711)[0m
+ ↳ db/schema.rb:13
+ [1m[35m (10.6ms)[0m [1m[32mINSERT 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);
+
+[0m
+ ↳ db/schema.rb:13
+ [1m[35m (154.3ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ ↳ db/schema.rb:13
+ [1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
+ ↳ db/schema.rb:13
+ [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
+ ↳ db/schema.rb:13
+ [1m[36mActiveRecord::InternalMetadata Create (0.7ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["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
+ [1m[35m (6.7ms)[0m [1m[35mCOMMIT[0m
+ ↳ db/schema.rb:13
+ [1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
+ ↳ bin/rails:9
+ [1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
+ ↳ bin/rails:9
+ [1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
+ ↳ bin/rails:9
+ [1m[35mSQL (0.6ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ ↳ db/schema.rb:16
+ [1m[35m (0.5ms)[0m [1m[35mDROP TABLE IF EXISTS "administrators" CASCADE[0m
+ ↳ db/schema.rb:18
+ [1m[35m (120.9ms)[0m [1m[35mCREATE TABLE "administrators" ("id" bigserial primary key, "user_id" bigint, "college_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ ↳ db/schema.rb:18
+ [1m[35m (60.9ms)[0m [1m[35mCREATE INDEX "index_administrators_on_college_id" ON "administrators" ("college_id")[0m
+ ↳ db/schema.rb:18
+ [1m[35m (74.8ms)[0m [1m[35mCREATE INDEX "index_administrators_on_user_id" ON "administrators" ("user_id")[0m
+ ↳ db/schema.rb:18
+ [1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS "college_whitelists" CASCADE[0m
+ ↳ db/schema.rb:27
+ [1m[35m (75.3ms)[0m [1m[35mCREATE 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)[0m
+ ↳ db/schema.rb:27
+ [1m[35m (63.0ms)[0m [1m[35mCREATE INDEX "index_college_whitelists_on_college_id" ON "college_whitelists" ("college_id")[0m
+ ↳ db/schema.rb:27
+ [1m[35m (64.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_college_whitelists_on_user_id_and_college_id" ON "college_whitelists" ("user_id", "college_id")[0m
+ ↳ db/schema.rb:27
+ [1m[35m (72.0ms)[0m [1m[35mCREATE INDEX "index_college_whitelists_on_user_id" ON "college_whitelists" ("user_id")[0m
+ ↳ db/schema.rb:27
+ [1m[35m (0.5ms)[0m [1m[35mDROP TABLE IF EXISTS "colleges" CASCADE[0m
+ ↳ db/schema.rb:38
+ [1m[35m (127.6ms)[0m [1m[35mCREATE 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)[0m
+ ↳ db/schema.rb:38
+ [1m[35m (63.0ms)[0m [1m[35mCREATE INDEX "index_colleges_on_user_id" ON "colleges" ("user_id")[0m
+ ↳ db/schema.rb:38
+ [1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS "comments" CASCADE[0m
+ ↳ db/schema.rb:57
+ [1m[35m (119.9ms)[0m [1m[35mCREATE TABLE "comments" ("id" bigserial primary key, "user_id" bigint, "spotted_id" bigint, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ ↳ db/schema.rb:57
+ [1m[35m (63.7ms)[0m [1m[35mCREATE INDEX "index_comments_on_spotted_id" ON "comments" ("spotted_id")[0m
+ ↳ db/schema.rb:57
+ [1m[35m (61.8ms)[0m [1m[35mCREATE INDEX "index_comments_on_user_id" ON "comments" ("user_id")[0m
+ ↳ db/schema.rb:57
+ [1m[35m (1.2ms)[0m [1m[35mDROP TABLE IF EXISTS "favorite_colleges" CASCADE[0m
+ ↳ db/schema.rb:67
+ [1m[35m (63.5ms)[0m [1m[35mCREATE TABLE "favorite_colleges" ("id" bigserial primary key, "college_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ ↳ db/schema.rb:67
+ [1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "favorite_spotteds" CASCADE[0m
+ ↳ db/schema.rb:74
+ [1m[35m (75.7ms)[0m [1m[35mCREATE TABLE "favorite_spotteds" ("id" bigserial primary key, "spotted_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ ↳ db/schema.rb:74
+ [1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS "likes" CASCADE[0m
+ ↳ db/schema.rb:81
+ [1m[35m (64.9ms)[0m [1m[35mCREATE TABLE "likes" ("id" bigserial primary key, "user_id" bigint, "spotted_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ ↳ db/schema.rb:81
+ [1m[35m (62.9ms)[0m [1m[35mCREATE INDEX "index_likes_on_spotted_id" ON "likes" ("spotted_id")[0m
+ ↳ db/schema.rb:81
+ [1m[35m (63.2ms)[0m [1m[35mCREATE INDEX "index_likes_on_user_id" ON "likes" ("user_id")[0m
+ ↳ db/schema.rb:81
+ [1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS "spotteds" CASCADE[0m
+ ↳ db/schema.rb:90
+ [1m[35m (109.4ms)[0m [1m[35mCREATE 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)[0m
+ ↳ db/schema.rb:90
+ [1m[35m (63.9ms)[0m [1m[35mCREATE INDEX "index_spotteds_on_college_id" ON "spotteds" ("college_id")[0m
+ ↳ db/schema.rb:90
+ [1m[35m (74.3ms)[0m [1m[35mCREATE INDEX "index_spotteds_on_user_id" ON "spotteds" ("user_id")[0m
+ ↳ db/schema.rb:90
+ [1m[35m (0.8ms)[0m [1m[35mDROP TABLE IF EXISTS "users" CASCADE[0m
+ ↳ db/schema.rb:106
+ [1m[35m (118.2ms)[0m [1m[35mCREATE 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)[0m
+ ↳ db/schema.rb:106
+ [1m[35m (9.9ms)[0m [1m[35mALTER TABLE "administrators" ADD CONSTRAINT "fk_rails_df680ac728"
+FOREIGN KEY ("college_id")
+ REFERENCES "colleges" ("id")
+[0m
+ ↳ db/schema.rb:123
+ [1m[35m (10.5ms)[0m [1m[35mALTER TABLE "administrators" ADD CONSTRAINT "fk_rails_2733f5ea0b"
+FOREIGN KEY ("user_id")
+ REFERENCES "users" ("id")
+[0m
+ ↳ db/schema.rb:124
+ [1m[35m (9.8ms)[0m [1m[35mALTER TABLE "college_whitelists" ADD CONSTRAINT "fk_rails_97d9690e4b"
+FOREIGN KEY ("college_id")
+ REFERENCES "colleges" ("id")
+[0m
+ ↳ db/schema.rb:125
+ [1m[35m (10.4ms)[0m [1m[35mALTER TABLE "college_whitelists" ADD CONSTRAINT "fk_rails_b7f63e7496"
+FOREIGN KEY ("user_id")
+ REFERENCES "users" ("id")
+[0m
+ ↳ db/schema.rb:126
+ [1m[35m (8.3ms)[0m [1m[35mALTER TABLE "colleges" ADD CONSTRAINT "fk_rails_49306e4f49"
+FOREIGN KEY ("user_id")
+ REFERENCES "users" ("id")
+[0m
+ ↳ db/schema.rb:127
+ [1m[35m (10.4ms)[0m [1m[35mALTER TABLE "comments" ADD CONSTRAINT "fk_rails_ff224da44e"
+FOREIGN KEY ("spotted_id")
+ REFERENCES "spotteds" ("id")
+[0m
+ ↳ db/schema.rb:128
+ [1m[35m (9.6ms)[0m [1m[35mALTER TABLE "comments" ADD CONSTRAINT "fk_rails_03de2dc08c"
+FOREIGN KEY ("user_id")
+ REFERENCES "users" ("id")
+[0m
+ ↳ db/schema.rb:129
+ [1m[35m (10.1ms)[0m [1m[35mALTER TABLE "likes" ADD CONSTRAINT "fk_rails_c9334a5f5a"
+FOREIGN KEY ("spotted_id")
+ REFERENCES "spotteds" ("id")
+[0m
+ ↳ db/schema.rb:130
+ [1m[35m (10.5ms)[0m [1m[35mALTER TABLE "likes" ADD CONSTRAINT "fk_rails_1e09b5dabf"
+FOREIGN KEY ("user_id")
+ REFERENCES "users" ("id")
+[0m
+ ↳ db/schema.rb:131
+ [1m[35m (9.2ms)[0m [1m[35mALTER TABLE "spotteds" ADD CONSTRAINT "fk_rails_86620d5d51"
+FOREIGN KEY ("college_id")
+ REFERENCES "colleges" ("id")
+[0m
+ ↳ db/schema.rb:132
+ [1m[35m (10.8ms)[0m [1m[35mALTER TABLE "spotteds" ADD CONSTRAINT "fk_rails_0aa5129631"
+FOREIGN KEY ("user_id")
+ REFERENCES "users" ("id")
+[0m
+ ↳ db/schema.rb:133
+ [1m[35m (118.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
+ ↳ db/schema.rb:13
+ [1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
+ ↳ db/schema.rb:13
+ [1m[35m (6.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20191117102711)[0m
+ ↳ db/schema.rb:13
+ [1m[35m (10.6ms)[0m [1m[32mINSERT 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);
+
+[0m
+ ↳ db/schema.rb:13
+ [1m[35m (120.4ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
+ ↳ db/schema.rb:13
+ [1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
+ ↳ db/schema.rb:13
+ [1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
+ ↳ db/schema.rb:13
+ [1m[36mActiveRecord::InternalMetadata Create (1.1ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["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
+ [1m[35m (13.4ms)[0m [1m[35mCOMMIT[0m
+ ↳ db/schema.rb:13
+ [1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
+ ↳ bin/rails:9
+ [1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
+ ↳ bin/rails:9
+ [1m[36mActiveRecord::InternalMetadata Update (0.6ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "test"], ["updated_at", "2019-11-21 01:43:34.197102"], ["key", "environment"]]
+ ↳ bin/rails:9
+ [1m[35m (12.5ms)[0m [1m[35mCOMMIT[0m
+ ↳ bin/rails:9
+ [1m[35m (1.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
+ ↳ bin/rails:9
+Started GET "/users/1" for 127.0.0.1 at 2019-11-20 22:48:48 -0300
+ [1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
+ ↳ /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
+ [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["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:
+ 16:
+ 17:
+ 18: <% @college_whitelists.each do |college_whitelist| %>
+ 19: <% if (college_whitelist.status == 'pending') %>
+ 20:
+ 21: <%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %> |
+
+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"}
+ [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.6ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:116
+ [1m[36mCollegeWhitelist Load (0.8ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:96
+ [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
+ ↳ app/controllers/college_whitelists_controller.rb:98
+ [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:98
+ [1m[36mCollege Load (0.6ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:98
+ [1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
+ ↳ 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:
+ 18: <% @college_whitelists.each do |college_whitelist| %>
+ 19: <% if (college_whitelist.status == 'pending') %>
+ 20:
+ 21: <%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %> |
+
+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
+ [1m[35m (47.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
+ ↳ /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
+ [1m[36mUser Load (9.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1[0m [["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)
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1[0m [["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1[0m [["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCACHE User Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1[0m [["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
+ [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1[0m [["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)
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1[0m [["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1[0m [["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT $1[0m [["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"}
+ [1m[36mUser Load (52.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "fernando.kga@gmail.com"], ["LIMIT", 1]]
+ ↳ app/controllers/sessions_controller.rb:7
+ [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."nickname" = $1 LIMIT $2[0m [["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
+ [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ Rendered users/show.html.erb within layouts/application (8.5ms)
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mFavoriteSpotted Exists (13.2ms)[0m [1m[34mSELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2[0m [["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
+ [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ Rendering favorite_colleges/show.html.erb within layouts/application
+ [1m[36mFavoriteCollege Load (76.6ms)[0m [1m[34mSELECT "favorite_colleges".* FROM "favorite_colleges" WHERE "favorite_colleges"."user_id" = $1[0m [["user_id", 1]]
+ ↳ app/views/favorite_colleges/show.html.erb:6
+ [1m[36mCollege Load (39.9ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/favorite_colleges/show.html.erb:12
+ [1m[36mCollege Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:33
+ [1m[36mCACHE College Exists (0.0ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:33
+ [1m[36mCollege Load (0.7ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/views/favorite_colleges/show.html.erb:12
+ [1m[36mCollege Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 2], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:33
+ [1m[36mCACHE College Exists (0.0ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 2], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:33
+ Rendered favorite_colleges/show.html.erb within layouts/application (211.0ms)
+ [1m[36mFavoriteSpotted Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2[0m [["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"}
+ [1m[36mUser Load (1.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (1.8ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:116
+ [1m[36mCollege Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:33
+ Rendering college_whitelists/index.html.erb within layouts/application
+ [1m[36mCollegeWhitelist Load (31.4ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1[0m [["college_id", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:18
+ [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:21
+ [1m[36mCollege Load (1.4ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:25
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:49
+ [1m[36mCACHE College Load (0.0ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:50
+ [1m[36mCollege Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:46
+ Rendered college_whitelists/index.html.erb within layouts/application (118.6ms)
+ [1m[36mFavoriteSpotted Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2[0m [["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"}
+ [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (1.0ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:116
+ [1m[36mCollegeWhitelist Load (0.5ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:96
+ [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
+ ↳ app/controllers/college_whitelists_controller.rb:98
+ [1m[36mUser Load (0.9ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:98
+ [1m[36mCollege Load (0.8ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:98
+ [1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
+ ↳ 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:
+ 18: <% @college_whitelists.each do |college_whitelist| %>
+ 19: <% if (college_whitelist.status == 'pending') %>
+ 20:
+ 21: <%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %> |
+
+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"}
+ [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.5ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:117
+ [1m[36mCollegeWhitelist Load (0.6ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:97
+ [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
+ ↳ app/controllers/college_whitelists_controller.rb:99
+ [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:99
+ [1m[36mCollege Load (0.5ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:99
+ [1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
+ ↳ 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:
+ 18: <% @college_whitelists.each do |college_whitelist| %>
+ 19: <% if (college_whitelist.status == 'pending') %>
+ 20:
+ 21: <%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %> |
+
+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"}
+ [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.5ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:117
+ [1m[36mCollege Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:33
+ Rendering college_whitelists/index.html.erb within layouts/application
+ [1m[36mCollegeWhitelist Load (1.4ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1[0m [["college_id", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:18
+ [1m[36mUser Load (1.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:21
+ [1m[36mCollege Load (0.6ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:25
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:49
+ [1m[36mCACHE College Load (0.0ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:50
+ [1m[36mCollege Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["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
+ [1m[36mFavoriteSpotted Exists (1.6ms)[0m [1m[34mSELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2[0m [["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"}
+ [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.7ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:117
+ [1m[36mCollegeWhitelist Load (0.8ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:97
+ [1m[35m (1.2ms)[0m [1m[35mBEGIN[0m
+ ↳ app/controllers/college_whitelists_controller.rb:99
+ [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:99
+ [1m[36mCollege Load (1.8ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:99
+ [1m[35m (5.2ms)[0m [1m[31mROLLBACK[0m
+ ↳ 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:
+ 18: <% @college_whitelists.each do |college_whitelist| %>
+ 19: <% if (college_whitelist.status == 'pending') %>
+ 20:
+ 21: <%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %> |
+
+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
+ [1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
+ ↳ /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"}
+ [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.6ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:117
+ [1m[36mCollege Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:33
+ Rendering college_whitelists/index.html.erb within layouts/application
+ [1m[36mCollegeWhitelist Load (0.7ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1[0m [["college_id", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:18
+ [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:21
+ [1m[36mCollege Load (0.7ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:25
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:49
+ [1m[36mCACHE College Load (0.0ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:50
+ [1m[36mCollege Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:46
+ Rendered college_whitelists/index.html.erb within layouts/application (71.1ms)
+ [1m[36mFavoriteSpotted Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2[0m [["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"}
+ [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (3.0ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:117
+ [1m[36mCollegeWhitelist Load (0.6ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:97
+ [1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
+ ↳ app/controllers/college_whitelists_controller.rb:99
+ [1m[36mUser Load (2.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:99
+ [1m[36mCollege Load (1.1ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:99
+ [1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
+ ↳ 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:
+ 18: <% @college_whitelists.each do |college_whitelist| %>
+ 19: <% if (college_whitelist.status == 'pending') %>
+ 20:
+ 21: <%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %> |
+
+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"}
+ [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.6ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:117
+ [1m[36mCollege Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:33
+ Rendering college_whitelists/index.html.erb within layouts/application
+ [1m[36mCollegeWhitelist Load (0.6ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1[0m [["college_id", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:18
+ [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:21
+ [1m[36mCollege Load (0.6ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:25
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:49
+ [1m[36mCACHE College Load (0.0ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:50
+ [1m[36mCollege Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:46
+ Rendered college_whitelists/index.html.erb within layouts/application (32.5ms)
+ [1m[36mFavoriteSpotted Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2[0m [["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"}
+ [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.4ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:117
+ [1m[36mCollegeWhitelist Load (0.5ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:96
+ [1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
+ ↳ app/controllers/college_whitelists_controller.rb:98
+ [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:98
+ [1m[36mCollege Load (0.4ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:98
+ [1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
+ ↳ 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:
+ 18: <% @college_whitelists.each do |college_whitelist| %>
+ 19: <% if (college_whitelist.status == 'pending') %>
+ 20:
+ 21: <%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %> |
+
+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"}
+ [1m[36mUser Load (1.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.8ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:117
+ [1m[36mCollege Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:33
+ Rendering college_whitelists/index.html.erb within layouts/application
+ [1m[36mCollegeWhitelist Load (0.5ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1[0m [["college_id", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:18
+ [1m[36mUser Load (4.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:21
+ [1m[36mCollege Load (1.3ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:25
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:49
+ [1m[36mCACHE College Load (0.0ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:50
+ [1m[36mCollege Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:46
+ Rendered college_whitelists/index.html.erb within layouts/application (19.2ms)
+ [1m[36mFavoriteSpotted Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2[0m [["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"}
+ [1m[36mUser Load (2.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.8ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:117
+ [1m[36mCollege Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:33
+ Rendering college_whitelists/index.html.erb within layouts/application
+ [1m[36mCollegeWhitelist Load (3.2ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1[0m [["college_id", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:18
+ [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:21
+ [1m[36mCollege Load (0.6ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:25
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:49
+ [1m[36mCACHE College Load (0.0ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:50
+ [1m[36mCollege Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["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
+ [1m[36mFavoriteSpotted Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2[0m [["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"}
+ [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.6ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:117
+ [1m[36mCollegeWhitelist Load (2.3ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:96
+ [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
+ ↳ app/controllers/college_whitelists_controller.rb:98
+ [1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:98
+ [1m[36mCollege Load (0.5ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:98
+ [1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
+ ↳ 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:
+ 18: <% @college_whitelists.each do |college_whitelist| %>
+ 19: <% if (college_whitelist.status == 'pending') %>
+ 20:
+ 21: <%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %> |
+
+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
+ [1m[35m (1.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
+ ↳ /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"}
+ [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.6ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:117
+ [1m[36mCollege Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:33
+ Rendering college_whitelists/index.html.erb within layouts/application
+ [1m[36mCollegeWhitelist Load (0.7ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1[0m [["college_id", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:18
+ [1m[36mUser Load (1.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:21
+ [1m[36mCollege Load (0.7ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:25
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:49
+ [1m[36mCACHE College Load (0.0ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:50
+ [1m[36mCollege Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:46
+ Rendered college_whitelists/index.html.erb within layouts/application (88.9ms)
+ [1m[36mFavoriteSpotted Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2[0m [["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"}
+ [1m[36mUser Load (0.9ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.6ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:117
+ [1m[36mCollegeWhitelist Load (0.4ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:96
+ [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
+ ↳ app/controllers/college_whitelists_controller.rb:98
+ [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:98
+ [1m[36mCollege Load (1.5ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:98
+ [1m[35m (1.2ms)[0m [1m[31mROLLBACK[0m
+ ↳ 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:
+ 18: <% @college_whitelists.each do |college_whitelist| %>
+ 19: <% if (college_whitelist.status == 'pending') %>
+ 20:
+ 21: <%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %> |
+
+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"}
+ [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.6ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:117
+ [1m[36mCollegeWhitelist Load (1.2ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:96
+ [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
+ ↳ app/controllers/college_whitelists_controller.rb:98
+ [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:98
+ [1m[36mCollege Load (0.6ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:98
+ [1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
+ ↳ 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:
+ 18: <% @college_whitelists.each do |college_whitelist| %>
+ 19: <% if (college_whitelist.status == 'pending') %>
+ 20:
+ 21: <%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %> |
+
+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"}
+ [1m[36mUser Load (0.9ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (1.2ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:117
+ [1m[36mCollege Exists (5.4ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:33
+ Rendering college_whitelists/index.html.erb within layouts/application
+ [1m[36mCollegeWhitelist Load (0.8ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1[0m [["college_id", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:18
+ [1m[36mUser Load (1.9ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:21
+ [1m[36mCollege Load (0.8ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:25
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:49
+ [1m[36mCACHE College Load (0.0ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:50
+ [1m[36mCollege Exists (3.2ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:46
+ Rendered college_whitelists/index.html.erb within layouts/application (36.4ms)
+ [1m[36mFavoriteSpotted Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2[0m [["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"}
+ [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.6ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:117
+ [1m[36mCollegeWhitelist Load (0.6ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:96
+ [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
+ ↳ app/controllers/college_whitelists_controller.rb:98
+ [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:98
+ [1m[36mCollege Load (0.7ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:98
+ [1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
+ ↳ 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:
+ 18: <% @college_whitelists.each do |college_whitelist| %>
+ 19: <% if (college_whitelist.status == 'pending') %>
+ 20:
+ 21: <%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %> |
+
+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"}
+ [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.5ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:118
+ [1m[36mCollegeWhitelist Load (0.5ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:96
+ [1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
+ ↳ app/controllers/college_whitelists_controller.rb:99
+ [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:99
+ [1m[36mCollege Load (0.6ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:99
+ [1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
+ ↳ 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:
+ 18: <% @college_whitelists.each do |college_whitelist| %>
+ 19: <% if (college_whitelist.status == 'pending') %>
+ 20:
+ 21: <%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %> |
+
+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"}
+ [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.8ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:118
+ [1m[36mCollege Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:33
+ Rendering college_whitelists/index.html.erb within layouts/application
+ [1m[36mCollegeWhitelist Load (0.7ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1[0m [["college_id", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:18
+ [1m[36mUser Load (2.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:21
+ [1m[36mCollege Load (0.8ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:25
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:49
+ [1m[36mCACHE College Load (0.0ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:50
+ [1m[36mCollege Exists (1.7ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:46
+ Rendered college_whitelists/index.html.erb within layouts/application (61.4ms)
+ [1m[36mFavoriteSpotted Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2[0m [["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"}
+ [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.8ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:118
+ [1m[36mCollegeWhitelist Load (1.1ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:96
+ [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
+ ↳ app/controllers/college_whitelists_controller.rb:99
+ [1m[36mUser Load (1.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:99
+ [1m[36mCollege Load (0.6ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:99
+ [1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
+ ↳ 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:
+ 18: <% @college_whitelists.each do |college_whitelist| %>
+ 19: <% if (college_whitelist.status == 'pending') %>
+ 20:
+ 21: <%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %> |
+
+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"}
+ [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (1.0ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:119
+ [1m[36mCollege Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:33
+ Rendering college_whitelists/index.html.erb within layouts/application
+ [1m[36mCollegeWhitelist Load (0.7ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1[0m [["college_id", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:18
+ [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:21
+ [1m[36mCollege Load (0.7ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:25
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:49
+ [1m[36mCACHE College Load (0.0ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:50
+ [1m[36mCollege Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:46
+ Rendered college_whitelists/index.html.erb within layouts/application (41.5ms)
+ [1m[36mFavoriteSpotted Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2[0m [["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"}
+ [1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.6ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:119
+ [1m[36mCollegeWhitelist Load (0.7ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:96
+ [1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[36mCollege Load (0.6ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
+ ↳ 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:
+ 18: <% @college_whitelists.each do |college_whitelist| %>
+ 19: <% if (college_whitelist.status == 'pending') %>
+ 20:
+ 21: <%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %> |
+
+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"}
+ [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (1.4ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:119
+ [1m[36mCollegeWhitelist Load (0.8ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:96
+ [1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[36mCollege Load (2.3ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
+ ↳ 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:
+ 18: <% @college_whitelists.each do |college_whitelist| %>
+ 19: <% if (college_whitelist.status == 'pending') %>
+ 20:
+ 21: <%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %> |
+
+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"}
+ [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.8ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:119
+ [1m[36mCollege Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:33
+ Rendering college_whitelists/index.html.erb within layouts/application
+ [1m[36mCollegeWhitelist Load (0.6ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1[0m [["college_id", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:18
+ [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:21
+ [1m[36mCollege Load (0.6ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:25
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:49
+ [1m[36mCACHE College Load (0.0ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:50
+ [1m[36mCollege Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:46
+ Rendered college_whitelists/index.html.erb within layouts/application (175.4ms)
+ [1m[36mFavoriteSpotted Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2[0m [["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"}
+ [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.6ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:119
+ [1m[36mCollegeWhitelist Load (9.6ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["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"}
+ [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.8ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:119
+ [1m[36mCollegeWhitelist Load (0.9ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["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"}
+ [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.6ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:119
+ [1m[36mCollege Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:33
+ Rendering college_whitelists/index.html.erb within layouts/application
+ [1m[36mCollegeWhitelist Load (0.4ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1[0m [["college_id", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:18
+ [1m[36mUser Load (1.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:21
+ [1m[36mCollege Load (0.6ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:25
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:49
+ [1m[36mCACHE College Load (0.0ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:50
+ [1m[36mCollege Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:46
+ Rendered college_whitelists/index.html.erb within layouts/application (62.9ms)
+ [1m[36mFavoriteSpotted Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2[0m [["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"}
+ [1m[36mUser Load (1.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.8ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:119
+ [1m[36mCollegeWhitelist Load (0.7ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["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"}
+ [1m[36mUser Load (1.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.8ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:119
+ [1m[36mCollegeWhitelist Load (0.6ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:96
+ [1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[36mCollege Load (0.5ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[35m (2.9ms)[0m [1m[31mROLLBACK[0m
+ ↳ 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:
+ 18: <% @college_whitelists.each do |college_whitelist| %>
+ 19: <% if (college_whitelist.status == 'pending') %>
+ 20:
+ 21: <%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %> |
+
+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"}
+ [1m[36mUser Load (1.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (1.1ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:119
+ [1m[36mCollegeWhitelist Load (0.6ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:96
+ [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[36mCollege Load (0.6ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
+ ↳ 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:
+ 18: <% @college_whitelists.each do |college_whitelist| %>
+ 19: <% if (college_whitelist.status == 'pending') %>
+ 20:
+ 21: <%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %> |
+
+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
+ [1m[35m (52.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
+ ↳ /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"}
+ [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.7ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:119
+ [1m[36mCollegeWhitelist Load (0.7ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:96
+ [1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[36mCollege Load (0.5ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
+ ↳ 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:
+ 18: <% @college_whitelists.each do |college_whitelist| %>
+ 19: <% if (college_whitelist.status == 'pending') %>
+ 20:
+ 21: <%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %> |
+
+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"}
+ [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.5ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:119
+ [1m[36mCollegeWhitelist Load (0.5ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:96
+ [1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[36mCollege Load (0.5ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
+ ↳ 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:
+ 18: <% @college_whitelists.each do |college_whitelist| %>
+ 19: <% if (college_whitelist.status == 'pending') %>
+ 20:
+ 21: <%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %> |
+
+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"}
+ [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.7ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:118
+ [1m[36mCollegeWhitelist Load (0.5ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:96
+ [1m[35m (1.3ms)[0m [1m[35mBEGIN[0m
+ ↳ app/controllers/college_whitelists_controller.rb:99
+ [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:99
+ [1m[36mCollege Load (0.7ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:99
+ [1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
+ ↳ 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:
+ 18: <% @college_whitelists.each do |college_whitelist| %>
+ 19: <% if (college_whitelist.status == 'pending') %>
+ 20:
+ 21: <%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %> |
+
+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"}
+ [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.4ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:119
+ [1m[36mCollegeWhitelist Load (0.5ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["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"}
+ [1m[36mUser Load (1.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.5ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:119
+ [1m[36mCollegeWhitelist Load (0.5ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:96
+ [1m[35m (1.4ms)[0m [1m[35mBEGIN[0m
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[36mUser Load (1.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[36mCollege Load (0.8ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
+ ↳ 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:
+ 18: <% @college_whitelists.each do |college_whitelist| %>
+ 19: <% if (college_whitelist.status == 'pending') %>
+ 20:
+ 21: <%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %> |
+
+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"}
+ [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.4ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:119
+ [1m[36mCollegeWhitelist Load (1.1ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:96
+ [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[36mUser Load (2.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[36mCollege Load (0.9ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
+ ↳ 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:
+ 18: <% @college_whitelists.each do |college_whitelist| %>
+ 19: <% if (college_whitelist.status == 'pending') %>
+ 20:
+ 21: <%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %> |
+
+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"}
+ [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.6ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:119
+ [1m[36mCollegeWhitelist Load (0.4ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:96
+ [1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[36mUser Load (2.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[36mCollege Load (0.6ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
+ ↳ 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:
+ 18: <% @college_whitelists.each do |college_whitelist| %>
+ 19: <% if (college_whitelist.status == 'pending') %>
+ 20:
+ 21: <%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %> |
+
+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"}
+ [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.6ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:119
+ [1m[36mCollegeWhitelist Load (0.6ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["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"}
+ [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.5ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:119
+ [1m[36mCollegeWhitelist Load (0.4ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:96
+ [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[36mCollege Load (0.8ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
+ ↳ 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:
+ 18: <% @college_whitelists.each do |college_whitelist| %>
+ 19: <% if (college_whitelist.status == 'pending') %>
+ 20:
+ 21: <%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %> |
+
+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"}
+ [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.4ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:119
+ [1m[36mCollegeWhitelist Load (0.5ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["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"}
+ [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.7ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:119
+ [1m[36mCollegeWhitelist Load (0.4ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:96
+ [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[36mCollege Load (0.5ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:100
+ [1m[35m (1.8ms)[0m [1m[31mROLLBACK[0m
+ ↳ 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:
+ 18: <% @college_whitelists.each do |college_whitelist| %>
+ 19: <% if (college_whitelist.status == 'pending') %>
+ 20:
+ 21: <%= college_whitelist.user.first_name + ' ' + college_whitelist.user.last_name %> |
+
+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"}
+ [1m[36mUser Load (0.9ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.4ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:116
+ [1m[36mCollegeWhitelist Load (0.4ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:96
+ [1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
+ ↳ app/controllers/college_whitelists_controller.rb:98
+ [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:98
+ [1m[36mCollege Load (0.7ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:98
+ [1m[36mCollegeWhitelist Update (157.7ms)[0m [1m[33mUPDATE "college_whitelists" SET "status" = $1, "updated_at" = $2 WHERE "college_whitelists"."id" = $3[0m [["status", 1], ["updated_at", "2019-12-04 14:40:28.680502"], ["id", 3]]
+ ↳ app/controllers/college_whitelists_controller.rb:98
+ [1m[35m (35.2ms)[0m [1m[35mCOMMIT[0m
+ ↳ 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"}
+ [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.3ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:116
+ [1m[36mCollege Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:33
+ Rendering college_whitelists/index.html.erb within layouts/application
+ [1m[36mCollegeWhitelist Load (0.6ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1[0m [["college_id", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:18
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:49
+ [1m[36mCollege Load (4.2ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:50
+ [1m[36mCollege Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:46
+ [1m[36mUser Load (2.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:49
+ [1m[36mCACHE College Load (0.0ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:50
+ [1m[36mCollege Exists (1.7ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 2], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:46
+ [1m[36mAdministrator Exists (27.9ms)[0m [1m[34mSELECT 1 AS one FROM "administrators" WHERE "administrators"."user_id" = $1 AND "administrators"."college_id" = $2 LIMIT $3[0m [["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)
+ [1m[36mFavoriteSpotted Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2[0m [["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"}
+ [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.8ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:116
+ [1m[36mCollegeWhitelist Load (0.6ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:54
+ [1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
+ ↳ app/controllers/college_whitelists_controller.rb:56
+ [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:56
+ [1m[36mCollege Load (3.6ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:56
+ [1m[36mCollegeWhitelist Update (0.9ms)[0m [1m[33mUPDATE "college_whitelists" SET "status" = $1, "updated_at" = $2 WHERE "college_whitelists"."id" = $3[0m [["status", 0], ["updated_at", "2019-12-04 14:41:14.969149"], ["id", 3]]
+ ↳ app/controllers/college_whitelists_controller.rb:56
+ [1m[35m (19.6ms)[0m [1m[35mCOMMIT[0m
+ ↳ 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"}
+ [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/helpers/sessions_helper.rb:12
+ [1m[36mCollege Load (0.6ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/college_whitelists_controller.rb:116
+ [1m[36mCollege Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:33
+ Rendering college_whitelists/index.html.erb within layouts/application
+ [1m[36mCollegeWhitelist Load (1.3ms)[0m [1m[34mSELECT "college_whitelists".* FROM "college_whitelists" WHERE "college_whitelists"."college_id" = $1[0m [["college_id", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:18
+ [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:21
+ [1m[36mCollege Load (0.5ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:25
+ [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:49
+ [1m[36mCACHE College Load (0.0ms)[0m [1m[34mSELECT "colleges".* FROM "colleges" WHERE "colleges"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
+ ↳ app/views/college_whitelists/index.html.erb:50
+ [1m[36mCollege Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "colleges" WHERE "colleges"."user_id" = $1 AND "colleges"."id" = $2 LIMIT $3[0m [["user_id", 1], ["id", 1], ["LIMIT", 1]]
+ ↳ app/controllers/application_controller.rb:46
+ Rendered college_whitelists/index.html.erb within layouts/application (33.7ms)
+ [1m[36mFavoriteSpotted Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "favorite_spotteds" WHERE "favorite_spotteds"."user_id" = $1 LIMIT $2[0m [["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