fix asset pre-compilation issue in rails