I have a simple rails application deployed in Heroku and I am trying to execute a static directory (containing index.html) from a folder public/demos, but running into some strange problem. I have it config.serve_static_assets = trueincluded in production, and if I go to mysite.com/demos/folder/, I can access the static page. But if I go to mysite.com/demos/folder(without a trailing slash), the index page will load, but not load a bunch of related css / js files located in the same directory. Is there a way around this or a better way to do this? I'm not sure the best way is static content with Rails, but this seems like a bad solution.
source
share