LearnPulse / app /controllers /faculty_controller.rb
Nambinintsoa Rovatiana RAMAROSON
first commit
874ae95
Raw
History Blame Contribute Delete
330 Bytes
class FacultyController < ApplicationController
# GET /coaches
def index
@coaches =
policy_scope(Faculty).includes(
:faculty_cohort_enrollments,
user: {
avatar_attachment: :blob
}
)
raise_not_found unless @coaches.exists?
render 'index', layout: 'student'
end
end