This is a great tip.. Thanks a TON...
On 1/30/06, John Wells <lists@sourceillustrated.com>
wrote:>
> Guys,
>
> I posted my question to the Ruby list and got a few very good
> responses...here was my solution, FYR:
> ---------------------------------------------------------
> Apparently, someone had already thought of doing this and didn''t,
as
> evidenced by the following lines in rubygems/doc_manager.rb:
>
> #TODO: Why is this throwing an error?
> #ri = RDoc::RDoc.new
> #ri.document([''-R''] + source_dirs)
>
> Anyway, I was successful...I''ll look at making this more
integrated and
> submitting as a patch, but for the quick hack all it took was changing
> the following line (58 in my version):
>
> r.document([''--quiet'', ''--op'',
rdoc_dir] + @rdoc_args.flatten +
> source_dirs)
>
> to:
>
> r.document([''--quiet'', ''--op'',
''--merge'', ''-r'',
''--ri-system'', rdoc_dir]
> + @rdoc_args.flatten + source_dirs)
>
> It worked perfectly...all Rails classes, etc, are now in ri.
>
> Thanks guys!
>
> John
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060130/dbe5d74e/attachment.html