Fix sort, how did this even work???
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user