Sitemap Generator Links are not Correct for rails sitemap_generator -


getting strange error when leveraging sitemap_generator in production. here's relevant code:

sitemapgenerator::sitemap.default_host = "http://www.wheretoski.co" sitemapgenerator::sitemap.create   user.find_each |user|     add users_path(user), :lastmod => user.updated_at   end 

this generates locations this:

<loc>http://www.wheretoski.co/users.1</loc> 

i expecting output.

<loc>http://www.wheretoski.co/users/1</loc> 

can let me know i'm going wrong here?

many thanks!

i never create sitemap this, work me

xml.instruct!  xml.urlset :xmlns => "http://www.sitemaps.org/schemas/sitemap/0.9"     ["action_1", "action_2", "action_3"].each |page|         xml.url             xml.loc send("#{page}_url")             xml.changefreq "weekly"             xml.priority 0.2         end     end end 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -