showing year data on school page

This commit is contained in:
Jared Cosulich 2018-07-21 12:59:29 -04:00
parent c760d1a6a0
commit a6b306a181

View file

@ -14,7 +14,7 @@ class SchoolsController < ApplicationController
@years = @school_categories.map(&:year).map(&:to_i).sort
@year = (params[:year] || @years.first).to_i
@years.delete(@year)
@school_categories.select { |sc| sc.year.to_i == @year }
# @school_categories.select { |sc| sc.year.to_i == @year }
end
def admin