I’m trying to play around with the scaffolding(?) example that I found
in the 4 Days on Rails tutorial, and I tried running
ruby script/generate scaffold category dependency model
but rather than generating files that were made plural as the example
So I changed the command to:
ruby script/generate scaffold category categories model
and that did create a categories_controller.rb which seem to match the
Is this a version problem that the author warned about at the beginning
of the tutorial? I’m using the latest.
But another question I have is, when these scaffold scripts are created
which controllers do I use for my rails project? The original
category_controller.rb or categories_controller.rb. Would the URL to
the project be ‘http://localhost:3000/category’ or
Grateful for any tips and thanks.