I just had the same problem. I solved it by setting config.assets.compile = true in config/environments/production.rb
EDIT: This works fine while developing, but has a performance penalty as compilation is performed in run-time. See the answer below for a better solution