Article:
  Rolling with Ruby on Rails
Subject:   errors in generating model, controller, scaffolding
Date:   2008-05-14 19:39:41
From:   gallen1119
These two lines seem to generate errors and not the intended model or controller:


ruby script\generate model Recipe
ruby script\generate controller Recipe


I also tried this suggestion I found and got the same:


ruby script\generate scaffold Recipe


Any hints?

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • errors in generating model, controller, scaffolding
    2008-07-09 19:11:05  garalo [View]

    maybe you should try this inside of the script directory.
    ruby generate scaffold Recipe
    it is working on my PC.
    • errors in generating model, controller, scaffolding
      2008-10-31 19:01:16  talk2vc [View]

      To execute "ruby script/generate scaffold" didn't generate all the entry fields for the HTML pages for me. Need to execute the following command instead:

      "ruby script/generate scaffold Recipe title:string description:string date:date instructions:text"

      Concur to the previous poster. I run all of the ruby commands under cookbook directory.