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

Added spot to control a match

This commit is contained in:
2015-11-05 09:05:44 -05:00
parent 5173f8209a
commit 5b497e9cf9
4 changed files with 54 additions and 6 deletions

View File

@@ -1,10 +1,14 @@
class MatsController < ApplicationController
before_action :set_mat, only: [:show, :edit, :update, :destroy]
before_filter :check_access, only: [:new,:create,:update,:destroy,:edit]
before_filter :check_access, only: [:new,:create,:update,:destroy,:edit,:show]
# GET /mats/1
# GET /mats/1.json
def show
@match = @mat.unfinishedMatches.first
@w1 = @match.wrestler1
@w2 = @match.wrestler2
@wrestlers = [@w1,@w2]
end
# GET /mats/new