Fix sort, how did this even work???
This commit is contained in:
parent
9653423332
commit
c65136e8b3
@ -1,5 +1,10 @@
|
||||
class AttendanceTrackerController < ApplicationController
|
||||
def index
|
||||
@courses = Course.all.sort_by(&:name)
|
||||
@courses = Course.all.sort_by(&:title)
|
||||
end
|
||||
|
||||
def today
|
||||
@courses = Course.all.sort_by(&:title)
|
||||
@date = Date.today
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user