diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 95f2992..1e27cac 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -1,4 +1,8 @@ class HomeController < ApplicationController def index end + + def about + end + end diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index 3b9a5db..f5dfd1b 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -1,2 +1,4 @@

Hello World!

- +This is my second Rails webpage.
+This is my repo: mariam's git repo +

Find me in app/views/home/index.html.erb

diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 532e07c..8e191ec 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -1,16 +1,21 @@ - - + + - Friends - + + + Friends App + + <%= csrf_meta_tags %> <%= csp_meta_tag %> <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> <%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %> - + + - <%= yield %> + <%= yield %> + diff --git a/config/routes.rb b/config/routes.rb index e693ef5..1dc4351 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,6 @@ Rails.application.routes.draw do # get 'home/index' # mj + get 'home/about' root 'home#index' # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html end