Module: Cms::Routes

Defined in:
lib/bcms_sitemap/routes.rb

Instance Method Summary collapse

Instance Method Details

#routes_for_bcms_sitemapObject



2
3
4
5
6
7
8
9
# File 'lib/bcms_sitemap/routes.rb', line 2

def routes_for_bcms_sitemap
  sitemaps 'sitemaps.xml', :controller => :sitemaps, :action => 'index'
  sitemap_for_model 'sitemaps/:model.xml', :controller => :sitemaps, :action => 'model', 
    :requirements => { :model => /#{Cms::SitemapSubmitter.models.join('|')}/ }
  namespace :cms do |cms|
    cms.resources :search_engines
  end
end