The after_create callback functions, and order.increment run properly. For some reason the db will not update when the self.update is called (or self.save). I can't change any of the other attributes in order either. I can't really make any sense out of this one. I also cannot reference order.size, it tells me It is an undefined method.

For some reason though. order.finished_line_items_count returns the proper amount, even though the DB value always remains zero, even after saving or updating the db!

This would then take you to the order page. From the order page you go to the add line items page, which would redirect you back to 'new' after it added the line items. @order.save would then be run again, writing a zero back to the DB.