我收到此错误:Rails的预编译错误
Sprockets::Helpers::RailsHelper::AssetPaths::AssetNotPrecompiledError in Main#index
Showing /etc/apache2/CrawlFish/app/views/layouts/application.html.erb where line #15 raised:
jquery-ui-1.8.20.custom.min isn't precompiled
在配置/ environements/production.rb
,我已经加入这一行:
config.assets.precompile += %w(jquery-ui-1.8.20.custom.min.js)
即使这样做之后,我是得到上面的预编译错误。在public/assets/manifest.yml中,没有用于jquery-ui-1.8.20.custom.min.js文件的条目。但在公共/资产中,有这些文件生成:
jquery-ui-1.8.20.custom.min-3ef66af7d5b20341b5fceb4ad1b2755f.js
jquery-ui-1.8.20.custom.min-3ef66af7d5b20341b5fceb4ad1b2755f.js.gz
jquery-ui-1.8.20.custom.min.js
jquery-ui-1.8.20.custom.min.js.gz
如何解决此问题?
是什么application.html.erb线15说呢? –
@AnatortoiseHouse:第15行:<%= javascript_include_tag“jquery-ui-1.8.20.custom.min”%> – Carsen