运行:RAILS_ENV=development bundle exec rake assets:precompile

出现如下错误:Don't know how to build task 'assets:precompile'

解决方案:在config/application.rb文件中加入:require 'rails/all' ,有些项目可能存在,那么可能需要把这句的注释去掉。重新编译,一切正常。