small medium large xlarge

17 Mar 2014, 09:45
Raghavendra V (1 post)

NoMethodError in OrdersController#new

undefined method `line_items’ for nil:NilClass

error points to this line in the orders controller

after this error….

include CurrentCart before_action :set_cart, only: [:new, :create]

above code is added which results in new error

Routing Error uninitialized constant OrdersController::CurrentCart

please can anyone help me to resolve this

You must be logged in to comment