kjvarga / sitemap_generator

SitemapGenerator is a framework-agnostic XML Sitemap generator written in Ruby with automatic Rails integration. It supports Video, News, Image, Mobile, PageMap and Alternate Links sitemap extensions and includes Rake tasks for managing your sitemaps, as well as many other great features.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Symbol argument to :changefreq is interpreted as XML namespace

toupeira opened this issue · comments

I accidentally specified :changefreq => :daily in my sitemap.rb and got a parsing error when validating the generated sitemap. After some head-scratching I looked at the generated XML and noticed that it created an empty tag <changefreq:daily>, after changing :daily to 'daily' it works correctly.

Would be great to either support symbols too for these options, or at least throw a warning when they're used.