Skip to content

Commit

Permalink
Added About page
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckp22 committed Jul 7, 2022
1 parent d2f7622 commit 9d7e297
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/controllers/pages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ class PagesController < ApplicationController
def home
#render html: 'Hello World!'
end

def about
end

end
1 change: 1 addition & 0 deletions app/views/pages/about.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h1>This is the About page</h1>
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Rails.application.routes.draw do
root 'pages#home'
get 'about', to: 'pages#about'
end

0 comments on commit 9d7e297

Please sign in to comment.