Intridea Blog: Technology, Design, Business

Back to Blog

Get in Touch

You're currently viewing posts tagged with: "routing"

Use lambdas for Rails 3 Route Constraints

By Michael Bleigh | February 21, 2011 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:

Read more…

SubdomainFu: A New Way To Tame The Subdomain