On Mar 4, 2006, at 19:00, David Heinemeier Hansson wrote:

So let's think about how we can fix scaffolding in

a way that it doesn't require the database to exist before running.


My first proposal for how to fix this is simply to have

script/generate scaffold return to doing <%= form(@product) %> instead

of writing out the individual lines. Yes, it is kinda neat to have

that, but the pain is not worth it.


Except... it's really nice to be able to modify the generated form when you're demoing the application. If you went this approach, why not just use a dynamic 'scaffold :product' line ?

Maybe the step is to break the form stuff out from the rest

I'm not sure what pain you're trying to save, though.


This affects page 98 of the book, but that should probably be

rewritten using form_for instead anyway.


Don't worry about the book: the first half is a total rewrite anyway... :)


Dave

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to