Rails 3 routing DSL implementation

I picked out the bare essentials from the rails 3 routing code to expose how this DSL is implemented. Here it is.

RouteSet’s responsibility is to store the routes. It hands off responsibility for creating those routes to Mapper.

Mapper contains the DSL, the high level API layered onto RouteSet.

Ben Marini

  • software craftsman
  • san francisco, ca

Rails respond_to gotcha
06 Sep 2011
Rails 3 modularity
30 Dec 2010
Rails 3 routing DSL implementation
29 Dec 2010
A DSL implementation based on Bundler
28 Dec 2010
The case for case statements
18 Apr 2009