0

実行しようとすると:

rake db:migrate

端末は次のように答えます。

rake aborted!
ERROR: 'rake/rdoctask' is obsolete and no longer supported. Use 'rdoc/task' (available in RDoc 2.4.2+) instead.
/Users/Charles/.rvm/gems/ruby-1.9.3-p429@rails3tutorial/gems/railties-3.0.5/lib/rails/tasks/documentation.rake:1:in `require'
/Users/Charles/.rvm/gems/ruby-1.9.3-p429@rails3tutorial/gems/railties-3.0.5/lib/rails/tasks/documentation.rake:1:in `<top (required)>'
/Users/Charles/.rvm/gems/ruby-1.9.3-p429@rails3tutorial/gems/railties-3.0.5/lib/rails/tasks.rb:15:in `load'
/Users/Charles/.rvm/gems/ruby-1.9.3-p429@rails3tutorial/gems/railties-3.0.5/lib/rails/tasks.rb:15:in `block in <top (required)>'
/Users/Charles/.rvm/gems/ruby-1.9.3-p429@rails3tutorial/gems/railties-3.0.5/lib/rails/tasks.rb:6:in `each'
/Users/Charles/.rvm/gems/ruby-1.9.3-p429@rails3tutorial/gems/railties-3.0.5/lib/rails/tasks.rb:6:in `<top (required)>'
/Users/Charles/.rvm/gems/ruby-1.9.3-p429@rails3tutorial/gems/railties-3.0.5/lib/rails/application.rb:213:in `require'
/Users/Charles/.rvm/gems/ruby-1.9.3-p429@rails3tutorial/gems/railties-3.0.5/lib/rails/application.rb:213:in `initialize_tasks'
/Users/Charles/.rvm/gems/ruby-1.9.3-p429@rails3tutorial/gems/railties-3.0.5/lib/rails/application.rb:139:in `load_tasks'
/Users/Charles/.rvm/gems/ruby-1.9.3-p429@rails3tutorial/gems/railties-3.0.5/lib/rails/application.rb:77:in `method_missing'
/Users/Charles/rails_projects/demo_app/Rakefile:7:in `<top (required)>'
/Users/Charles/.rvm/gems/ruby-1.9.3-p429@rails3tutorial/bin/ruby_noexec_wrapper:14:in `eval'
/Users/Charles/.rvm/gems/ruby-1.9.3-p429@rails3tutorial/bin/ruby_noexec_wrapper:14:in `<main>'
(See full trace by running task with --trace)

ここで提案されている解決策はありません (特に gem のダウングレード、または Rakefile の変更 (以下) 作業 (rake バージョン 10.0.1))

require File.expand_path('../config/application', __FILE__)
require 'rake'

DemoApp::Application.load_tasks

ご協力ありがとうございました、

4

2 に答える 2

0

Rails バージョン 3.0.5 を使用していると仮定します。Gemfile を更新してからgem 'rails', '3.0.20'実行しますbundle update rails

于 2013-08-01T00:54:14.440 に答える