给我解决方案 当我正在运行rake db:create 它显示出像这些
的警告DEPRECATION WARNING: railtie_name is deprecated and has no effect. (called from <class:Engine> at /home/shajin/.rvm/gems/ruby-1.9.2-p0/bundler/gems/spree_paypal_express-073f2f814dd8/lib/spree_paypal_express.rb:5)
WARNING: 'require 'rake/rdoctask'' is deprecated. Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead.
at /home/shajin/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.2.2/lib/rake/rdoctask.rb
WARNING: Global access to Rake DSL methods is deprecated. Please include
... Rake::DSL into classes and modules which use the Rake DSL methods.
WARNING: DSL method Soletronspree::Application#task called at /home/shajin/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.7/lib/rails/application.rb:215:in `initialize_tasks'
WARNING: 'task :t, arg, :needs => [deps]' is deprecated. Please use 'task :t, [args] => [deps]' instead.
at /home/shajin/.rvm/gems/ruby-1.9.2-p0/gems/deface-0.5.2a/tasks/deface.rake:3:in `block in <top (required)>'
soletronspree_test already exists
soletronspree_development already exists
答案 0 :(得分:0)
首先尝试更新你的宝石,特别是spree_paypal_express。
bundle update
它目前被锁定在073f2f814dd8 ...并且根据GitHub,SHA1哈希指向了6个月的提交。
如果您当前没有使用git存储库中的最新版本,请将gem行更改为:
gem "spree_paypal_express", :git => "git://github.com/spree/spree_paypal_express.git"
最新的paypal扩展版本取决于Spree 1.0.0或更高版本。要安装1.0.0,请将当前的spree gem行更改为:
gem 'spree', '1.0.0'
并运行bundle update
请记住,更新Spree可能会破坏以前的其他功能。 但是保持最新状态以获得所有最新功能总是一个好主意。