# All My Rails Apps Died Over the Holidays

**URL:** <https://www.ruby-forum.com/t/all-my-rails-apps-died-over-the-holidays/94918>\
**Category:** Rails\
**Created:** [January 10, 2006, 4:03pm UTC](https://www.ruby-forum.com/t/all-my-rails-apps-died-over-the-holidays/94918 "2006-01-10T16:03:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/85e7bf/32.png) [@marcus](https://www.ruby-forum.com/u/marcus)\
**Post date:** [January 10, 2006, 4:03pm UTC](https://www.ruby-forum.com/t/all-my-rails-apps-died-over-the-holidays/94918/1 "2006-01-10T16:03:32Z")

</div>

I have several Rails (version 1.0) apps I’m working on on a Win XP box  
using Webrick that were working fine before I left for the holidays. I  
came back, started up and they all get the same syntax and compile  
errors:

compile error  
./script/…/config/…/app/views/time/list.rhtml:4: Invalid char `\212’  
in expression

repeated over and over. Refreshing the page gives thes same error but  
for seemingly random parts in the rhtml files.

The application trace is:  
#{RAILS\_ROOT}/app/views/time/list.rhtml:4:in `module_eval' -e:3:in`load’  
-e:3

I tried reinstalling Ruby and rebooting and doing a gem update, but  
nothing seems to affect it. Any suggestions?

---

<div class="post-metadata">

**Author:** ![marcus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/85e7bf/32.png) [@marcus](https://www.ruby-forum.com/u/marcus)\
**Post date:** [January 10, 2006, 4:07pm UTC](https://www.ruby-forum.com/t/all-my-rails-apps-died-over-the-holidays/94918/2 "2006-01-10T16:07:38Z")

</div>

Stupid question, but best to get it out of the way: out of hard drive  
space?

–  
Alex

---

<div class="post-metadata">

**Author:** ![marcus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/85e7bf/32.png) [@marcus](https://www.ruby-forum.com/u/marcus)\
**Post date:** [January 10, 2006, 4:10pm UTC](https://www.ruby-forum.com/t/all-my-rails-apps-died-over-the-holidays/94918/3 "2006-01-10T16:10:40Z")

</div>

Marcus V. wrote:

> for seemingly random parts in the rhtml files.
> 
> The application trace is:  
> #{RAILS\_ROOT}/app/views/time/list.rhtml:4:in `module_eval' -e:3:in`load’  
> -e:3
> 
> I tried reinstalling Ruby and rebooting and doing a gem update, but  
> nothing seems to affect it. Any suggestions?

You did not copy any code from a browser lately…?  
I had this problem when i pasted code from blogs with quotes likeÂ´some  
text` instead of ‘some text’

// JoNtE

---

<div class="post-metadata">

**Author:** ![marcus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/85e7bf/32.png) [@marcus](https://www.ruby-forum.com/u/marcus)\
**Post date:** [January 10, 2006, 4:21pm UTC](https://www.ruby-forum.com/t/all-my-rails-apps-died-over-the-holidays/94918/4 "2006-01-10T16:21:36Z")

</div>

Alex Y. wrote:

> Stupid question, but best to get it out of the way: out of hard drive  
> space?

No, still three and a half gigs left on the 'ole hard drive.

And no, haven’t pasted anything from the web. In any case, this is  
happening on 4 different apps, all of them were working fine before.

I’m also getting this line at the bottom of the errors:  
\_erbout.concat "

Description\n"

Seems to be related to the the other errors and it also changes when I  
refresh the page to other random lines in my RHTML files.

---

<div class="post-metadata">

**Author:** ![marcus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/85e7bf/32.png) [@marcus](https://www.ruby-forum.com/u/marcus)\
**Post date:** [January 10, 2006, 4:35pm UTC](https://www.ruby-forum.com/t/all-my-rails-apps-died-over-the-holidays/94918/5 "2006-01-10T16:35:03Z")

</div>

On Jan 10, 2006, at 8:21 AM, Marcus V. wrote:

> I’m also getting this line at the bottom of the errors:  
> \_erbout.concat " Description\n"
> 
> Seems to be related to the the other errors and it also changes when I  
> refresh the page to other random lines in my RHTML files.

A friend of mine (Troy Heninger) reported something very similar to  
this when trying to run Family Connection on his Windows machine.  
Here’s the error messages he was getting:

SyntaxError in Administrator#setup

Showing app/views/layouts/application.rhtml where line #10 raised:

compile error  
./script/…/config/…/app/views/layouts/application.rhtml:10: Invalid  
char `\002' in expression ./script/../config/../app/views/layouts/application.rhtml:11: Invalid char `\003’ in expression  
./script/…/config/…/app/views/layouts/application.rhtml:13: Invalid  
char `\002' in expression ./script/../config/../app/views/layouts/application.rhtml:16: Invalid char `\003’ in expression  
./script/…/config/…/app/views/layouts/application.rhtml:31: Invalid  
char `\020' in expression ./script/../config/../app/views/layouts/application.rhtml:31: Invalid char `\002’ in expression  
./script/…/config/…/app/views/layouts/application.rhtml:32: parse  
error, unexpected tINTEGER, expecting kEND  
\_erbout.concat " \<div class="messagebox"\>\n"0/  
^  
./script/…/config/…/app/views/layouts/application.rhtml:33: parse  
error, unexpected tSTRING\_BEG, expecting kEND  
\_erbout.concat " "t.; if flash[:notice] ; \_erbout.concat “\<p  
style="color: green"\>”; \_erbout.concat(( flash[:notice] ).to\_s);  
\_erbout.concat “

”; end ; \_erbout.concat “\n”  
^  
./script/…/config/…/app/views/layouts/application.rhtml:33: parse  
error, unexpected tIDENTIFIER, expecting kEND  
\_erbout.concat " "t.; if flash[:notice] ; \_erbout.concat “\<p  
style="color: green"\>”; \_erbout.concat(( flash[:notice] ).to\_s);  
\_erbout.concat “

”; end ; \_erbout.concat “\n”  
^  
./script/…/config/…/app/views/layouts/application.rhtml:34: parse  
error, unexpected tIDENTIFIER, expecting kEND  
\_erbout.concat " "s; if flash[:error] ; \_erbout.concat “\<p style=  
"color: red"\>”; \_erbout.concat(( flash[:error] ).to\_s);  
\_erbout.concat “

”; end ; \_erbout.concat “\n”  
^  
./script/…/config/…/app/views/layouts/application.rhtml:34: Invalid  
char `\002' in expression ./script/../config/../app/views/layouts/application.rhtml:35: parse error, unexpected tIDENTIFIER, expecting kEND ./script/../config/../app/views/layouts/application.rhtml:36: parse error, unexpected tINTEGER, expecting kEND _erbout.concat " "8; end ^ ./script/../config/../app/views/layouts/application.rhtml:36: Invalid char `\002’ in expression

Extracted source (around line #10):

7:   
8:   
9:  
10: \<%= stylesheet\_link\_tag “application” %\>  
11: \<%= stylesheet\_auto\_link\_tags %\>  
12:  
13: \<%= javascript\_include\_tag ‘prototype’ %\>

Trace of template inclusion: /app/views/layouts/application.rhtml

RAILS\_ROOT: ./script/…/config/…

Application Trace | Framework Trace | Full Trace  
#{RAILS\_ROOT}/app/views/layouts/application.rhtml:41:in  
`compile_template' #{RAILS_ROOT}/app/controllers/administrator_controller.rb:28:in `setup’

He couldn’t seem to track down the problem at the time, however. He  
used subversion to get the code, so it wasn’t a cut-and-paste issue.  
Perhaps he’s made further progress?

Duane J.  
(canadaduane)  
[http://blog.inquirylabs.com/](http://blog.inquirylabs.com/)

---

<div class="post-metadata">

**Author:** ![marcus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/85e7bf/32.png) [@marcus](https://www.ruby-forum.com/u/marcus)\
**Post date:** [January 10, 2006, 4:44pm UTC](https://www.ruby-forum.com/t/all-my-rails-apps-died-over-the-holidays/94918/6 "2006-01-10T16:44:56Z")

</div>

> He couldn’t seem to track down the problem at the time, however. He  
> used subversion to get the code, so it wasn’t a cut-and-paste issue.  
> Perhaps he’s made further progress?
> 
> Duane J.  
> (canadaduane)  
> [http://blog.inquirylabs.com/](http://blog.inquirylabs.com/)

Definitely looks like he was having the same problem I’m having, and  
come to think of it, the last thing I did was try to install Family  
Connection (unsuccessfully). I wonder if something that I did then has  
broken everything. Hmmm.

---

<div class="post-metadata">

**Author:** ![marcus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/85e7bf/32.png) [@marcus](https://www.ruby-forum.com/u/marcus)\
**Post date:** [January 10, 2006, 5:01pm UTC](https://www.ruby-forum.com/t/all-my-rails-apps-died-over-the-holidays/94918/7 "2006-01-10T17:01:59Z")

</div>

Marcus V. wrote:

> > He couldn’t seem to track down the problem at the time, however. He  
> > used subversion to get the code, so it wasn’t a cut-and-paste issue.  
> > Perhaps he’s made further progress?
> > 
> > Duane J.  
> > (canadaduane)  
> > [http://blog.inquirylabs.com/](http://blog.inquirylabs.com/)
> 
> Definitely looks like he was having the same problem I’m having, and  
> come to think of it, the last thing I did was try to install Family  
> Connection (unsuccessfully). I wonder if something that I did then has  
> broken everything. Hmmm.

Yeah… this is what it ended up being. In my effort to install Family  
Connection, I put a file called mysql.so that I found online to get the  
ruby/mysql bindings to work in  
C:\ruby\lib\ruby\site\_ruby\1.8\i386-msvcrt

Removing it and restarting my applications solved the problem.  
Strange… but it works now.

This isn’t where I got the file, but this looks like it might have the  
right way to get the ruby mysql bindings installed if anyone is curious:  
[http://seagecko.org/thoughts/in-the-past/2004/09/09/ruby-mysql-and-windows/](http://seagecko.org/thoughts/in-the-past/2004/09/09/ruby-mysql-and-windows/)

---

<div class="post-metadata">

**Author:** ![marcus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/85e7bf/32.png) [@marcus](https://www.ruby-forum.com/u/marcus)\
**Post date:** [January 10, 2006, 4:53pm UTC](https://www.ruby-forum.com/t/all-my-rails-apps-died-over-the-holidays/94918/8 "2006-01-10T16:53:17Z")

</div>

Maybe encoding problem. I find that for some files when saved in utf-8,  
ruby  
will report ‘invalid char’. These hidden chars are invisible in editor.
