adamsalter / sitemap_generator

This plugin enables 'enterprise-class' Google Sitemaps to be easily generated for a Rails site as a rake task, using a simple 'Rails Routes'-like DSL. It allows you to take care of familiar Sitemap issues like: Gzip of Sitemap files, variable priority links, paging/sorting links (e.g. my_list?page=3), SSL host links (e.g. https:), Rails apps which are installed on a sub-path (e.g. example.com/blog_app/) and hidden AJAX routes. It includes a Sitemap Index file so it supports more than the standard 50,000 individual urls (up to a maximum of 2.5 billion), and pings all major search engines on completion (Google, Yahoo, MSN, Ask, SitemapWriter).
MIT License
268 stars 304 forks source link

Sitemap_generator not compatible with Rails 3 #5

Closed nono closed 14 years ago

nono commented 14 years ago

Hi,

sitemap_generator is not compatible with Rails 3. Do you have plans to update it?

The error: /home/nono/gem/gems/actionpack-3.0.0.beta/lib/action_controller/metal/url_for.rb:90: undefined method `class_attribute' for SitemapGenerator::Helper:Module (NoMethodError)

kjvarga commented 14 years ago

I have a Rails 3 compatibility patch that I will look into shortly, so yes, I am planning on getting that sorted.

nono commented 14 years ago

Cool. i'm impatient to test it ;-)

kjvarga commented 14 years ago

Good news! I've added Rails 3 support to version 0.2.5! Check it out and let me know if you have any problems.

Cheers, Karl

nono commented 14 years ago

Thanks. I've tried it on a project in development, and it seems to work fine :-)