PDA

View Full Version : getting data from the database only once


sanand_83
July 19th, 2006, 02:41 AM
Hi,
I am a little bit new to ruby. I have a requirement of getting the data from the database, many times in an application. Is there a way that I can get the data only once from the database and use it whereever I want? ( I am trying not to use the global variable in this process.) If I can use a singleton class, how can I use it in ruby

Thanks in Advance.

Regards,
Anand.