bootstrap modification of views
This commit is contained in:
parent
2b29b243d0
commit
f50649d1d7
|
@ -1,4 +1,8 @@
|
|||
class HomeController < ApplicationController
|
||||
def index
|
||||
end
|
||||
|
||||
def about
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
<h1>Hello World!</h1>
|
||||
<!-- <p>Find me in app/views/home/index.html.erb</p> -->
|
||||
This is my second Rails webpage.<br>
|
||||
This is my repo: <a href="https://git.wit.org/mariam/" >mariam's git repo</a>
|
||||
<p>Find me in app/views/home/index.html.erb</p>
|
||||
|
|
|
@ -1,16 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Friends</title>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Friends App</title>
|
||||
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<%= csrf_meta_tags %>
|
||||
<%= csp_meta_tag %>
|
||||
|
||||
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
||||
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
|
||||
</head>
|
||||
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
|
||||
</head>
|
||||
<body>
|
||||
<%= yield %>
|
||||
<%= yield %>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue