Wrong number of arguments(1 for 0) whilst using rails scaffolding -
i generated scaffold code using command rails generate scaffold review title review:text rating:boolean --skip-stylesheets
. goes fine, when type in rails server
start server, , navigate /reviews
error message saying
argumenterror @ /reviews
wrong number of arguments(1 0)
i have not written code myself, have used scaffolding generator. how fix this?
your name review title
has space in it. try reviewtitle
.
update
try:
rails generate scaffold review title:string review:text rating:boolean --skip-stylesheets
Comments
Post a Comment