Rewrite line_items_controller (accoding to stackoverflow)