5.3 Wrong Number of Arguments

my code in 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">

<div class="tag">
  <div class="container">
    <h2 class="tag-title"> <%= t.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>  
      <% end %>



Error: wrong number of arguments (0 for 1…2)
I don’t understand where I am passing arguments.

randomly changing t.title to @tag.title changes everything
sorry for the wasted thread

1 Like

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