Class: BlacklightDynamicSitemap::SitemapController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- BlacklightDynamicSitemap::SitemapController
- Defined in:
- app/controllers/blacklight_dynamic_sitemap/sitemap_controller.rb
Overview
Controller to handle the on-the-fly sitemap generation
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
11 12 13 |
# File 'app/controllers/blacklight_dynamic_sitemap/sitemap_controller.rb', line 11 def index @sitemaps = BlacklightDynamicSitemap::Sitemap.new.list end |
#show ⇒ Object
7 8 9 |
# File 'app/controllers/blacklight_dynamic_sitemap/sitemap_controller.rb', line 7 def show @sitemap_entries = BlacklightDynamicSitemap::Sitemap.new.get(id) end |