small medium large xlarge

Generic-user-small
20 Nov 2010, 01:41
Kabir Mohammed (3 posts)

NoMethodError (undefined method price=' for #<LineItem:0x9e8ae00>): app/models/cart.rb:18:in add_product’ app/controllers/line_items_controller.rb:53:in `create’

I’ve been going through the depot application but I’ve come unstuck here. The above is error message from rake test

Generic-user-small
21 Nov 2010, 00:34
Jamal (4 posts)

My problem was I updated my version of rails, without downloading the updated code for the book. Find the code at http://pragprog.com/titles/rails4/source_code and see if that helps. Even if you have to abandon your version of the application (what I did) and just use that code, at least you can continue.

You must be logged in to comment