Subdomain routing with rails 2

What is the best to route based on the subdomain in routes.rb ?

There used to be a plugin
http://svn.danwebb.net/external/rails/plugins/request_routing/trunk/README
for rails 1.

But as the routing mechanism has been rewritten, what is the prefered
way today ?