summary roughed in

This commit is contained in:
Mark Moser
2016-07-28 20:54:08 -05:00
parent f9930ce531
commit 3a1c7de698
10 changed files with 102 additions and 61 deletions

View File

@ -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