i'm going through chapter 6 of agile web development with rails (pdf) . i'm running the example on page 53, and instead of giving me views in the admin directory, it creates them in the products directory.
thanks for the suggestion, but that syntax gives an error:
C:\temp\ard\depot>ruby script/generate scaffold Admin Product
error Before updating scaffolding from new DB schema, try creating a tab
le for your model (Admin)
Did you already have a controller called admin before running this?
It should work anyway, but are you running the latest rails (1.0)?
By the way, you can get help for those commands by running them without arguments, i.e
gives you the help for the scaffold generator, while
shows help for generators in general.
Duarte Carrilho da Graša RailsHelp.com: Searchable Rails reference
CACA: Committee for the Annihilation of Complicated Acronyms