Bug in ri_formatter.rb

If you do ri of Rail’s option_groups_from_collection_for_select, whose
complete name is
ActionView::Helpers::FormOptionsHelper#option_groups_from_collection_for_select,
then ri_formatter.rb throws an error at line 18:

def draw_line(label=nil)
  len = @width
  len -= (label.size+1) if label
  print "-"*len   <<< here

because len comes out to be negative (if width is set to 72).

The fix is trivial.

I can’t find any other way to report a bug except this forum.

HTH,
Perry

On Aug 24, 2007, at 21:22, Perry S. wrote:

because len comes out to be negative (if width is set to 72).

The fix is trivial.

I can’t find any other way to report a bug except this forum.

Did you try the RDoc project on RubyForge?

http://rubyforge.org/tracker/?func=add&group_id=627&atid=2472

On 2007-08-25 16:33:41 +0900 (Sat, Aug), Eric H. wrote:

On Aug 24, 2007, at 21:22, Perry S. wrote:

The fix is trivial.
[…]

I can’t find any other way to report a bug except this forum.

Did you try the RDoc project on RubyForge?

http://rubyforge.org/tracker/?func=add&group_id=627&atid=2472

It was already reported:

http://rubyforge.org/tracker/?func=detail&aid=11391&group_id=426&atid=1698
http://rubyforge.org/tracker/?func=detail&aid=9751&group_id=627&atid=2472

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs