mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
fix up the example app for getting started guide [ci skip]
This commit is contained in:
parent
faf550c191
commit
983687a9e5
6 changed files with 8 additions and 10 deletions
|
@ -1,5 +0,0 @@
|
|||
class HomeController < ApplicationController
|
||||
def index
|
||||
end
|
||||
|
||||
end
|
|
@ -0,0 +1,4 @@
|
|||
class WelcomeController < ApplicationController
|
||||
def index
|
||||
end
|
||||
end
|
|
@ -1,2 +0,0 @@
|
|||
module HomeHelper
|
||||
end
|
|
@ -0,0 +1,2 @@
|
|||
module WelcomeHelper
|
||||
end
|
|
@ -53,7 +53,7 @@ Blog::Application.routes.draw do
|
|||
|
||||
# You can have the root of your site routed with "root"
|
||||
# just remember to delete public/index.html.
|
||||
root :to => "home#index"
|
||||
root :to => "welcome#index"
|
||||
|
||||
# See how all your routes lay out with "rake routes"
|
||||
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
require 'test_helper'
|
||||
|
||||
class HomeControllerTest < ActionController::TestCase
|
||||
class WelcomeControllerTest < ActionController::TestCase
|
||||
test "should get index" do
|
||||
get :index
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
end
|
Loading…
Reference in a new issue