Movies 1 step 4

I’m sure I’m missing something stupid, but any help provided would be much appreciated.

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>
<% @movies.each do |m| %>
<div class="movie">
  <%= image_tag m.image %>
  <h3><%= m.title %></h3>
  <p><%= m.release_year %></p>
<% end %>

Hi Paul,

Please post a link to the exercise you’re on and the error message you’re getting so we can help you :slight_smile:

Thanks, Zeke!

Here’s the link:

Hi scriptace, could you help me out with the previous part of this please? Movies 1 step 3?

@scriptace42185 Your code looks fine to me. Mine is similar, except that I’m also displaying the plot and edit link - maybe the instructions have changed since I did the course, since I’m not seeing a mention of those now.

Does changing m (and references to it) to movies work? I know that sometimes Codecademy is sometimes a little unnecessarily finicky about what you use for variable names.

@cherye It’s best if you create your own topic asking for help, so this one doesn’t get cluttered up with multiple questions from different people all in one topic.

sorry zystvan! i’m having trouble with another part but this website doesn’t allow me to create anymore posts. how could i get help?

@cherye That’s a permissions thing set on new users, waiting another day will get you around the restrictions while they’re in place. It looks like you’ve moved up to the next trust level now though, so you shouldn’t have to worry about that anymore :slight_smile:

oh cool. thanks. thought i’ve been on this site since 2012, that’s four years ago so it’s really weird. :slight_smile:

1 Like

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