1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-31 03:25:45 +00:00
Files
wrestlingdev.com/app/controllers/api_controller.rb
2016-02-10 15:16:58 +00:00

11 lines
284 B
Ruby

class ApiController < ApplicationController
def tournaments
@tournaments = Tournament.all
end
def tournament
@tournament = Tournament.where(:id => params[:tournament]).includes(:schools,:weights,:mats,:matches,:user,:wrestlers).first
end
end