summary roughed in
This commit is contained in:
@ -9,11 +9,19 @@ class CandidateController < ApplicationController
|
||||
end
|
||||
|
||||
def update_question
|
||||
redirect_to :saved and return if params[:save] == 'Save'
|
||||
redirect_to :summary and return if params.key?(:update)
|
||||
redirect_to :saved and return if params.key?(:save)
|
||||
redirect_to :question
|
||||
end
|
||||
|
||||
def summary
|
||||
@candidate = Candidate.where(test_hash: '6NjnourLE6Y').first
|
||||
@answers = @candidate.answers
|
||||
@status = QuizStatus.new(@candidate)
|
||||
end
|
||||
|
||||
def update_summary
|
||||
redirect_to :summary
|
||||
end
|
||||
|
||||
def thankyou
|
||||
@ -26,9 +34,9 @@ class CandidateController < ApplicationController
|
||||
redirect_to :question
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def question_params
|
||||
params.permit(:save)
|
||||
end
|
||||
# private
|
||||
#
|
||||
# def question_params
|
||||
# params.permit(:save)
|
||||
# end
|
||||
end
|
||||
|
Reference in New Issue
Block a user