[Source]
# File app/controllers/info_controller.rb, line 3 3: def who_bought 4: @product = Product.find(params[:id]) 5: @orders = @product.orders 6: respond_to do |accepts| 7: accepts.html 8: accepts.xml { render :xml => @product.to_xml(:include => :orders) } 9: end 10: end
[Validate]