16 lines
297 B
Ruby
16 lines
297 B
Ruby
|
|
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
|