1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-11 16:01:56 +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 end
def index 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 end
def show def show