T
Tim Morgan
I haven't seen hardly anything about Ruby as the scripting engine for
ASP (Microsoft's ASP -- not Ruby/ASP -- see here:
http://www.exactlyoneturtle.com/wordpress/?p=26), but I have to try...
I'm using Ruby as the language for my ASP script. When I do the
following, I get "/my_script.asp" output to the html:
<%= Request.ServerVariables.item('SCRIPT_NAME') %>
However, if I try to treat this value as a String, I get weird stuff
happening. Basically, the following returns something like
"#<WIN32OLEEX:0x1822e10>" instead of "/my_script.asp":
<%= Request.ServerVariables.item('SCRIPT_NAME').to_s %>
So, the object returned by OLE isn't a string. Doing a .methods()
doesn't give me anything to work with either. ASP knows how to make it
into a string, obviously, so why can't I?
Please, someone with that mysterious OLE knowledge, throw me a bone
here. I just need to know how to get a *String* object instead of this
funky OLE object.
ASP (Microsoft's ASP -- not Ruby/ASP -- see here:
http://www.exactlyoneturtle.com/wordpress/?p=26), but I have to try...
I'm using Ruby as the language for my ASP script. When I do the
following, I get "/my_script.asp" output to the html:
<%= Request.ServerVariables.item('SCRIPT_NAME') %>
However, if I try to treat this value as a String, I get weird stuff
happening. Basically, the following returns something like
"#<WIN32OLEEX:0x1822e10>" instead of "/my_script.asp":
<%= Request.ServerVariables.item('SCRIPT_NAME').to_s %>
So, the object returned by OLE isn't a string. Doing a .methods()
doesn't give me anything to work with either. ASP knows how to make it
into a string, obviously, so why can't I?
Please, someone with that mysterious OLE knowledge, throw me a bone
here. I just need to know how to get a *String* object instead of this
funky OLE object.