I understand that scaffolding has been removed in 2.x but is available
as a generated script.
I’ve generated the scaffold and inserted some data into the DB by hand
(1 record).
The scaffold pages ( http://ruby.geeklan.com/public/products/ ) don’t
show anything and the log file doesn’t indicate anything (useful to me,
anyway, looks successful all the way through).
Am I missing something obvious or is there other information i can
provide?
I’m an experienced PHP Developer (10+ years), but this is totally new to
me. Even the basics barely apply.
I understand that scaffolding has been removed in 2.x but is available
as a generated script.
I’ve generated the scaffold and inserted some data into the DB by hand
(1 record).
The scaffold pages ( http://ruby.geeklan.com/public/products/ ) don’t
show anything and the log file doesn’t indicate anything (useful to me,
anyway, looks successful all the way through).
Am I missing something obvious or is there other information i can
provide?
I’m an experienced PHP Developer (10+ years), but this is totally new to
me. Even the basics barely apply.
check if you have a non NULL field in the database.
That’s what doesn’t make sense to me. I generated this using:
scripts/generate scaffold Product
I would assume the scaffold generation process would take care of the
forms and general format of the page. Is this not true? Seems like that
would defeat the purpose of even offering the ability to generate a
scaffold if it doesn’t actually work.
Looking at the Listing products page which was generated, it has nothing
to show the product fields anywhere.
I added a line as such:
Product ID: <%= product.id %>
And it does print the product ID. This looks like a bug to me. I can
reproduce this when generating the scaffold for any table.
forms and general format of the page. Is this not true? Seems like that
And it does print the product ID. This looks like a bug to me. I can
reproduce this when generating the scaffold for any table.
Try doing <%= Product.count %> which will give a number of how many
records
are in the products table if you have a Product model
On Dec 12, 2007 9:44 AM, Geoff W. [email protected]
wrote:
Am I missing something obvious or is there other information i can
provide?
I’m an experienced PHP Developer (10+ years), but this is totally new to
me. Even the basics barely apply.