search for: create_current_ord

Displaying 1 result from an estimated 1 matches for "create_current_ord".

Did you mean: create_current_order
2010 Apr 14
1
Rails validations app specific problems
...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 @order = current_order end def checkout @order = current_order end def complete_order @order = current_order respond_to do |format| if @order.update_attributes(params[:order]) @order.complete #sets order completed at date and state to...