Cloud Computing: The Digital Shift 2.0 – Understanding the Current Market Trends

How do i generate SEO sitemap in rails ?

What is sitemap ?

Sitemap is nothing but a .xml file containing urls available on your site

It contains URL, last modified date, frequency of content change and priority ( between 0..1 )

Why we need sitemap ?

We can submit sitemap file to search engine. It will help them in analysing what urls on your site are available for crawling.

What is xml pattern ?

[sourcecode lang=”xml”]
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="">



What will be the path for sitemap ?


Are we going to generate sitemap manually ?

No… there is mephisto sitemap plugin.We can use it.

script/plugin install

Am i needed to generate to sitemap for each request ?

No ………..we can generate it in background task daily basis.

How it will be accessed for request to sitemap ?

we can define path to local file in routes.

map.connect “sitemap.xml”, :controller => :sitemap

Class SitemapController

def index

render “some local file path”



Here are the reference links

0 thoughts on “How do i generate SEO sitemap in rails ?”

  1. Search engines generate nearly 90% of all Internet traffic and are responsible for 55% of all E-commerce transactions. Today, it is essential for all online businesses to make SEO an integral part of their online business strategy.So I would like to recommend one of my client who helps you define, evolve and implement a powerful SEO strategy to leverage your online business potential

  2. Wow, really helpful info! An automatic sitemap generator is really needed for a newbie who wants to build a sitemap especially for a large site. But online one often has a limit for pages volume, thus, a free tool with no limits is needed such as SitemapX.

Leave a Comment

Your email address will not be published.