From: Matt Todd Date: 2006-09-19T17:05:26+09:00 Subject: Re: calling own classes within RoR Hi David, You might find more effective and poignant help either on theRubyOnRails mailing list or on the #rubyonrails IRC channel onirc.freenode.net. Your problem sounds generic enough, though, that I will at leastventure some help. Do you mind showing the implementation of lib/swfcat/swfroom.rb? Whatexactly does #loadRoom do? Is it possible that #loadRoom isn't savingthe results for the #roomRender method to perform on? Perhaps youaccidentally defined it as class method (as opposed to an instancemethod)? M.T. On 9/18/06, dc wrote:> hiya!>> i am seeing some odd behavior inside a controller. I am including my> own class and calling methods on it. some of them work, and some of> them dont... very odd.>> in top of the controller:> require "lib/swfcat/swfroom">> def preview> @swfRoomObj = SwfRoom.new> @swfRoomObj.loadRoom(@params['id']) #this works> @swfRoomObj.roomRender(true) # this says "undefined method `roomRender' "> end>> i cant understand why one method would work and the other not?> also, is there some odd caching of objects/classes going on? it seems> sometimes it takes a while for changes in source to be reflected in> server (usign webbrick/radrails)>> tx!>> /dc> -------------------------------------------> David "DC" Collier> mailto:dc@pikkle.com> +81 (0)80 6521 9559> skype: callto://d3ntaku> -------------------------------------------> Pikkle 株式会社> http://www.pikkle.com> ------------------------------------------->>