Class: SitemapController

Inherits:
ApplicationController show all
Defined in:
lib/generators/jinda/templates/app/controllers/jinda_org/sitemap_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#prepare_meta_tags

Instance Method Details

#indexObject



5
6
7
8
9
10
# File 'lib/generators/jinda/templates/app/controllers/jinda_org/sitemap_controller.rb', line 5

def index
  headers['Content-Type'] = 'application/xml'
  respond_to do |format|
    format.xml {@articles = Article.all}
  end
end