I’ve passed all the steps, but when I visit http://localhost:8000/tags I get a jumbled list of words with no pictures, and no “learn more” link
index.html.erb
<div class="header">
<div class="container">
<img src="http://s3.amazonaws.com/codecademy-content/courses/learn-rails/img/logo-1tm.svg" width="80">
<h1>BokenjiKan</h1>
</div>
</div>
<div class="tags">
<div class="container">
<div class="cards row">
<% @tags.each do |t| %>
<div class="card col-xs-4">
<% link_to "Learn more", tag_path(t) %>
<% image_tag t.image %>
<h2> <%= t.title %> </h2>
</div>
<% end %>
</div>
</div>
</div>
show.html.erb
<div class="header">
<div class="container">
<img src="http://s3.amazonaws.com/codecademy-content/courses/learn-rails/img/logo-1tm.svg" width="80">
<h1>BokenjiKan</h1>
</div>
</div>
<div class="tag">
<div class="container">
<h2 class="tag-title"> <%= @tag.title %> </h2>
<div class="cards row">
<% @destinations.each do |d| %>
<div class="card col-xs-4">
<%= image_tag d.image %>
<h2> <%= d.name %></h2>
<p> <%= d.description %> </p>
</div>
<% end %>
</div>
routes.rb
Rails.application.routes.draw do
get '/tags' => 'tags#index'
get '/tags/:id' => 'tags#show', as: :tag
tags_controller.rb
class TagsController < ApplicationController
def index
@tags = Tag.all
end
def show
@tag = Tag.find(params[:id])
@destinations = @tag.destinations
end
end