Talk:Rosetta Code/Rank languages by popularity: Difference between revisions

Content added Content deleted
Line 130: Line 130:
I'm trying to run the Ruby example on Ruby 1.8.6 and it says that the "each_slice" method isn't defined. Is that part of 1.8.7? --[[User:Mwn3d|Mwn3d]] 19:29, 26 June 2009 (UTC)
I'm trying to run the Ruby example on Ruby 1.8.6 and it says that the "each_slice" method isn't defined. Is that part of 1.8.7? --[[User:Mwn3d|Mwn3d]] 19:29, 26 June 2009 (UTC)
:I don't know, probably it's for Ruby 1.9, but you can try replace <lang ruby>langs.each_slice(50) do</lang> with <lang ruby>langs[0..50].each do</lang> --[[User:Guga360|Guga360]] 22:54, 26 June 2009 (UTC)
:I don't know, probably it's for Ruby 1.9, but you can try replace <lang ruby>langs.each_slice(50) do</lang> with <lang ruby>langs[0..50].each do</lang> --[[User:Guga360|Guga360]] 22:54, 26 June 2009 (UTC)
::It's 1.8.7. I'll mark the example. The indexing solution didn't work, but I used a computer that has 1.8.7 and it works. Thanks for the suggestion, though. --[[User:Mwn3d|Mwn3d]] 23:18, 26 June 2009 (UTC)