Compilation Errors

Hey there,

I just updated to ferret 10.0.4, and acts_as_ferret 0.3, and now when I
try to run my app with mongrel on Windows, I get very strange compile
errors:

ompile error
C:/rails/app/script/…/config/…/app/views/login/index.rhtml:8: Invalid
char \002' in expression C:/rails/app/script/../config/../app/views/login/index.rhtml:9: syntax error _erbout.concat " <td>".; _erbout.concat(( text_field("user", "email") ).to_s); _erbout.concat "</td>\n" ^ C:/rails/app/script/../config/../app/views/login/index.rhtml:12: Invalid char\003’ in expression
C:/rails/app/script/…/config/…/app/views/login/index.rhtml:13: syntax
error
_erbout.concat "

".; _erbout.concat(( password_field(“user”,
“password”) ).to_s); _erbout.concat “\n”
^
C:/rails/app/script/…/config/…/app/views/login/index.rhtml:17: Invalid
char `\024’ in expression
C:/rails/app/script/…/config/…/app/views/login/index.rhtml:18: syntax
error
_erbout.concat " “.; _erbout.concat(( submit_tag “Login” ).to_s);
_erbout.concat " \n”

It’ strange, like somehow odd characters are being inserted into my
views or something. Has anyone else come across this? This is true of
two different apps, that both use acts_as_ferret. Any project that isn’t
using it runs fine.

Thanks. :slight_smile:

On 9/11/06, Michael L. [email protected] wrote:

error
C:/rails/app/script/…/config/…/app/views/login/index.rhtml:17: Invalid

Thanks. :slight_smile:

Hi Michael,

Please see this thread;

http://www.ruby-forum.com/topic/80460#new

Apparently replacing all tab characters in your views with spaces
helps. Version 0.10.4 was compiled against one-click ruby 1.8.4-20
stable so make sure you are using that version of Ruby.

Cheers,
Dave

Hey David,

Thanks for the reply. It is indeed the tab character causing the issue.
My designer has liberally used tab characters throughout all my views.
:frowning:

David B. wrote:

On 9/11/06, Michael L. [email protected] wrote:

error
C:/rails/app/script/…/config/…/app/views/login/index.rhtml:17: Invalid

Thanks. :slight_smile:

Hi Michael,

Please see this thread;

Invalid characters with win32 - Ferret - Ruby-Forum

Apparently replacing all tab characters in your views with spaces
helps. Version 0.10.4 was compiled against one-click ruby 1.8.4-20
stable so make sure you are using that version of Ruby.

Cheers,
Dave