Women in Technology

Hear us Roar



Article:
  Rolling with Ruby on Rails, Part 2
Subject:   Great Article
Date:   2005-09-10 10:14:19
From:   MikeBlake
Response to: Great Article


Got the scaffold generator working thanks to
this (http://wiki.rubyonrails.com/rails/show/ScaffoldGenerator)


First, I started from a fresh rails app. The scaffold generator gets confused if you've already generated controllers.


To avoid purals, specify the name of the controller :

ruby script/generate scaffold Recipe recipe


Lastly, use the -f option to force overwriting duplicated pages in additional runs:

ruby script/generate scaffold Category category -f


Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Great Article
    2006-01-10 15:36:49  RichOnRails [View]

    Code generated by scaffold can be destroyed by generate's sibling "destroy" such as:

    ruby script/destroy scaffold Category category