From 983687a9e55915c22b84b60b45ca2b40794cf9a2 Mon Sep 17 00:00:00 2001 From: Vijay Dev Date: Sat, 2 Jun 2012 21:38:32 +0530 Subject: [PATCH] fix up the example app for getting started guide [ci skip] --- .../code/getting_started/app/controllers/home_controller.rb | 5 ----- .../getting_started/app/controllers/welcome_controller.rb | 4 ++++ guides/code/getting_started/app/helpers/home_helper.rb | 2 -- guides/code/getting_started/app/helpers/welcome_helper.rb | 2 ++ guides/code/getting_started/config/routes.rb | 2 +- .../{home_controller_test.rb => welcome_controller_test.rb} | 3 +-- 6 files changed, 8 insertions(+), 10 deletions(-) delete mode 100644 guides/code/getting_started/app/controllers/home_controller.rb create mode 100644 guides/code/getting_started/app/controllers/welcome_controller.rb delete mode 100644 guides/code/getting_started/app/helpers/home_helper.rb create mode 100644 guides/code/getting_started/app/helpers/welcome_helper.rb rename guides/code/getting_started/test/functional/{home_controller_test.rb => welcome_controller_test.rb} (65%) diff --git a/guides/code/getting_started/app/controllers/home_controller.rb b/guides/code/getting_started/app/controllers/home_controller.rb deleted file mode 100644 index 6cc31c1ca3..0000000000 --- a/guides/code/getting_started/app/controllers/home_controller.rb +++ /dev/null @@ -1,5 +0,0 @@ -class HomeController < ApplicationController - def index - end - -end diff --git a/guides/code/getting_started/app/controllers/welcome_controller.rb b/guides/code/getting_started/app/controllers/welcome_controller.rb new file mode 100644 index 0000000000..f9b859b9c9 --- /dev/null +++ b/guides/code/getting_started/app/controllers/welcome_controller.rb @@ -0,0 +1,4 @@ +class WelcomeController < ApplicationController + def index + end +end diff --git a/guides/code/getting_started/app/helpers/home_helper.rb b/guides/code/getting_started/app/helpers/home_helper.rb deleted file mode 100644 index 23de56ac60..0000000000 --- a/guides/code/getting_started/app/helpers/home_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module HomeHelper -end diff --git a/guides/code/getting_started/app/helpers/welcome_helper.rb b/guides/code/getting_started/app/helpers/welcome_helper.rb new file mode 100644 index 0000000000..eeead45fc9 --- /dev/null +++ b/guides/code/getting_started/app/helpers/welcome_helper.rb @@ -0,0 +1,2 @@ +module WelcomeHelper +end diff --git a/guides/code/getting_started/config/routes.rb b/guides/code/getting_started/config/routes.rb index a494d010a6..04a6bd374e 100644 --- a/guides/code/getting_started/config/routes.rb +++ b/guides/code/getting_started/config/routes.rb @@ -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" diff --git a/guides/code/getting_started/test/functional/home_controller_test.rb b/guides/code/getting_started/test/functional/welcome_controller_test.rb similarity index 65% rename from guides/code/getting_started/test/functional/home_controller_test.rb rename to guides/code/getting_started/test/functional/welcome_controller_test.rb index 0d9bb47c3e..e4d5abae11 100644 --- a/guides/code/getting_started/test/functional/home_controller_test.rb +++ b/guides/code/getting_started/test/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