<% @movie_data.each do |movie| %>
  <%= link_to movies_path(movie_id: movie['id']), method: 'post', remote: true do %>
    <div data-movie-title='<%= movie['title'] %>' class="movie-card">
      <% if movie['poster_path'] %>
        <% @movie_post_url = "http://image.tmdb.org/t/p/w185#{movie['poster_path']}" %>
      <% else %>
        <% @movie_post_url = "https://s1.yimg.com/os/mit/media/m/entity/images/movie_placeholder-e0ca244.png" %>
      <% end %>
      <div class="movie_poster"><%= image_tag @movie_post_url %></div>
      <div class="movie_title"><%= movie['title'] %></div>
      <div class="movie_date"><%= movie['release_date'][0..3] %></div>
    </div>
  <% end %>
<% end %>
<% if @movie_data == nil%>
  <% @movie_data.each do |movie| %>
    <%= link_to movies_path(movie_id: movie['id']), method: 'post', remote: true do %>
      <div data-movie-title='<%= movie['title'] %>' class="movie-card">
        <% if movie['poster_path'] %>
          <% @movie_post_url = "http://image.tmdb.org/t/p/w185#{movie['poster_path']}" %>
        <% else %>
          <% @movie_post_url = "https://s1.yimg.com/os/mit/media/m/entity/images/movie_placeholder-e0ca244.png" %>
        <% end %>
        <div class="movie_poster"><%= image_tag @movie_post_url %></div>
        <div class="movie_title"><%= movie['title'] %></div>
        <div class="movie_date"><%= movie['release_date'][0..3] %></div>
      </div>
    <% end %>
  <% end %>
<% else %>
  <h1>THAT'S NOT A MOVIE!</h1>
<% end %>
Add error message if user searches for not-a-movie.
Add error message if user searches for not-a-movie.
