Help with error on project

I have this versions of soft -
Ruby version 1.8.6 (i386-mswin32)
RubyGems version 0.9.2
Rails version 1.2.3
Active Record version 1.15.3
Action Pack version 1.13.3
Action Web Service version 1.2.3
Action Mailer version 1.3.3
Active Support version 1.4.2

My problem in code that contains string like this (with russian
language) -

“привет мой друг”

gets this error in some other place, not where russian string:

app/controllers/sites/osp_ru.rb:40: syntax error, unexpected
tIDENTIFIER, expecting …

if I comment it - all ok.

Who can tell me where is a reason of the error?

Your description isn’t very… er, descriptive. Maybe it would help if
you post a call stack.

It is particularly confusing that you say that your problem is in code
with the Russian string, then you immediately say that your problem is
in another place, not where the Russian string is.

I would post the call stack and maybe some code. What exactly do you
comment out when it is “all ok”?

Trace stack:
#{RAILS_ROOT}/vendor/rails/activesupport/lib/active_support/dependencies.rb:488:in
load' #{RAILS_ROOT}/vendor/rails/activesupport/lib/active_support/dependencies.rb:488:inload’
#{RAILS_ROOT}/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in
new_constants_in' #{RAILS_ROOT}/vendor/rails/activesupport/lib/active_support/dependencies.rb:488:inload’
#{RAILS_ROOT}/app/controllers/process_controller.rb:151:in run_process' #{RAILS_ROOT}/app/controllers/process_controller.rb:150:ineach’
#{RAILS_ROOT}/app/controllers/process_controller.rb:150:in run_process' #{RAILS_ROOT}/app/controllers/process_controller.rb:147:ineach’
#{RAILS_ROOT}/app/controllers/process_controller.rb:147:in run_process' #{RAILS_ROOT}/app/controllers/process_controller.rb:22:inrun’

And some errors:
app/controllers/sites/osp_ru.rb:40: syntax error, unexpected
tIDENTIFIER, expecting ‘)’
frm.text_field( :id, “o_phone” ).set( post.c_tel )
^
app/controllers/sites/osp_ru.rb:41: syntax error, unexpected
tIDENTIFIER, expecting kEND
frm.text_field( :id, “o_fax” ).set( post.c_fax )
^
(errors from line 40 to 58, the Russian string in line 39)
If I comment this string, I don’t get an this error, all works fine, but
I need some russian text in the code.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs