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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user