=> Booting Mongrel
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
/usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement
/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1959:in `method_missing': undefined method `class_attribute' for ActiveRecord::Base:Class (NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/paperclip-2.3.14/lib/paperclip.rb:182:in `included'
from /home/prabhu/Desktop/test/vendor/plugins/thoughtbot-paperclip-13d51e3/lib/paperclip/railtie.rb:20:in `include'
from /home/prabhu/Desktop/test/vendor/plugins/thoughtbot-paperclip-13d51e3/lib/paperclip/railtie.rb:20:in `send'
from /home/prabhu/Desktop/test/vendor/plugins/thoughtbot-paperclip-13d51e3/lib/paperclip/railtie.rb:20:in `insert'
from /usr/lib/ruby/gems/1.8/gems/paperclip-2.3.14/rails/init.rb:2:in `evaluate_init_rb'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:158:in `evaluate_init_rb'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:154:in `evaluate_init_rb'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:48:in `load'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:38:in `load_plugins'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:37:in `each'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:37:in `load_plugins'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:369:in `load_plugins'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:165:in `process'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `send'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `run'
from /home/prabhu/Desktop/test/config/environment.rb:9
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/commands/server.rb:84
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from script/server:3
回答
你還沒有問一個問題,但我想你有一些問題, 'class_attribute' 是不確定的。
我不確定(懶得檢查;-),但可能'class_attribute'已被添加到Rails 3中。您有Rails 2和一個回形針gem。
你可以嘗試使用這種寶石的舊版本 - 只是檢查哪一個是使用Rails兼容2.
UPDATE:
正如你可以在評論閱讀,大衛發現你的一個版本有這個方法定義的Rails。所以,你有兩個選擇:升級Rails至少2.3.9,或降級回形針。
你是對的:'class_attribute'最初被添加到Rails 3.但是,它被移植到了Rails 2.3.9,因此可能是OP的一個選項。 –
那個問題現在解決了我在獲取嘗試上傳圖像時出現以下錯誤[回形針]/usr/bin/identify'-format%wx%h:file'2>/dev/null [paperclip]處理時收到錯誤:#
- 1. 回形針目錄複數化問題
- 2. 回形針與回形針問題
- 3. 導軌3回形針imagemagick問題
- 4. ImageMagick和回形針問題
- 5. 用回形針問題
- 6. 回形針節能問題
- 7. 回形針+ vestal_versions問題
- 8. ajax問題回形針
- 9. 回形針 - 查看問題
- 10. Rails回形針問題
- 11. 回形針上傳問題
- 12. mod_rails和回形針問題回形針:: NotIdentifiedByImageMagickError
- 13. 有關回形針的問題關於回形針
- 14. 回形針錯誤
- 15. 回形針和嵌套屬性問題
- 16. 回形針+的Heroku + S3問題
- 17. 回形針和fancybox寶石問題
- 18. 回形針S3圖像路徑問題
- 19. 回形針和Amazon S3問題
- 20. Windows上的回形針/ ImageMagick問題
- 21. 回形針和文件上傳問題
- 22. Rails的3&回形針問題
- 23. 回形針的問題accept_nested_attributes_for和reject_if
- 24. 回形鍼關聯的問題
- 25. Ruby問題寶石回形針
- 26. 嵌套屬性問題 - 回形針
- 27. 回形針錯誤:未初始化的常量回形針(NameError)
- 28. 問題與回目錄
- 29. Rails - 無回形針使用回形針?
- 30. 問題瓦特/回形針,MacPorts的,ImageMagick的和雪豹
你希望我們能夠真正閱讀嗎?請重新格式化爲清晰的內容。編輯有很多工具可以幫助你解決這個問題。 –