Super simple library for using subdomains in your rails routes.
Lets you do
subdomain('online') do
root :to => 'online#index'
end
in your routes.rb.
It also has subdomain(Subdomain::None) do which matches www.yourdomain.com as well as yourdomain.com, and subdomain(Subdomain::Any) do which matches as long as a subdomain other than www is present.