using Rails.application.routes.named_routes to ensure only named routes