You're leaving out the controller name. If you're following the book It should be
ruby script/generate scaffold product admin
You're leaving out the controller name. If you're following the book It should be
ruby script/generate scaffold product admin
I am also having the same problem.
command: ruby script/generate scaffold product admin the above command creates controller as well as default view.
command: ruby script\generate scaffold Product code:integer name:string In the above command, I don't specify controller, so how will the controller and views will be created?
Thanks.
Vinod
The new scaffolds are RESTful, so they derive their controller name from the model name (e.g., Product -> ProductsController).
Look up information on REST and RESTful Rails for more explanation.
--Jeremy