Cool. We'll have to find a place on the wiki for these things :-) Couldn't you also figure out SITE_BASE_URL in GoogleSiteMap? @request.url.gsub("/sitemap.xml", "") or something? // Magnus Holm
On Sat, Mar 13, 2010 at 18:21, Philippe Monnet <r...@monnet-usa.com> wrote: > Since I could not find one, I wrote a simple (and crude) Google sitemap > generator - see http://gist.github.com/330973 > > After pasting the code in your app controllers module, you just need to > customize 2 things: > > 1) the base url of your site: > > SITE_BASE_URL = "http://www.myapp.com" > > 2) list the controllers you want to expose on the sitemap (since you may > not want to expose all controllers): > > def self.sitemap_candidates > [ :Test1, :Test2 ] > end > > Have fun. > > Philippe > > > On 3/8/2010 9:36 PM, Philippe Monnet wrote: > > When searching I have found a few Rails-specific sitemap generators but I > was wondering if anyone new of a Camping-specific implementation? > > Philippe (techarch) > > > > _______________________________________________ > Camping-list mailing list > Camping-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list >
_______________________________________________ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list