> https://devcenter.heroku.com/changelog-items/426
>
>
> Jaimin -- what's on line app/controllers/orders_controller.rb:56 in your
> app ?

In orders_controller.rb, line no. 56 as follow:
class OrdersController < ApplicationController
.
.
.
 def create
    @order = Order.new(params[:order])
    @order.add_line_items_from_cart(current_cart)

    respond_to do |format|    **# Line no. 52**
      if @order.save
        Cart.destroy(session[:cart_id])
        session[:cart_id] = nil
        OrderNotifier.received(@order).deliver    ** #line number 56 **
        format.html { redirect_to store_url, notice:
          'Thank you for your order.' }
        format.json { render json: @order, status: :created,
          location: @order }

        else
          @cart = current_cart
          format.html { render action: "new" }
          format.json { render json: @order.errors,
             status: :unprocessable_entity }
       end
   end
end
.
.
.
end

Kind regards,

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/1cfdd5da273045c8302d7cc222da8db6%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to