2012-08-24 70 views
0

我正在使用Rails 3.2應用程序,並計劃安裝activeadmin以管理資源。然而,當我添加gem 'activeadmin'到Gemfile中,然後運行bundle,它會產生這樣的錯誤:Rails 3.2 - Formtastic gem不會安裝

NoMethodError: undefined method `spec' for nil:NilClass 
An error occured while installing formtastic (2.1.1), and Bundler cannot continue. 
Make sure that `gem install formtastic -v '2.1.1'` succeeds before bundling. 

果然,當我嘗試安裝僅formtastic,並添加gem formtastic到Gemfile中,然後運行bundle,我得到相同錯誤。其他人是否遇到過這種情況?順便說一下,我已經嘗試了2.2.1和2.1.1的formtastic版本(因爲活動管理員需要〜> 2.1.1)。提前致謝!

回答