Rails cross platform problem

This is related to the fact that on *nix the default end of line
character is \n, and on windows, it's \r\n (note that this is not Ruby
specific, but platform specific - Ruby is just following along).

There's a utility on unixes called unix2dos which you can use to
substitute all \n characters to \r\n, or if you need to stay in Ruby-
land, use gsub with something like gsub!(/\n/,"\r\n").

Hope that helps,