Complete Lesson 11

This commit is contained in:
Simon Quigley 2023-09-25 15:07:57 -05:00
parent 144b2ca04f
commit b3cb78a4d8
3 changed files with 4 additions and 2 deletions

View File

@ -15,7 +15,7 @@
<header>
<div class="alert alert-primary" role="alert">
<h1>The only movies that actually matter</h1>
<%= image_tag("logo.png")%>
<%= link_to image_tag("logo.png"), root_path %>
</div>
</header>
<div class="content">

View File

@ -5,7 +5,7 @@
<section class="movie">
<div class="summary">
<h2>
<%= movie.title %>
<%= link_to(movie.title, movie_path(movie)) %>
</h2>
<h3>
<%= total_gross(movie) %>

View File

@ -1,3 +1,5 @@
Rails.application.routes.draw do
root "movies#index"
get "movies" => "movies#index"
get "movies/:id" => "movies#show", as: "movie"
end