Displaying 1 result from an estimated 1 matches for "current_cart_url".
2010 Apr 14
1
Rails validations app specific problems
...elow is my related app code.
Orders Controller:
[code]
def update
@order = Orders.find(params[:id])
respond_to do |format|
if @order.update_attributes(params[:order])
flash[:notice] = ''Your cart has been updated.''
format.html { redirect_to( current_cart_url ) }
format.xml { head :ok }
else
format.html { redirect_to( current_cart_url ) }
format.xml { render :xml => @order.errors, :status =>
:unprocessable_entity }
end
end
end
def cart
create_current_order unless current_order
@orde...