G'day guys, trying to build a small invoicing system (that can generate PDF's using prawn), but am having an issue with generating multiples of indivdual items in the array. I have the Invoice class which has_many :items, but when I try to add a multiple of an item to the invoice, it won't actually add that to the invoice and it doesn't update the total.
Would I be better using a line_item model abstraction that has a has_one to the item but an integer that keeps the multiples of the item in the invoice?