Class: SitemapController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- SitemapController
- Defined in:
- lib/generators/jinda/templates/app/controllers/jinda_org/sitemap_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#index ⇒ Object
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 |