Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I really wouldn't recommend using controller and simply routing to it like '/sitemap.xml', because if your sitemaps will grow it will waste resourses. It would be best to make a rake task and regenerate sitemaps every night or so, depending on how frequently the content changes.</p> <p>If your site does not have anywhere near 50000 pages and you're not planing to have more then you can fit in one sitemap file then I suggest you use "<a href="http://harrylove.org/2008/06/10/google-sitemaps-with-ruby-on-rails-capistrano-and-cron" rel="nofollow noreferrer">Google Sitemaps with Ruby on Rails, Capistrano, and Cron</a>" I know it works decently because I'm using it sucessfully atm.</p> <p><strong>Note:</strong> I would not suggest using authors way of copying sitemaps every time when deployment task is run, in my opinion it's not clean. It's better to use shared directory and symlink to it on deployment, then you'll be sure to have only one version of files and now wasting space if extra copies get left behind. I have this in my deploy.rb:</p> <pre><code>desc "Symlink the upload directories" task :before_symlink do run "rm -drf #{release_path}/public/sitemaps" run "ln -s #{shared_path}/sitemaps #{release_path}/public/sitemaps" end </code></pre> <p>Also you can use "<a href="http://github.com/alexrabarts/big_sitemap/tree/master" rel="nofollow noreferrer">Big sitemap</a>" gem, but I have found it just now and can't tell you how good it is. It looks like it's really easy to setup this gem and it also uses your rails routes for link generation, so you'll have one problem less to solve than with the first solution.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload