NoMethodError in LineItems#cart_item

Showing /home/htoo/ebuy/app/views/line_items/cart_item.html.erb where line #114 raised:

undefined method `total_price' for nil:NilClass
Extracted source (around line #114):
112
113
114
115
116
117
              
<div class="col-md-12">
<br/><br/>
<%= t("Total_Price") %>: <%= (@cart.total_price) %> Ks
<input type="button" id="opener" class="btn btn-small" value="Get Coupons">
<br/> <br/>

Rails.root: /home/htoo/ebuy

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"cart_id"=>"10746475",
 "locale"=>"en"}

Response

Headers:

None