class SitemapController < ApplicationController caches_page :index, :if => Proc.new { |c| c.request.format.html? } def index @products = Product.all_ordered @custom_titles = SitemapTitle.all respond_to do |format| format.html format.xml end end end