Commit 2a8fd541 by Ngô Trung Hưng

..

parent 980c93dc
Pipeline #944 canceled with stages
in 0 seconds
...@@ -9,7 +9,7 @@ class ApplyJobController < ApplicationController ...@@ -9,7 +9,7 @@ class ApplyJobController < ApplicationController
end end
def apply def apply
redirect_to root_path if params[:job_id].blank? return redirect_to root_path if params[:job_id].blank?
@data_apply = current_user.applied_jobs.new(name: current_user.name, email: current_user.email) @data_apply = current_user.applied_jobs.new(name: current_user.name, email: current_user.email)
session[:job_id] = params[:job_id] session[:job_id] = params[:job_id]
@job = Job.find(params[:job_id]) @job = Job.find(params[:job_id])
......
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