|
|
|
@@ -34,6 +34,7 @@ class LineItemsController < ApplicationController |
|
|
|
respond_to do |format| |
|
|
|
if @line_item.save |
|
|
|
format.html { redirect_to @line_item.cart } |
|
|
|
format.js |
|
|
|
format.json { render :show, status: :created, location: @line_item } |
|
|
|
else |
|
|
|
format.html { render :new } |
|
|
|
|