SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Threaded View

  1. #1
    SitePoint Member
    Join Date
    Jul 2006
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Post how to get data from the database only once

    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.
    Last edited by sanand_83; Jul 19, 2006 at 03:52.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •