5.3. Show a Tag


Link to Exercise:

My Code:


<div class="cards row">
  <% destinations.each do |t| %>
  	<div class="card col-xs-4">
    	<%= t.image %>
    	<h2> <%= t.name %> </h2>
      <p> <%= t.description %> </p>
  <% end %>

My Error:
undefined local variable or method `destinations' for #<#:0x000000055cbd68>


did you defined @destinations in the controller as @destionations?


Nope! I just fixed that. Thank you! This is the new error:

"In the view, did you display the tag's title?"

I found a link to an answer for this on the forums saying :
"I think that step is really two steps, even though it sort of looks like one. Try displaying the tags title on line 10, and see if that works :slight_smile: "
Link : https://discuss.codecademy.com/t/5-3-show-a-tag-in-the-view-did-you-display-the-tags-title/58619

But the person didn't post what the new code looks like. Any ideas?

Thank you!


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.