Complete Lesson 11

main
Simon Quigley 1 year ago
parent 144b2ca04f
commit b3cb78a4d8

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

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

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

Loading…
Cancel
Save