Exercise 4


#1

I keep receiving this error, even though I typed out everything exactly as it says. I even tried copying and pasting the text it tells me to type with no luck.

This is the error I get:
Oops! The test returned an error. Maybe you have a syntax error, or a typo. Hide error.
/var/lib/gems/2.0.0/gems/activerecord-4.1.1/lib/active_record/migration.rb:389:in
check_pending!': (ActiveRecord::PendingMigrationError)`

This is my code

<!-- Your code here -->
<% @messages.each do |message| %> 
<div class="message"> 
  <p class="content"><%= message.content %></p> 
  <p class="time"><%= message.created_at %></p> 
</div> 
<% end %>

#2

Hi Zachary,

There's your problem - you need to run rake db:migrate in your terminal :slightly_smiling:


#3

I appreciate that, that was the issue! I was getting so frustrated because my code was identical, haha. Baby steps I suppose.