Support for multiple domains/subdomains in Rails

Posted by thefactor on Stack Overflow See other posts from Stack Overflow or by thefactor
Published on 2010-02-22T05:00:45Z Indexed on 2010/04/30 17:57 UTC
Read the original article Hit count: 145

Filed under:

I have a Rails app that has a similar setup to Tumblr, that is, you can have either: (1) Subdomain hosting (your-username.myapp.com) (2) Domain hosting (your-username.com)

Both would forward to a personalized website for that user, created with my application.

How can I accomplish this in Rails? I have been able to get (1) working with subdomain-fu, but I'm not sure how to get (2) working. Any pointers (plugins, gems, tutorials), etc. would be greatly helpful, I can't seem to find any.

Thanks!

© Stack Overflow or respective owner

Related posts about ruby-on-rails