Main Contents

Rake 0.7, Rails 1.0, appdoc target

ruby, software development

Ran into a minor inconvenience going through Agile Web Development with Rails. Running the command:

rake appdoc

Results in the following error:

rm -r doc/app
unrecognized option `--line numbers -- inline-source'
For help on options, try 'rdoc --help'
rake aborted!
exit

Didn’t take to long to find the source of the bug. Just change one line in /usr/lib/ruby/gems/1.8/rails-1.0.0/lib/tasks/documentation.rake. So:

rdoc.options < < '--line-numbers --inline-source'

Becomes:

rdoc.options < < '--line-numbers' << 'inline-source'

Ed Gibbs @ March 21, 2006

3 Comments

  1. Cory Foy April 3, 2006 @ 7:08 pm

    Thanks Ed. I didn’t even need to go find it because of your entry. Do appreciate it!

  2. Ed Gibbs April 3, 2006 @ 9:40 pm

    Glad the post was of some help.

Leave a comment


Feed