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!

Didn’t take to long to find the source of the bug. Just change one line in


. So:

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


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