What is wrong this lesson "movie release year " how it is code I don't know help me


#1

indent preformatted text by 4 spaces

Popular Films

<!--
To do: Loop through movies and display each one with this HTML
<div class="movie">
  movie image goes here
  <h3> movie title goes here </h3>
  <p> movie release year goes here </p>
</div>
-->
 <% @movies.each do |movie| %>
<div class= "movie">
  <%= image_tag movie.image %>
  <h3><% movie.title %></h3>
  <p><%= movie.release %></p>
</div>
<% end %>



#2

The title needs to have an output tag. <%= %>


#3

It should be

<%=movie.release_year%>

instead of

<%=movie.release %>

.

Because you create movie table t.string :release_year, you need use release_year for fetch data from @movies array.