SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Oct 2005
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Chapter 7: Trouble generating migration

    Hi--

    I'm having trouble with the following command on page 196 in the Ruby script console:

    Code:
    ruby script/generate migration AddPermalinkToStories
    Every time, I get the same error message:
    SyntaxError: compile error
    (irb): parse error, unexpected tIDENTIFIER, expecting kDO or '{' or '('

    I have tried to change my spacing, adding parentheses, braces, etc. but get the same error message.

    What's wrong?

    Thanks in advance.

  2. #2
    SitePoint Guru
    Join Date
    Aug 2005
    Posts
    986
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You are using IRB, but you should be using the OS command line. If you see irb...> you should type "exit" and try the command again.

  3. #3
    SitePoint Member
    Join Date
    Oct 2005
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Fenrir2 View Post
    You are using IRB, but you should be using the OS command line. If you see irb...> you should type "exit" and try the command again.
    That was the problem; now it's working. Thank you!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •