Creating a sitemap for Rails and Heroku

Most sitemap posts seem to explain the best way of doing things as running a background job that then writes / updates the sitemap.xml file. This is a bit of a problem in a predominantly read-only environment such as heroku. To solve this, we wrote a quick controller action to create the sitemap on the [...]

Sitemap Generator for Ruby on Rails Applications

Follow these steps if you wish to add a sitemap.xml generator to a rails application. The idea is to generate a sitemap.xml for selected records from the database, in this case they are Articles and Categories. This sitemap is pinged to popular search engines like google, yahoo, bing and ask. Step 1: Add a sitemap.rb [...]