1 class InfoController
< ApplicationController
3 @product = Product
.find(params
[:id])
4 @orders = @product.orders
7 format
.xml
{render
:layout => false}
8 format
.atom
{render
:layout => false}
9 format
.json
{render
:layout => false, :json => @product.to_json(:include => :orders) }