diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb index b5d1500..c2dd2f6 100644 --- a/app/controllers/pages_controller.rb +++ b/app/controllers/pages_controller.rb @@ -2,4 +2,8 @@ class PagesController < ApplicationController def home #render html: 'Hello World!' end + + def about + end + end diff --git a/app/views/pages/about.html.erb b/app/views/pages/about.html.erb new file mode 100644 index 0000000..075f9a7 --- /dev/null +++ b/app/views/pages/about.html.erb @@ -0,0 +1 @@ +

This is the About page

\ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index b62363e..aab5d5f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,3 +1,4 @@ Rails.application.routes.draw do root 'pages#home' + get 'about', to: 'pages#about' end