P
Perry Smith
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
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