Archive: ComponentOwl Rails app, DB backups, go redirect script
This commit is contained in:
15
app/controllers/sitemap_controller.rb
Normal file
15
app/controllers/sitemap_controller.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
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
|
||||
Reference in New Issue
Block a user