M
mark
Can someone please tell me why this doesn't work?
contents of test.rb
-------------------------
class Test
def draw
%> <b>draw method!</b> <%
end
end
contents of test.rhtml
----------------------------
<%
require "test.rb"
Test.new.draw
%>
when Test class is in the same file it works but when it is 'require'd
I get errors.
Thanks for any tip
contents of test.rb
-------------------------
class Test
def draw
%> <b>draw method!</b> <%
end
end
contents of test.rhtml
----------------------------
<%
require "test.rb"
Test.new.draw
%>
when Test class is in the same file it works but when it is 'require'd
I get errors.
Thanks for any tip