Class: Kinney::SitemapController

Inherits:
KinneyController show all
Defined in:
app/controllers/kinney/sitemap_controller.rb

Instance Method Summary collapse

Methods inherited from KinneyController

#gather_topics_for_navigation

Instance Method Details

#indexObject



5
6
7
8
9
10
11
12
# File 'app/controllers/kinney/sitemap_controller.rb', line 5

def index
  @people = Person.select([:id, :slug, :created_at, :updated_at])
  @clips  = Clip.all
  headers["Content-Type"] = "text/xml"
  respond_to do |format|
    format.xml{render :layout => false}
  end
end