Monday, May 22, 2006

Dan Webb's Request Routing Plugin

Posted by josh

Have you ever wanted to write Rails routes using a URL’s subdomain? What about routing based on whether a request was HTTP vs HTTPS? Well, now you can. Recently Dan Webb released his “Request Routing Plugin”: for public use. This plugin lets you create routing rules that use a whole slew of new properties: domain, subdomain, method, port, remote_ip, content_type, accepts, request_uri, and protocol.

You can obtain the plugin from Dan’s subversion repository:

ruby script/plugin install \