SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Feb 2006
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    accessing sessions with session.each - SOLVED

    I'd like to traverse thru the contents of the session object

    I've been looking at C:\ruby\lib\ruby\1.8\cgi\session.rb and found out
    that there's no each method in it.

    So I tried to make accesible the data collection.

    First I tried with something like this

    def each(block)
    unless @data
    @data = @dbman.restore
    end
    @data.each block
    end

    I edited the file, but nothing seems to happen.

    I even tried to set a breakpoint, but again nothing happens.

    Is there some way to debug that file???

    And then, taking into account that ruby is a fully interpreted language,
    how come my changes are being ignored???

    Saludos

    Sas

    PS: I apologize if this is a stupid question. I'm just taking my very
    first steps with ruby and with rails.
    Last edited by opensas; Apr 7, 2006 at 00:54.

  2. #2
    SitePoint Member
    Join Date
    Feb 2006
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I could solve it

    see this thread

    saludos

    sas


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
  •