B
basi
Hello,
Following the instructions on Agile Rails book, to produce the Admin
controller of the Products table in the Depot app, I enter the
following command:
depot> ruby script/generate scaffold Product Admin
I expect Rails to produce admin_controller.rb; instead it produced
products_controller.rb. Hence, the instruction to point the browser to:
localhost:3000/admin does not work. What works is:
localhost:3000/product. I'm just trying to verify if this is now how it
should be, i.e., the controller for maintaining a table has the same
name as the table itself.
When I create go to create a new product, the product form does not
look correct. The Title and Description fields are of the same size as
the Image URL field -- huge.
I'm using Rails 0.14.1.
Thanks,
gk
Following the instructions on Agile Rails book, to produce the Admin
controller of the Products table in the Depot app, I enter the
following command:
depot> ruby script/generate scaffold Product Admin
I expect Rails to produce admin_controller.rb; instead it produced
products_controller.rb. Hence, the instruction to point the browser to:
localhost:3000/admin does not work. What works is:
localhost:3000/product. I'm just trying to verify if this is now how it
should be, i.e., the controller for maintaining a table has the same
name as the table itself.
When I create go to create a new product, the product form does not
look correct. The Title and Description fields are of the same size as
the Image URL field -- huge.
I'm using Rails 0.14.1.
Thanks,
gk