Skip to content

Commit 548e5f3

Browse files
committed
set up initial page home page
1 parent 446e4d1 commit 548e5f3

File tree

5 files changed

+16
-0
lines changed

5 files changed

+16
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class PagesController < ApplicationController
2+
def home
3+
end
4+
end

app/helpers/pages_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module PagesHelper
2+
end

app/views/pages/home.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p> HI again </p>

config/routes.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@
1111

1212
# Defines the root path route ("/")
1313
# root "posts#index"
14+
root "pages#home"
1415
end
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
require "test_helper"
2+
3+
class PagesControllerTest < ActionDispatch::IntegrationTest
4+
test "should get home" do
5+
get pages_home_url
6+
assert_response :success
7+
end
8+
end

0 commit comments

Comments
 (0)