Women in Technology

Hear us Roar

  Rolling with Ruby on Rails
Subject:   Stuck at script/generate
Date:   2005-04-18 23:15:48
From:   saroshk
I'm stuck at ruby script\generate controller MyTest
I get
ruby: no such file or directory -- script\generate

Any ideas on how to make it work.
I'm running XP Pro, Ruby installed at C:\ruby and setenv dealie pointed to C:\ruby\bin

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • Curt Hibbs photo Stuck at script/generate
    2005-04-19 04:10:28  Curt Hibbs | O'Reilly AuthorO'Reilly Blogger [View]

    Make sure you are sitting in your cookbook directory when you issue this command. Do a "dir" command, and you should see all the standard Rails subdirectories like "app", "config", "db", etc... inlcuding one named "script". Inside this script directory there should be a file named "generate" -- this is the Ruby program you are trying to run.

    If you still have problems, post part of you console log showing the problem.
    • Stuck at script/generate
      2005-04-19 08:59:03  saroshk [View]

      Stupid me, I was running it in ..\app\controllers\