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