Article:
  Understanding ActiveRecord: A Gentle Introduction to the Heart of Rails (Part 1)
Subject:   Having a few syntax issues with running rake with CreateEntries
Date:   2007-08-25 18:57:55
From:   robmcd
I keep getting the following error on running rake for the creation of the entries table.


Does anyone else get this? Any ideas what might be going wrong? I am copying and pasting the code directly into my text editor (perhaps this is causing issues?).


rake aborted!
./db/migrate//001_create_entries.rb:2: syntax error, unexpected ':', expecting '\n' or ';'
endrop_table :entries_at, :datetimexting

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • Gregory Brown photo Having a few syntax issues with running rake with CreateEntries
    2007-08-25 20:18:10  Gregory Brown | O'Reilly AuthorO'Reilly Blogger [View]

    There doesn't appear to be any errors in the migration code displayed here.

    At any rate, you can download the full source package from the second example, which should include the working migration files:

    http://www.oreillynet.com/ruby/2007/05/10/Downloads/ActiveRecord_download.zip

    -greg
    • Having a few syntax issues with running rake with CreateEntries
      2007-08-27 00:43:57  robmcd [View]

      Thanks Greg, appreciate the prompt reply, I was floundering a bit there.
      I think it's possibly an issue with my text editor.
      Cheers,
      R