diff --git a/app/views/recruiter/_form.html.erb b/app/views/recruiter/_form.html.erb index a70b8dd..0310471 100644 --- a/app/views/recruiter/_form.html.erb +++ b/app/views/recruiter/_form.html.erb @@ -1,6 +1,6 @@ <%= render partial: 'shared/form_model_errors', locals: { obj: candidate } %> -<%= form_for candidate, url: create_candidate_path do |form| %> +<%= form_for candidate, url: action, method: :post do |form| %>
Test ID: <%= @candidate.test_hash %>
- <%= render partial: 'form', locals: { candidate: @candidate, quizzes: @quizzes } %> + <%= render partial: 'form', locals: { action: update_candidate_path(@candidate.id), candidate: @candidate, quizzes: @quizzes } %> diff --git a/app/views/recruiter/new.html.erb b/app/views/recruiter/new.html.erb index 2c4059e..7892256 100644 --- a/app/views/recruiter/new.html.erb +++ b/app/views/recruiter/new.html.erb @@ -1,5 +1,6 @@