added second page, need to change it, also update home page

This commit is contained in:
Ben 2024-01-12 22:18:28 -06:00
parent e856b0ffb8
commit 10d3440646
4 changed files with 10 additions and 4 deletions

View File

@ -1,4 +1,8 @@
class HomeController < ApplicationController class HomeController < ApplicationController
def index def index
end end
def about
end
end end

View File

@ -0,0 +1 @@
<h1>About Us</h1>

View File

@ -1,3 +1,2 @@
<h1>Home#index</h1> <h1>Home Page</h1>
<p>Hi Mariam. This is me. You should know this as you are sitting next to me.</p> Leaving this blank until we create the other pages!
<p>Boy I have a hard time remembering anything!</p>

View File

@ -1,5 +1,7 @@
Rails.application.routes.draw do Rails.application.routes.draw do
get 'home/index' # get 'home/index'
get 'home/about'
root 'home#index'
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500. # Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.