when i run the line:
ruby script/generate scaffold Item Manage
it displays a message wrong number of arguments(1 for 2)
i am creating controller and model using book 'Biggining Ruby on Rails' pg 167
kindly give suggestions!
when i run the line:
ruby script/generate scaffold Item Manage
it displays a message wrong number of arguments(1 for 2)
i am creating controller and model using book 'Biggining Ruby on Rails' pg 167
kindly give suggestions!
If you type "ruby script/generate scaffold" without parametres it display its help:
Usage: script/generate scaffold ModelName [field:type, field:type]
You must specify model name and table fields. Then run "rake db:migration" and that's it! I hope I help you.