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/