class Admin::InternationalRecruitsController < OrbitAdminController def index @table_fields = ["international_recruit.member_name", "international_recruit.submited_date", "international_recruit.actions"] @applications = RecruitApplication.all.desc(:created_at).page(params[:page]).per(10) end def destroy ra = RecruitApplication.find(params[:id]) ra.destroy redirect_to admin_international_recruits_path end def courses @table_fields = ["international_recruit.course_name", "international_recruit.actions"] @courses = UniversityCourse.all.asc(:created_at) end end