adjusts the routes to be rails 4 compatible.