Skip to content
Browse files

fix up the example app for getting started guide [ci skip]

  • Loading branch information...
1 parent faf550c commit 983687a9e55915c22b84b60b45ca2b40794cf9a2 @vijaydev vijaydev committed
View
5 guides/code/getting_started/app/controllers/home_controller.rb
@@ -1,5 +0,0 @@
-class HomeController < ApplicationController
- def index
- end
-
-end
View
4 guides/code/getting_started/app/controllers/welcome_controller.rb
@@ -0,0 +1,4 @@
+class WelcomeController < ApplicationController
+ def index
+ end
+end
View
2 guides/code/getting_started/app/helpers/home_helper.rb
@@ -1,2 +0,0 @@
-module HomeHelper
-end
View
2 guides/code/getting_started/app/helpers/welcome_helper.rb
@@ -0,0 +1,2 @@
+module WelcomeHelper
+end
View
2 guides/code/getting_started/config/routes.rb
@@ -53,7 +53,7 @@
# 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"
View
3 ...d/test/functional/home_controller_test.rb → ...est/functional/welcome_controller_test.rb
@@ -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

0 comments on commit 983687a

Please sign in to comment.
Something went wrong with that request. Please try again.