Depot, private issue

I got the following error.
My guess is that there is a ‘private’ setting in the lineitem class, but
I can’t find it :frowning:

"NoMethodError in Carts#show

Showing
/Users/kwadwoadu/src/ruby-test/depot/app/views/carts/show.html.erb where
line #11 raised:

private method `total_price’ called for #LineItem:0x007f98e108a0a8
Extracted source (around line #11):

8:


9: <%= item.quantity %>×
10: <%= item.product.title %>
11: <%= number_to_currency(item.total_price)
%>
12:
13: <% end %>
14: "

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs