Rails 2.0 does have the scaffold package. In fact, it now scaffolds
REST compatible resources (previously known as scaffold_resource in
Rail 1.2).
It seems your command is wrong. It's script/generate, not script/
generator. Also, since you're on windows, you have to specify 'ruby'
before the command.
i'm running into a similar problem now, having upgraded to rails
2.0.2. I ran the scaffold command, and i get the views, but it's not
generating the controller. has anyone else seen this?
i'm running into a similar problem now, having upgraded to rails
2.0.2. I ran the scaffold command, and i get the views, but it's not
generating the controller. has anyone else seen this?
Yes. This happened to me once, then I checked the output of the
generator and saw that it had crapped out creating the model because I'd
already done that. If you look at the list it should go something like
this (from Zabel's post):
so if it bombs at the model, it won't create the controller.
Possibly your problem?
I'd have hoped the generator would have accepted that the model already
existed and continued. The rails 1.2 scaffolder managed this if I
remember rightly...