All basic question types
This commit is contained in:
parent
3e1e5618ca
commit
4fe218166f
51 changed files with 760 additions and 92 deletions
10
app/controllers/sections_controller.rb
Normal file
10
app/controllers/sections_controller.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
class SectionsController < ApplicationController
|
||||
def index
|
||||
@sections = Section.all
|
||||
end
|
||||
|
||||
def show
|
||||
@section = Section.find(params[:id])
|
||||
@questions = @section.questions.includes(:answer)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue