summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/controllers/static_controller.rb4
-rw-r--r--app/views/static/homepage.html.erb1
-rw-r--r--config/routes.rb2
-rwxr-xr-xgenerate.sh1
4 files changed, 7 insertions, 1 deletions
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 @@
+<h1>Welcome to Leauger</h1> \ 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