Fix sort, how did this even work???
This commit is contained in:
parent
9653423332
commit
c65136e8b3
@ -1,5 +1,10 @@
|
|||||||
class AttendanceTrackerController < ApplicationController
|
class AttendanceTrackerController < ApplicationController
|
||||||
def index
|
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
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user