search for: an_order

Displaying 2 results from an estimated 2 matches for "an_order".

Did you mean: in_order
2006 Jun 20
1
ActiveRecord saving madness?
...studying it, and I am finally "getting there". However, I do have a bit of a problem with ActiveRecord''s saving behaviour. Imagine to have Orders (id, name) {has_one:invoice} and Invoices (id, order_id) {belongs_to :order} . If you type: invoice = Invoice.new(...whatever...) an_order.invoice = invoice if invoice fails to save, you will never know. What''s worse, an_order will be saved, and will have a nasty nil, which means that your rhtml template will *fail* when going through that record. You have to do this instead: invoice = Invoice.new # fill in the invoice i...
2006 Jan 01
4
Agile book deltas
Are there deltas for the revisions of the PDF version of the Agile book? -- fxn