Complete Lesson 11

main
Simon Quigley 8 months ago
parent 144b2ca04f
commit b3cb78a4d8

@ -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">

@ -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) %>

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

Loading…
Cancel
Save