All threads / How to have one application for multiple URL's

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

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

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

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

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2021 GoRails, LLC. All rights reserved.