showing year data on school page

This commit is contained in:
Jared Cosulich 2018-07-21 13:00:19 -04:00
parent a6b306a181
commit b5f950c7bd
2 changed files with 2 additions and 2 deletions

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 = @school_categories.select { |sc| sc.year.to_i == @year }
end
def admin

View file

@ -8,7 +8,7 @@
Data from
= "#{@year - 1}-#{@year}"
school year.
- if @years.present?
-# if @years.present?
%p
Show year:
- @years.each do |year|