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 (

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

1 to 1 of 1
1 to 1 of 1