Closed joaopapereira closed 6 years ago
As a JS that does not have a resume
When I am applying to a Job I get the following exception:
2017-11-19T19:39:27.536143+00:00 app[web.1]: Company Load (1.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."id" = $1 LIMIT 1 [["id", 51]] 2017-11-19T19:39:27.538406+00:00 app[web.1]: Resume Load (1.2ms) SELECT "resumes".* FROM "resumes" WHERE "resumes"."job_seeker_id " = $1 [["job_seeker_id", 96]] 2017-11-19T19:39:27.540428+00:00 app[web.1]: Completed 500 Internal Server Error in 203ms (ActiveRecord: 37.6ms) 2017-11-19T19:39:27.548336+00:00 app[web.1]: 2017-11-19T19:39:27.548338+00:00 app[web.1]: NoMethodError (undefined method `id' for nil:NilClass): 2017-11-19T19:39:27.548340+00:00 app[web.1]: app/models/job.rb:118:in `apply' 2017-11-19T19:39:27.548341+00:00 app[web.1]: app/controllers/jobs_controller.rb:371:in `apply_for' 2017-11-19T19:39:27.548341+00:00 app[web.1]: app/controllers/jobs_controller.rb:226:in `apply'
As a JS that does not have a resume
When I am applying to a Job I get the following exception: