2013-10-15 175 views
0

我得到了升級,從軌3.2我的應用程序後,下面的錯誤軌道4軌道4升級問題導軌4

/xxx/activesupport-4.0.0/lib/active_support/core_ext/module/aliasing.rb:32: 
in `alias_method': undefined method `join_asset_file_contents' for 
module `ActionView::Helpers::AssetTagHelper' (NameError) 

from /xxx/activesupport-4.0.0/lib/active_support/core_ext/module/aliasing.rb:32: 
in `alias_method_chain' 

我怎麼能解決這個問題?

我的Gemfile

source 'http://rubygems.org' 

gem 'rails', '4.0.0' 
gem 'geocoder' 
gem 'dalli' 
gem "rmagick",:platforms=>:ruby 
gem "rscribd" 
gem "rubyzip", "0.9.9", :require => 'zip/zip' 
gem "roo", "1.12.2" 
gem "nokogiri", "1.6.0" 
gem "spreadsheet" 
gem "google-spreadsheet-ruby" 
gem "mysql2", "0.3.13" ,:platforms=>:ruby 
gem "delocalize" 
gem 'rake', '10.1.0' 
gem 'smurf' 
gem 'json' 
gem 'httparty' 
gem 'remotipart', '1.2.1' 
gem "delayed_job" 
gem "nested_form","0.3.2" 
+0

這是你必須有一個很好的錯誤。 – mcfinnigan

+0

有什麼辦法可以解決這個問題嗎? –

+0

這可能是一個與Rails 4不兼容的寶石。你可以發佈你的Gemfile嗎? – depa

回答

0

藍精靈寶石是不是真的導軌4友好。你可以在你的config/environments/production.rb中設置自己的壓縮機,並確保你沒有使用rails 3 compress = true設置。

# config.assets.compress = true --- commenting this out because it's deprecated. 
config.assets.js_compressor = :uglifier 
config.assets.css_compressor = :sass 

Uglifier和青菜是你需要重新添加到您的Gemfile寶石:

gem 'sass-rails' 
gem 'uglifier' 
+0

感謝您的輸入我已更新您的更改,但問題保持不變。 –