From: sera@... (Francis Hwang) Date: 2004-10-08T04:54:49+09:00 Subject: Re: Passing in CGI parameters to an .rhtml file with StringIO#instance_eval James Britt wrote in message news:<414F10EA.9010009@neurogami.com>... > Francis Hwang wrote: > > > > But that doesn't seem to work. Suggestions? > > Can you just set environment variables? > > ENV['QUERY_STRING'] = 'foo=bar&x=2&this=that' > > > James Actually, I spoke too soon. The code I posted above does seem to work, I was just misreading the error I was getting: ../integrate.rb:27:in `instance_eval'(TestSendNetArtNewsStory): (eval):11:in `instance_eval'undefined method `include' for # (NoMethodError) that's because on line 11 of the .rhtml file, there's an "include Lafcadio" statement, which I guess doesn't work if it's called in the context of a StringIO. (I tried Module.include as well, but that complains that it's a private method.) Any ideas? Setting the environment variable didn't work, btw.