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 " <td>".; _erbout.concat(( password_field("user", "password") ).to_s); _erbout.concat "</td>\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 " <td>".; _erbout.concat(( submit_tag "Login" ).to_s); _erbout.concat " </td>\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. :) -- Posted via http://www.ruby-forum.com/.
On 9/11/06, Michael Leung <mleung at projectrideme.com> wrote:> 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 " <td>".; _erbout.concat(( password_field("user", > "password") ).to_s); _erbout.concat "</td>\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 " <td>".; _erbout.concat(( submit_tag "Login" ).to_s); > _erbout.concat " </td>\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. :)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. :( David Balmain wrote:> On 9/11/06, Michael Leung <mleung at projectrideme.com> wrote: >> error >> C:/rails/app/script/../config/../app/views/login/index.rhtml:17: Invalid >> >> Thanks. :) > > 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-- Posted via http://www.ruby-forum.com/.