I think you have a precompilation of assets, and since the image does not exist in the resource folder, the name of the compilation file is null, but the path points to the root of the resource folder. Do you also see an error in not finding the precompiled asset in the logs?
Try running a precompilation of resources in a development environment to get past this. I will not redraw the details of the preliminary compilation of assets - you can check http://guides.rubyonrails.org/asset_pipeline.html for detailed information on the asset pipeline. If you see this problem only in a production environment, it may be because the host platform pre-combines the assets for you.
However, if you expect this to happen in production, you can check for an image instead of disabling precompilation.
source share