Use it on production.rb
config.assets.compile = true
If this does not work, then follow these steps. rake assets:precompile
it will generate a file with files in your shared folder, transfer all these files, and then output the code to the heroku server.
source share