Thanks a lot Martin. Yes, "include" was the missing part.
-- 
Posted via http://www.ruby-forum.com/.