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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs