Based on the googling I've been doing for the past two days, I am joining the hundreds (if not thousands) of people who lost bootstrap styling when deploying to Heroku. As is true of everyone else, the bootstrap styling works fine on the local machine, but is absent on the deployed heroku site. I am stumped. I am using rails 4.2.4 and ruby 2.2.3. (I am also using RubyMine if that makes a difference. I don't think it does. I tried a deploy with "plain" git and sublime and it made no difference.) Here is what I have done:
Try to start a project from scratch and to just make Bootstrap working in production. I succeeded to do that with the maxcdn method.
Here is what I did to include the bootstrap maxcdn :
app/views/layouts/application.html.erb, at the end of the
<head> tag :
<!-- BOOTSTRAP --> <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"> </script>
I only did this, and nothing else. It worked like a charm, even in production on Heroku.