Hi!
I have created a simple translation web application, but it seems that
I''m missing something.
The controller part, where I set the value is giving me an exception
unless I''m sending plain English characters.
For example:
In controller:
def translate
@result = "mi corazón"
end
In view (translate.rhtml):
<%= @result -%>
I''m getting exception:
C:/dev/code/sandbox/app/controllers/api_controller.rb:4: unterminated
string meets end of file
C:/dev/code/sandbox/app/controllers/api_controller.rb:4: syntax error,
unexpected $end, expecting kEND
If I''m using the same code in a ruby script, everything is fine:
@result = "mi corazón"
puts @result
What am I doing wrong?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---