what should i add to sitemap to correctly working? I using gem 'sitemap_generator' . It is a good idea to using gem ?
sitemap.rb
SitemapGenerator::Sitemap.default_host = "http://localhost:3000"
SitemapGenerator::Sitemap.adapter = SitemapGenerator::WaveAdapter.new
SitemapGenerator::Sitemap.create do
add root_path
add news_index_path, changefreq: 'weekly'
add castings_path
add premium_path
News.find_each do |news|
add news_index_path(news), :lastmod => news.updated_at
end
end