diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb new file mode 100644 index 0000000..2f5a600 --- /dev/null +++ b/app/controllers/pages_controller.rb @@ -0,0 +1,3 @@ +class PagesController < ApplicationController + def home; end +end diff --git a/app/helpers/pages_helper.rb b/app/helpers/pages_helper.rb new file mode 100644 index 0000000..2c057fd --- /dev/null +++ b/app/helpers/pages_helper.rb @@ -0,0 +1,2 @@ +module PagesHelper +end diff --git a/app/views/pages/home.html.erb b/app/views/pages/home.html.erb new file mode 100644 index 0000000..9ffc94d --- /dev/null +++ b/app/views/pages/home.html.erb @@ -0,0 +1 @@ +

Welcome Chexpire !

diff --git a/config/routes.rb b/config/routes.rb index 787824f..e4ef981 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,3 +1,4 @@ Rails.application.routes.draw do # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html + root to: "pages#home" end diff --git a/test/controllers/pages_controller_test.rb b/test/controllers/pages_controller_test.rb new file mode 100644 index 0000000..077e275 --- /dev/null +++ b/test/controllers/pages_controller_test.rb @@ -0,0 +1,8 @@ +require 'test_helper' + +class PagesControllerTest < ActionDispatch::IntegrationTest + test "home loads without error" do + get root_path + assert_response :success + end +end