I’m trying to use Rails on Windows 2000. I’m running into an immediate
problem in that all the files generated by Rails use the UNIX
end-of-line convention instead of the Windows end-of-line convention. A
non-compliant end-of-line convention will break any number of tools I
may wish to use to manage these files.
Is there a way to get Rails to emit Windows-compliant end-of-lines?
I used the one-click installer for Ruby on Windows. Here’s the version
ruby 1.8.4 (2005-12-24) [i386-mswin32]
I then did “gem install rails --include-dependencies”. And, here’s the
version it reports:
All looked good. Now, working my way through the Agile Web D.
with Rails book, I did:
rails demo cd demo ruby script\generate controller Say
Which generated a bunch of directories/files, but all of the files use
the UNIX end-of-line convention.