Using discourse as one part of a larger rails app?

Yes that’s very true. It takes experience to write plugins which are robust to core changes. You will need to evolve some elements of the app to keep up with changes in Discourse. But it can be done.