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

Ask A Question

Notifications

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 abc.com and xyz.com
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 38,558+ 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

    © 2020 GoRails, LLC. All rights reserved.