Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Ray Zane's Profile

GitHub User: rzane

Comments by Ray Zane

Avatar

Don't forget .includes(:owner, :trackable)

Avatar

I use request.subdomains.first rather than request.subdomain as recommended by DHH: http://37signals.com/svn/posts/1512-how-to-do-basecamp-style-subdomains-in-rails

If you use request.subdomain and use an IP address as the URL, request.subdomain will include the IP address.