Commit 5441a47c by Tô Ngọc Ánh

order applied job

parent 163f2be9
Pipeline #1019 failed with stages
in 0 seconds
...@@ -2,7 +2,7 @@ class AppliedJobsController < ApplicationController ...@@ -2,7 +2,7 @@ class AppliedJobsController < ApplicationController
before_action :authenticate_user! before_action :authenticate_user!
def index def index
@applied_jobs = Job.applied_jobs_of(current_user.id).includes(:locations).order(created_at: :asc).page(params[:page]) @applied_jobs = Job.applied_jobs_of(current_user.id).includes(:locations).order(applied_at: :desc).page(params[:page])
end end
def new def new
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment