[Q] ERuby.import

Hi,

I have a question about mod_ruby and ERuby.
I want to separate presentation from logic,
and I create the following 2 files:

logic.rhtml:
…========================================
<%
username = 'ERUBY’
ERuby.import(‘presentation.rhtml’)
%>
…========================================

presentation.rhtml:
…========================================

hello <%= username %> ..========================================

But when accessing http://localhost/logic.rhtml,
I got the error ‘500 Internal Server Error’.
What should I modify?
How to pass data to other *.rhtml?

regards,
kwatch

ERuby.import wants an absolute pathname.

···

On Sat, 15 Feb 2003 18:32:02 -0800, kwatch wrote:

Hi,

I have a question about mod_ruby and ERuby.
I want to separate presentation from logic,
and I create the following 2 files:

logic.rhtml:
.========================================
<%
username = ‘ERUBY’
ERuby.import(‘presentation.rhtml’)
%>
.========================================

Thank you.
I resolved with your help.

“Gabriel Emerson” egabriel@io.com wrote in message news:pan.2003.02.16.02.34.08.554953@io.com

···

ERuby.import wants an absolute pathname.

On Sat, 15 Feb 2003 18:32:02 -0800, kwatch wrote:

Hi,

I have a question about mod_ruby and ERuby.
I want to separate presentation from logic,
and I create the following 2 files:

logic.rhtml:
.========================================
<%
username = ‘ERUBY’
ERuby.import(‘presentation.rhtml’)
%>
.========================================