Posts tagged with: "routing"

Use lambdas for Rails 3 Route Constraints

By Michael Bleigh February 21, 2011 in routing, rails 3, constraints

I love the new constraints feature of Rails 3 routing. It opens up powerful new avenues for handling certain scenarios before a request is even delivered to the controller. One thing that bugs me, though, is that making a new class for any non-standard request-based constraint is kind of a pain. Rather than this:

SubdomainFu: A New Way To Tame The Subdomain

By Michael Bleigh June 23, 2008 in rails, plugins, open-source-monday, gemplugin, subdomains, account_location, routing, url_for