Hi,
I solved this bug.
Actually this was an Window XP and ruby 187 issue. The rails console
executes on Windows command prompt. The command prompt had some
limitations on String limit to be displayed on the cmd console.
The fix was as follows:
class String
def to_2d_array(value)
unpack("a#{value}"*((size/value)+((size%value>0)?1:0)))
end
end
class << $stdout; alias old_write write; def write a;
a.to_s.to_2d_array(1024).each{|little| old_write little}; end; end
Thanks to Roger Pack for http://redmine.ruby-lang.org/issues/show/1063
Thanks,
Payal
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.