a littel more routing
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user