Sha256: b6d1f3a4b3408deac0e9ea636decb6f64f55c625e88992f3ee85b03bdc396ef7

Contents?: true

Size: 244 Bytes

Versions: 3

Compression:

Stored size: 244 Bytes

Contents

require_dependency "shopping_cart/application_controller"

module ShoppingCart
  class OrderItemsController < ApplicationController

    def destroy
      OrderItem.find_by_id(params[:id]).destroy
      redirect_to root_path
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shopping-cart-0.1.2 app/controllers/shopping_cart/order_items_controller.rb
shopping-cart-0.1.1 app/controllers/shopping_cart/order_items_controller.rb
shopping-cart-0.1.0 app/controllers/shopping_cart/order_items_controller.rb