5.3 Wrong Number of Arguments


#1

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">
    <h1>BokenjiKan</h1>
  </div>
</div>

<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>  
        </div>
      <% end %>

    </div>

  </div>
</div>

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


#2

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


#3

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