Rake 0.7, Rails 1.0, appdoc target
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


Thanks Ed. I didn’t even need to go find it because of your entry. Do appreciate it!
Glad the post was of some help.