Are you looking for the standard install?
Rails is involved but the templates are more often a EmberJS artefact in the Discourse codebase as it’s a Single Page Application.
It’s unnecessary to get into the weeds to begin with though. You can edit a lot of the in app text in the admin dashboard and many other ready baked customisation options in #theme