Ask A Question


You’re not receiving notifications from this thread.

How do you handle the Sitemap for a user generated content website like a social media network?

Kshitij Choudhary asked in Rails

I want Google to index my dynamic sitemap that gets updated every time a user creates a record


Homepage —
Project example —
Basically I want the Sitemap to include all projects links -* (except edit routes)


As long as the page is linked somewhere, Google will usually find and index it automatically, so you may not need to do this as

You could probably use the sitemap_generator gem to create sitemaps and point Google to it.

Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 79,047+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

    © 2023 GoRails, LLC. All rights reserved.