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

this is wrong: require 'sitemap_generator/tasks' rescue LoadError #8

Closed ghazel closed 14 years ago

ghazel commented 14 years ago

require 'sitemap_generator/tasks' rescue LoadError does not work.

Example: http://codepad.org/bEQIuIS6

You can do this: begin require 'sitemap_generator/tasks' rescue LoadError end

Example: http://codepad.org/p27EDH1E

You could also do: begin; require 'sitemap_generator/tasks'; rescue LoadError; end

kjvarga commented 14 years ago

Thanks for the tip, I've updated the README