From 0e5229f2a3c05ca2afa244cd4455b7257c41e4f4 Mon Sep 17 00:00:00 2001 From: jcwimer Date: Fri, 20 Nov 2015 12:41:11 +0000 Subject: [PATCH] Created an about page --- app/controllers/static_pages_controller.rb | 11 ++--------- app/views/static_pages/about.html.erb | 2 ++ 2 files changed, 4 insertions(+), 9 deletions(-) create mode 100644 app/views/static_pages/about.html.erb diff --git a/app/controllers/static_pages_controller.rb b/app/controllers/static_pages_controller.rb index 1adf228..08272ed 100644 --- a/app/controllers/static_pages_controller.rb +++ b/app/controllers/static_pages_controller.rb @@ -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 diff --git a/app/views/static_pages/about.html.erb b/app/views/static_pages/about.html.erb new file mode 100644 index 0000000..73d1c14 --- /dev/null +++ b/app/views/static_pages/about.html.erb @@ -0,0 +1,2 @@ +

About WrestlingDev

+

WrestlingDev was created to help bring wrestling into the 21st century for free. This site is open source and is supported by the ads on the sidebar.

\ No newline at end of file