"wrong number of arguments (0 for 1..4)" - Exercise 5, Step 3


#1

I'm getting an error message I don't understand...

wrong number of arguments (0 for 1..4)

That makes me think that I'm using the wrong syntax for a function somewhere.

What am I doing wrong?

Here's my code:

<h2 class="tag-title"><%= tag.title %></h2>
<div class="cards row">
    <% @destinations.each do |dest| %>
        <div class="card col-xs-4">
            <img src="<%= dest.image %>">
            <h2><%= dest.name %></h2>
            <p><%= dest.description %></p>
        </div>
    <% end %>
</div>

#2

Your problem is

<h2 class="tag-title"><%= tag.title %></h2>

The interface is malfunctioning for Step 2, so you weren't told at that point that the program didn't have access to a variable. You can fix this by

<h2 class="tag-title"><%= @tag.title %></h2>

#3

never would have thought of this thanks