11 lines
240 B
Ruby
11 lines
240 B
Ruby
class SectionsController < ApplicationController
|
|
def index
|
|
@sections = Section.all
|
|
end
|
|
|
|
def show
|
|
@sections = Section.all
|
|
@section = Section.find(params[:id])
|
|
@questions = @section.questions.includes(:answer)
|
|
end
|
|
end
|