Note that there are some explanatory texts on larger screens.

plurals
  1. PORails: how do I resolve the 'rake/rdoctask'' is deprecated' warning?
    primarykey
    data
    text
    <p>Just a forewarning: I'm a rails noob.</p> <p>When I run:</p> <pre><code>rake db:migrate </code></pre> <p>I get this deprecation warning:</p> <pre><code>WARNING: 'require 'rake/rdoctask'' is deprecated. Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead. at /Users/username/Code/rails/appname/rake/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/rdoctask.rb </code></pre> <p>I'm using:</p> <ul> <li>Rails 3.0.1 </li> <li>Rake 0.9.2.2 </li> <li>RSpec 2.0.1 </li> <li>RDoc 3.12</li> </ul> <p>If I uninstall rake 0.9.2.2 and use 0.8.7 there's no warning, but I rather not count that as a solution. </p> <p>After a google search, many sites say I need to update a line in my Rakefile (basically changing require ‘rake/rdoctask’ to require ‘rdoc/task’). However, my Rakefile looks like this:</p> <pre><code>require File.expand_path('../config/application', __FILE__) require 'rake' AppName::Application.load_tasks </code></pre> <p>There's no require statement to replace. When I add require 'rdoc/task', it has no effect. When I search the project for the deprecated 'rake/rdoctask', there are no results. So why is rails complaining?</p> <p><strong>edit:</strong> Not sure if it matters, but here's my gemfile:</p> <pre><code>source 'http://rubygems.org' gem 'rails', '3.0.1' gem 'sqlite3-ruby', :require =&gt; 'sqlite3' group :development, :test do gem 'rspec-rails', '2.0.1' gem 'annotate-models', '1.0.4' end group :test do gem 'rspec', '2.0.1' gem 'webrat', '0.7.1' gem 'spork', '0.8.4' end </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload