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) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/camping-list/attachments/20100308/1ebb0d81/attachment.html>
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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/camping-list/attachments/20100313/fb28c3a8/attachment.html>
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 <ruby at 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 at rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/camping-list/attachments/20100313/0b361a34/attachment.html>
For now, added to the wiki under ''Miscellaneous Camping links''. Be good to find a few more ''made with Camping'' sites/apps to add to the list - anyone want to put up their app? - Dave Everitt> Magnus Holm wrote: Cool. We''ll have to find a place on the wiki for > these things :-) > >> Philippe Monnet wrote: I wrote a simple (and crude) Google sitemap >> generator - see http://gist.github.com/330973