Bug in ri_formatter.rb

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
 
E

Eric Hodel

If you do ri of Rail's option_groups_from_collection_for_select, whose
complete name is
ActionView::Helpers::FormOptionsHelper#option_groups_from_collection_f
or_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.

Did you try the RDoc project on RubyForge?

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

Mariusz Pękala

--qcHopEYAB45HaUaB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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=3Dadd&group_id=3D627&atid=3D2472

It was already reported:

http://rubyforge.org/tracker/?func=3Ddetail&aid=3D11391&group_id=3D426&atid=
=3D1698
http://rubyforge.org/tracker/?func=3Ddetail&aid=3D9751&group_id=3D627&atid=
=3D2472

--=20
UNIX is basically a simple operating system, but you have to be a genius to
understand the simplicity.

--qcHopEYAB45HaUaB
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7-ecc0.1.6 (GNU/Linux)

iD8DBQFG0s7bsnU0scoWZKARAteNAKC3Kd6gta/oYqnfcrk+fUtWQgaNCQCdHodT
NWqyFNjWL5bpBpL9t5UiZt8=
=QB9e
-----END PGP SIGNATURE-----

--qcHopEYAB45HaUaB--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,264
Messages
2,571,318
Members
48,003
Latest member
coldDuece

Latest Threads

Top