diff options
author | Tomer Kimia <tkimia@purdue.edu> | 2014-03-02 11:11:04 -0500 |
---|---|---|
committer | Tomer Kimia <tkimia@purdue.edu> | 2014-03-02 11:11:04 -0500 |
commit | d28c9b6f33ae4a95d620d46caa3799292b39480b (patch) | |
tree | 689dd9053a7bef60690b201db9fd496c83f4b071 | |
parent | c1f3f731cdf3201905fd8797dd4fe33783f2bc53 (diff) |
added preliminary homepage
-rw-r--r-- | app/controllers/static_controller.rb | 4 | ||||
-rw-r--r-- | app/views/static/homepage.html.erb | 1 | ||||
-rw-r--r-- | config/routes.rb | 2 | ||||
-rwxr-xr-x | generate.sh | 1 |
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 |