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

Created an about page

This commit is contained in:
2015-11-20 12:41:11 +00:00
parent 393326f24f
commit 0e5229f2a3
2 changed files with 4 additions and 9 deletions

View File

@@ -1,18 +1,11 @@
class StaticPagesController < ApplicationController
before_filter :check_access, only: [:weigh_in]
def not_allowed
end
private
def check_access
if params[:tournament]
@tournament = Tournament.find(params[:tournament])
if current_user != @tournament.user
redirect_to '/static_pages/not_allowed'
end
end
def about
end
end