Rdoc on edge rail fails at generator template

Infinite loop at a generator template :-

                  controller.rb: c

railties/lib/rails_generator/generators/components/controller/templates/controll
er.rb:3:15: Expected class name or ‘<<’. Got RubyToken::TkLT: “<”

And BTW why are templates named .rb ?

Thanks

Does anyone have a workaround for this? We have “frozen” rails at 1.1.2,
so the vendor directory contains the rails source. Now rdoc for the app
fails with the error listed in Kevin’s post below.

TIA,
Keith