only declare routes once - supports rails 3.0.x and up