2 feed.title "Who bought #{@product.title}"
3 feed.updated @orders.first.created_at
5 feed.entry(order) do |entry|
6 entry.title "Order #{order.id}"
7 entry.summary :type => 'xhtml' do |xhtml|
8 xhtml.p "Shipped to #{order.address}"
13 xhtml.th 'Total Price'
15 for item in order.line_items
17 xhtml.td item.product.title
18 xhtml.td item.quantity
19 xhtml.td number_to_currency item.total_price
23 xhtml.th 'total' , :colspan => 2
24 xhtml.th number_to_currency \
25 order.line_items.map(&:total_price).sum
28 xhtml.p "Paid by #{order.pay_type}"
30 entry.author do |author|
32 entry.email order.email