From 633db86a2b8cae050aaaa4e95b01bdcc26d71912 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sat, 14 Apr 2012 17:51:19 +0200 Subject: [PATCH] Added root route to start app also on "/" url. --- config/routes.rb | 5 +- public/index.html | 241 ---------------------------------------------- 2 files changed, 4 insertions(+), 242 deletions(-) delete mode 100644 public/index.html diff --git a/config/routes.rb b/config/routes.rb index be28d0af2..5499d5695 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -3,6 +3,10 @@ Zammad::Application.routes.draw do # app init match '/init', :to => 'init#index' match '/app', :to => 'init#index' + + # You can have the root of your site routed with "root" + # just remember to delete public/index.html. + root :to => 'init#index' # omniauth match '/auth/:provider/callback', :to => 'sessions#create_omniauth' @@ -49,7 +53,6 @@ Zammad::Application.routes.draw do match '/signshow', :to => 'sessions#show' match '/signout', :to => 'sessions#destroy' - # The priority is based upon order of creation: # first created -> highest priority. diff --git a/public/index.html b/public/index.html deleted file mode 100644 index a1d50995c..000000000 --- a/public/index.html +++ /dev/null @@ -1,241 +0,0 @@ - - - - Ruby on Rails: Welcome aboard - - - - -
- - -
- - - - -
-

Getting started

-

Here’s how to get rolling:

- -
    -
  1. -

    Use rails generate to create your models and controllers

    -

    To see all available options, run it without parameters.

    -
  2. - -
  3. -

    Set up a default route and remove public/index.html

    -

    Routes are set up in config/routes.rb.

    -
  4. - -
  5. -

    Create your database

    -

    Run rake db:create to create your database. If you're not using SQLite (the default), edit config/database.yml with your username and password.

    -
  6. -
-
-
- - -
- -