diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb new file mode 100644 index 00000000..6cc31c1c --- /dev/null +++ b/app/controllers/home_controller.rb @@ -0,0 +1,5 @@ +class HomeController < ApplicationController + def index + end + +end diff --git a/app/helpers/home_helper.rb b/app/helpers/home_helper.rb new file mode 100644 index 00000000..23de56ac --- /dev/null +++ b/app/helpers/home_helper.rb @@ -0,0 +1,2 @@ +module HomeHelper +end diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb new file mode 100644 index 00000000..59821a75 --- /dev/null +++ b/app/views/home/index.html.erb @@ -0,0 +1,2 @@ +

Abstract Home

+

Find me in app/views/home/index.html.erb

diff --git a/config/routes.rb b/config/routes.rb index f2669276..6969c462 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,6 @@ Abstract::Application.routes.draw do + get "home/index" + # The priority is based upon order of creation: # first created -> highest priority. @@ -49,6 +51,7 @@ # You can have the root of your site routed with "root" # just remember to delete public/index.html. # root :to => "welcome#index" + root :to => "home#index" # See how all your routes lay out with "rake routes" diff --git a/public/index.html b/public/index.html deleted file mode 100644 index 75d5edd0..00000000 --- a/public/index.html +++ /dev/null @@ -1,239 +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 or rename this file

    -

    Routes are set up in config/routes.rb.

    -
  4. - -
  5. -

    Create your database

    -

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

    -
  6. -
-
-
- - -
- -