Rails 3.1.我试图预编译资产.
$rake assets:precompile RAILS_ENV=production rake aborted! /home/user/project/public/assets/jquery-ui.min-0e8a11c7e970b57b4bf5c449cb14480d.js.gz has a invalid UTF-8 byte sequence Tasks: TOP => assets:precompile (See full trace by running task with --trace)
有任何想法吗?
解决方法
https://github.com/sstephenson/sprockets/issues/219
config.assets.precompile = %w( files )
代替
config.assets.precompile += %w( files )
要么
config.assets.precompile << %w( files )