Pergunta de entrevista da empresa Whitespectre

How does rails work behind scenes to match the http request with the right route/controller?