From: Gavin Kistner Date: 2005-04-20T23:13:08+09:00 Subject: Re: Store erb block and alter scope of erb block eval? On Apr 18, 2005, at 8:56 PM, Steve V wrote: > Is there something special erb does when you capture a block from an > rhtml > page? I tried passing my own variable values to the block within my > class(separate from the controller), and the values are ignored. I > think the > heart of the problem is that you're calling ERB.new on a regular > string. I > need to capture this information from an rhtml page. Can you be more specific about what you are doing? I don't understand what you mean by "capture a block from an rhtml page". Could you provide your full code showing the problem you are having? (I'm not an ERb expert, so I'm probably missing some way of using it that I've not seen before.) -- "When I am working on a problem I never think about beauty. I only think about how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." - R. Buckminster Fuller