Commit 4bfe42bf by Tô Ngọc Ánh

keep value input if validation error

parent 3b5112ad
Pipeline #965 canceled with stages
in 0 seconds
...@@ -24,7 +24,7 @@ class AppliedJobsController < ApplicationController ...@@ -24,7 +24,7 @@ class AppliedJobsController < ApplicationController
AppliedJobMailer.with(applied_job: @applied_job).success_email.deliver_later AppliedJobMailer.with(applied_job: @applied_job).success_email.deliver_later
else else
flash[:error] = @applied_job.errors.full_messages flash[:error] = @applied_job.errors.full_messages
redirect_to new_applied_job_path(job_id: @applied_job.job_id) render :new
end end
end end
......
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