You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
344 B
22 lines
344 B
class DashboardController < ApplicationController
|
|
before_action :set_school
|
|
|
|
def index
|
|
authenticate(district.name.downcase, "#{district.name.downcase}!")
|
|
end
|
|
|
|
private
|
|
|
|
def set_school
|
|
@school = School.find_by_slug school_slug
|
|
end
|
|
|
|
def school_slug
|
|
params[:school_id]
|
|
end
|
|
|
|
def district
|
|
@school.district
|
|
end
|
|
|
|
end |