Small textual updates
This commit is contained in:
parent
f7aab26c85
commit
bb68f8541a
4 changed files with 48 additions and 41 deletions
|
@ -1,11 +1,11 @@
|
|||
class SectionsController < ApplicationController
|
||||
def index
|
||||
@sections = Section.all
|
||||
@sections = Section.all.order(id: :asc)
|
||||
end
|
||||
|
||||
def show
|
||||
@sections = Section.all
|
||||
@section = Section.find(params[:id])
|
||||
@questions = @section.questions.includes(:answer)
|
||||
@questions = @section.questions.includes(:answer).order(id: :asc)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue