Fixed issue with modernizr which was directly referenced in the application.html.erb and so, it wasn't precompiled.