Site map

SitemapGenerator::Sitemap.add_links do |sitemap|
   sitemap.add the_plugin_path
   sitemap.add '/some/manual/path'

Have you tried something like that?


Rob Biedenharn

Thanks Rob,

It gives me an error like

`load_missing_constant': uninitialized constant SitemapGenerator

,if I write this code in routes. So, where should I suppose to write
this code?

You'd put this code (really just the additional "sitemap.add" lines)
into your config/sitemap.rb file.

Are you sure that you installed the plugin? The SitemapGenerator
should be defined by the vendor/plugins/sitemap_generator/lib/
sitemap_generator.rb file which Rails will autoload as needed.