Using discourse as one part of a larger rails app?

True - you could build a big plugin to integrate your “app”. Lots of possibilities there depending on how deep you want to go!