From d28c9b6f33ae4a95d620d46caa3799292b39480b Mon Sep 17 00:00:00 2001 From: Tomer Kimia Date: Sun, 2 Mar 2014 11:11:04 -0500 Subject: added preliminary homepage --- app/controllers/static_controller.rb | 4 ++++ app/views/static/homepage.html.erb | 1 + config/routes.rb | 2 +- generate.sh | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 app/controllers/static_controller.rb create mode 100644 app/views/static/homepage.html.erb diff --git a/app/controllers/static_controller.rb b/app/controllers/static_controller.rb new file mode 100644 index 0000000..6fc9490 --- /dev/null +++ b/app/controllers/static_controller.rb @@ -0,0 +1,4 @@ +class StaticController < ApplicationController + def homepage + end +end diff --git a/app/views/static/homepage.html.erb b/app/views/static/homepage.html.erb new file mode 100644 index 0000000..1d999b8 --- /dev/null +++ b/app/views/static/homepage.html.erb @@ -0,0 +1 @@ +

Welcome to Leauger

\ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index 3c49858..7d898b8 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -15,7 +15,7 @@ Leaguer::Application.routes.draw do resources :games - root "tournaments#index" + root to: 'static#homepage' # The priority is based upon order of creation: first created -> highest priority. # See how all your routes lay out with "rake routes". diff --git a/generate.sh b/generate.sh index 2bf027a..807b9ef 100755 --- a/generate.sh +++ b/generate.sh @@ -28,6 +28,7 @@ bundle exec rails generate model game_attribute game:references key:text type:in bundle exec rails generate model server_settings $NOTEST bundle exec rails generate controller search $NOTEST bundle exec rails generate controller main $NOTEST +bundle exec rails generate controller static $NOTEST #for the tournament controller to generate options bundle exec rails generate model tournament_option $NOTEST -- cgit v1.2.3-2-g168b