class SchoolsController < ApplicationController

	def index
		@schools = School.all
	end

end
class SchoolsController < ApplicationController
	# skip_before_action :verify_authenticity_token
	def index
		# @schools = School.all
		gon.schools = School.all
	end


end
Add schools instance variable to index controller; use gon gem to also call all schools
Add schools instance variable to index controller; use gon gem to also call all schools
