I've encountered an issue with my app that I deployed to Heroku. While the CSS background loads perfectly in my development environment, it's not displaying in my production environment.
body {
font-family: "Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
background: url('letters.jpg') no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
-o-background-size: cover;
}
After reading an article on Heroku, I tried adding this line to my application.rb file:
config.assets.initialize_on_precompile = true
However, the article mentioned that I may not need to do this if I have the 'rails_12factor' gem installed. Could my syntax be incorrect, or is there another piece of code missing somewhere?