Thank you Ahmed Mohamed. I really wish there was more collection of such solution for Windows platform on the Web. Good job.
On Mar 31, 6:09 am, Ahmed Mohamed <li...@ruby-forum.com> wrote: > just change > stream.reopen(RUBY_PLATFORM =~ /mswin/ ? 'NUL:' : '/dev/null') > into > stream.reopen('NUL:') > > this because when you type in the console > > ruby --version > gives > ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32] > > in the > C:\Ruby\lib\ruby\gems\1.8\gems\activesupport-2.3.5\lib\active_support\core_ext\kernel\reporting.rb > > it checks > stream.reopen(RUBY_PLATFORM =~ /mswin/ ? 'NUL:' : '/dev/null') > > so the i386-mingw32 does contains mswin so it always use '/dev/null' but > it should use 'NUL:' in windows to just change > stream.reopen(RUBY_PLATFORM =~ /mswin/ ? 'NUL:' : '/dev/null') > into > stream.reopen('NUL:') > > and it will works > > -- > Posted viahttp://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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.