Rails 0.14.1 and Agile Web Development on Rails

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
 
S

Stephen Waits

Thank you. Wonder if the previous Rails version is still available.

Sure, just specify the version when installing the gem. You might
also want to check out the Rails mailing list.

--Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top