can not execute ruby script/generate scaffold Product Admin

in my depot application, i need to execute this command correctly…but I can not do anything! the command could not execute as it is stated and figured in the book. if there is an equivalent command for creating and Model Product under Admin controller, please let me know. Now I know how to configure mysql with rails. So there is no problem.

in my depot application, i need to execute this command correctly...but
I can not do anything! the command could not execute as it is stated and
figured in the book.

Which version of rails are you using? In Rails 3 the command has changed to `rails generate scaffold`.

if there is an equivalent command for creating and

my ruby version is showing 1.8 and rails is 2.23

I have solved all the previous problems today! thanks to all of you:)