1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Order tournaments by updated_at

This commit is contained in:
2015-12-23 15:32:56 +00:00
parent a3cf41918b
commit 23de8a5503

View File

@@ -71,7 +71,7 @@ class TournamentsController < ApplicationController
end
def index
@tournaments = Tournament.all.limit(50).includes(:schools,:weights,:mats,:matches,:user,:wrestlers)
@tournaments = Tournament.all.limit(50).includes(:schools,:weights,:mats,:matches,:user,:wrestlers).order('updated_at desc')
end
def show