[routes] compatibility across Rails 3.0.x and 3.2.x (3.1.x untested)