views:

253

answers:

2

I'm currently evaluating options for adding sub-domain support to a new Ruby on Rails app and was wondering if there were any suggestions or experience that others could share.

Some possible Choices

SubDomain-Fu

http://github.com/mbleigh/subdomain-fu/tree/master

Rolling your own

http://www.robbyonrails.com/articles/2009/01/11/subdomain-accounts-with-ruby-on-rails-explained

DHH Style http://37signals.com/svn/posts/1512-how-to-do-basecamp-style-subdomains-in-rails

+4  A: 

I recommend subdomain-fu. I did a Railscasts episode on it a while back and it worked well.

ryanb
Awesome, thanks Ryan.
Mike Buckbee
A: 

I can add all the subdomains in my /etc/hosts file but can do it dynamically with * wildcard. Am I missing something.

I use a proxy.pac file to redirect *.local urls. Ryan's railscast mentions it as well.
Andy Gaskell