diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 95f2992..5715adc 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 aa37556..ec002ad 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -1,2 +1,2 @@

This is my friends app! Heck yeah I'm a developer

-

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 e77a3bf..2d5bb09 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -1,15 +1,37 @@ - - + + - Friends - + + + Friends App + <%= csrf_meta_tags %> <%= csp_meta_tag %> - <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %> - + + + + <%= render 'home/header' %> +
<%= yield %> +
+ + + + + + + + + + + + + + + diff --git a/config/routes.rb b/config/routes.rb index 457f279..4d84bad 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,7 @@ 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 # Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.