small medium large xlarge

_dsc0355_pragsmall
12 Jun 2010, 21:21
Ulf Klose (5 posts)

After passing chapter Iteration G2 I have the following lines in my entry after using the curl-command mentioned on page 211:

ActionView::Template::Error (undefined method orders’ for #): 1: atom_feed do |feed| 2: feed.title "Who bought #{@product.title}" 3: 4: latest_order = @product.orders.sort_by(&:updated_at).last 5: feed.updated( latest_order && latest_order.updated_at ) 6: 7: for order in @product.orders `

Any idea what this could be? Hope I didn’t miss anything from the previous chapters.

I just pushed my code to my GitHub account: http://github.com/ulfklose/depot. Feel free to browse it if that helps.

_dsc0355_pragsmall
12 Jun 2010, 21:40
Ulf Klose (5 posts)

Oops, sorry, didn’t see that the solution to this problem was already posted:

http://forums.pragprog.com/forums/148/topics/4577

You must be logged in to comment