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

Reply

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

Reply
Join the discussion
Create an account Log in

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

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

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