these are for a specific teacher you should start using current_teacher.find(params[:course_id])