# Could you give me a hand?

**URL:** <https://www.ruby-forum.com/t/could-you-give-me-a-hand/50564>\
**Category:** Rails\
**Created:** [December 18, 2005, 4:54am UTC](https://www.ruby-forum.com/t/could-you-give-me-a-hand/50564 "2005-12-18T04:54:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe-balck](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/59ef9b/32.png) [@joe-balck](https://www.ruby-forum.com/u/joe-balck)\
**Post date:** [December 18, 2005, 4:54am UTC](https://www.ruby-forum.com/t/could-you-give-me-a-hand/50564/1 "2005-12-18T04:54:33Z")

</div>

hi.  
i try to record a global array to save on-line member.  
it’s put this array in controllers/application.rb or not?  
my code like this:

$online\_users = Array.new

and each member sign in will add himself to $online\_users.

miss something?

all regards

---

<div class="post-metadata">

**Author:** ![joe-balck](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/59ef9b/32.png) [@joe-balck](https://www.ruby-forum.com/u/joe-balck)\
**Post date:** [December 18, 2005, 5:05am UTC](https://www.ruby-forum.com/t/could-you-give-me-a-hand/50564/2 "2005-12-18T05:05:31Z")

</div>

On Dec 17, 2005, at 7:54 PM, joe-balck wrote:

> all regards
> 
> –
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

Joe-

```
Here is a little article that explains one way of showing who's

```

online like you want:

[http://blog.caboo.se/articles/2005/12/15/whos-online](http://blog.caboo.se/articles/2005/12/15/whos-online)

Cheers-

-Ezra Z.  
WebMaster  
Yakima Herald-Republic Newspaper  
removed\_email\_address@domain.invalid  
509-577-7732

---

<div class="post-metadata">

**Author:** ![joe-balck](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/59ef9b/32.png) [@joe-balck](https://www.ruby-forum.com/u/joe-balck)\
**Post date:** [December 18, 2005, 5:17am UTC](https://www.ruby-forum.com/t/could-you-give-me-a-hand/50564/3 "2005-12-18T05:17:59Z")

</div>

Ezra:  
thanks a lot. i do like here. i think here is the best forum.  
god bless here.  
cheers

Ezra Z. wrote:

> On Dec 17, 2005, at 7:54 PM, joe-balck wrote:
> 
> > all regards
> > 
> > –
> > 
> > * * *
> > 
> > Rails mailing list  
> > removed\_email\_address@domain.invalid  
> > [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)
> 
> Joe-
> 
> Here is a little article that explains one way of showing who’s  
> online like you want:
> 
> [Parked at Loopia](http://blog.caboo.se/articles/2005/12/15/whos-online)
> 
> Cheers-
> 
> -Ezra Z.  
> WebMaster  
> Yakima Herald-Republic Newspaper  
> removed\_email\_address@domain.invalid  
> 509-577-7732

---

<div class="post-metadata">

**Author:** ![joe-balck](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/59ef9b/32.png) [@joe-balck](https://www.ruby-forum.com/u/joe-balck)\
**Post date:** [December 18, 2005, 5:38am UTC](https://www.ruby-forum.com/t/could-you-give-me-a-hand/50564/4 "2005-12-18T05:38:07Z")

</div>

i readed that blog, and i think use db to do this is too expensive.  
any one have better way.  
i think ‘ASP’ have a application to save globals variable, but i’m not  
sure  
rails can do same job.

joe-balck wrote:

> Ezra:  
> thanks a lot. i do like here. i think here is the best forum.  
> god bless here.  
> cheers
> 
> Ezra Z. wrote:
> 
> > On Dec 17, 2005, at 7:54 PM, joe-balck wrote:
> > 
> > > all regards
> > > 
> > > –
> > > 
> > > * * *
> > > 
> > > Rails mailing list  
> > > removed\_email\_address@domain.invalid  
> > > [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)
> > 
> > Joe-
> > 
> > Here is a little article that explains one way of showing who’s  
> > online like you want:
> > 
> > [Parked at Loopia](http://blog.caboo.se/articles/2005/12/15/whos-online)
> > 
> > Cheers-
> > 
> > -Ezra Z.  
> > WebMaster  
> > Yakima Herald-Republic Newspaper  
> > removed\_email\_address@domain.invalid  
> > 509-577-7732
