Finish remaining question types
This commit is contained in:
parent
0d54f756d8
commit
5bd1e821f7
20 changed files with 431 additions and 8 deletions
|
@ -24,4 +24,16 @@ class QuestionsController < ApplicationController
|
|||
def handle_politicians_answer
|
||||
@answer.update!(data: params[:order])
|
||||
end
|
||||
|
||||
def handle_acrostic_answer
|
||||
@answer.update!(data: params[:data])
|
||||
end
|
||||
|
||||
def handle_connections_answer
|
||||
@answer.update!(data: params[:order])
|
||||
end
|
||||
|
||||
def handle_lyrics_answer
|
||||
@answer.update!(data: params[:data])
|
||||
end
|
||||
end
|
||||
|
|
|
@ -4,6 +4,7 @@ class SectionsController < ApplicationController
|
|||
end
|
||||
|
||||
def show
|
||||
@sections = Section.all
|
||||
@section = Section.find(params[:id])
|
||||
@questions = @section.questions.includes(:answer)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue