29 Jan 2014, 19:55

Robert Sheehan (3 posts)

Could any body help me with this error im getting when i try to place an order. i cant seem to figure it out i nearly have everything working. im getting message:

can’t write unknown attribute `order_id’

(`respond_to do |format|`
     `if @order.save` 
		`session[:cart_id] = nil`)
30 Jan 2014, 16:45

Robert Sheehan (3 posts)

i was able to fix this by deleting the migration generate migration add_order_to_line_item order:references on page 171 to generate migration add_order_to_line_item order_id:references….. that must be an error in book

  You must be logged in to comment