[Rails] Re: tab characters with Rails 1.1 on Windows

Jason Pfeifer
Tue, 01 Aug 2006 22:26:20 -0000

I''d be interested to hear if there is an easy solution as well.
I''ve
just been using an automated find and replace to strip them all, but
haven''t seen any documentation on a true solution yet...

Jeff Cole wrote:
> We just upgraded to Ruby 1.8.4 and Rails 1.1.  It works fine on my Mac
> OSX, but in Windows, Rails spits out errors like "Invalid char
`\002'' in
> expression".  Apparently, Ruby or Rails on Windows has a problem
parsing
> tab characters. This seems to be a common problem:
>   http://softiesonrails.com/articles/2006/04/27/spaces-not-tabs
>
> However, the only recommended solutions seems to be to replace all the
> tabs with spaces in your entire source tree.   Is there a different
> solution?  And does anyone know exactly why this is happening?
>
> thanks,
> Jeff