I have an issue I am not sure how to solve.
I am trying to deploy a rails 4 app with ember to heroku. I am using the 12factor gem.
But the wrinkle is that I only want to selectively include the ember code on a specific route and page of my rails application. All other pages should just be normal rails an have no knowledge of the ember app.
In development I was using
rootElement to attach my ember to a specific div element and then in a very specific view I was doing this
The problem now is that because everything is precompiled it seems that I can’t use this approach when deploying to heroku. Basically the ember code does not get compiled with the rest of application js file. But returns 404 when on heroku.
Anybody know a work around? I don’t wan’t my entire application to be a single page application. Just a specific route.