a littel more routing

This commit is contained in:
Mark Moser
2016-07-28 08:47:34 -05:00
parent 8623fe0d93
commit 0950b7eb2a
4 changed files with 25 additions and 10 deletions

View File

@ -8,6 +8,12 @@ class CandidateController < ApplicationController
@answer = @question.answers.order("RAND()").first
end
def update_question
redirect_to saved_path if params[:submit] == 'Save'
redirect_to :question
end
def summary
end
@ -16,4 +22,8 @@ class CandidateController < ApplicationController
def saved
end
def validate
redirect_to :question
end
end