Ask A Question


You’re not receiving notifications from this thread.

How to have one application for multiple URL's

Peter vande Put asked in Rails

We have a requirement where are rails application should be available on multiple domains like and
based on domain it will only show a different logo all the rest is identical.
What's the best approach for this ? all tips are welcome


You can use request.domain to check the current domain and query your database for the account & logo you need to show.

Join the discussion
Create an account Log in

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

Join 77,200+ 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.