Discourse and Rails

I have seen that Discourse is not an API rails-app but a normal app made in rails. Doesn’t it use Ember as a frontend and Rails only as an API(backend)? Is there any reason for this choice?

That’s mostly correct.

Sometimes Rails is used to provide templates where javascript is not supported or wanted (e.g. for crawlers)

Start here: