# Site map

**URL:** <https://www.ruby-forum.com/t/site-map/177207>\
**Category:** Rails\
**Created:** [October 13, 2009, 12:54pm UTC](https://www.ruby-forum.com/t/site-map/177207 "2009-10-13T12:54:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![smit\_shah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/87869e/32.png) [@smit\_shah](https://www.ruby-forum.com/u/smit_shah)\
**Post date:** [October 13, 2009, 12:54pm UTC](https://www.ruby-forum.com/t/site-map/177207/1 "2009-10-13T12:54:36Z")

</div>

Hi All…

I am using generate\_sitemap plugin to generate sitemap. It goes very  
well and creates sitemap as well. My problem is I want some links that  
are coming from vender/plugins. Can any one tell me how to get those  
links???

Thanks all…

---

<div class="post-metadata">

**Author:** ![smit\_shah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/87869e/32.png) [@smit\_shah](https://www.ruby-forum.com/u/smit_shah)\
**Post date:** [October 13, 2009, 2:20pm UTC](https://www.ruby-forum.com/t/site-map/177207/2 "2009-10-13T14:20:20Z")

</div>

On Oct 13, 2009, at 6:54 AM, Smit S. wrote:

> Hi All…
> 
> I am using generate\_sitemap plugin to generate sitemap. It goes very  
> well and creates sitemap as well. My problem is I want some links that  
> are coming from vender/plugins. Can any one tell me how to get those  
> links???
> 
> ## Thanks all…

SitemapGenerator::Sitemap.add\_links do |sitemap|  
sitemap.add the\_plugin\_path  
sitemap.add ‘/some/manual/path’  
end

Have you tried something like that?

-Rob

Rob B. [http://agileconsultingllc.com](http://agileconsultingllc.com)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![smit\_shah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/87869e/32.png) [@smit\_shah](https://www.ruby-forum.com/u/smit_shah)\
**Post date:** [October 14, 2009, 5:51am UTC](https://www.ruby-forum.com/t/site-map/177207/3 "2009-10-14T05:51:30Z")

</div>

Thanks Rob,

It gives me an error like

/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active\_support/dependencies.rb:443:in  
`load\_missing\_constant’: uninitialized constant SitemapGenerator  
(NameError)

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

> SitemapGenerator::Sitemap.add\_links do |sitemap|  
> sitemap.add the\_plugin\_path  
> sitemap.add ‘/some/manual/path’  
> end
> 
> Have you tried something like that?
> 
> -Rob
> 
> Rob B. [http://agileconsultingllc.com](http://agileconsultingllc.com)  
> removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![smit\_shah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/87869e/32.png) [@smit\_shah](https://www.ruby-forum.com/u/smit_shah)\
**Post date:** [October 14, 2009, 4:49pm UTC](https://www.ruby-forum.com/t/site-map/177207/4 "2009-10-14T16:49:50Z")

</div>

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.

-Rob

On Oct 13, 2009, at 11:51 PM, Smit S. wrote:

> ,if I write this code in routes. So, where should I suppose to write
> 
> > -Rob
> > 
> > Rob B. [http://agileconsultingllc.com](http://agileconsultingllc.com)  
> > removed\_email\_address@domain.invalid
> 
> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

Rob B. [http://agileconsultingllc.com](http://agileconsultingllc.com)  
removed\_email\_address@domain.invalid  
+1 513-295-4739  
Skype: rob.biedenharn
