Forum: Ruby on Rails could you give me a hand?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E13ba8e702211be152c640df2d8e141f?d=identicon&s=25 joe-balck (Guest)
on 2005-12-18 04:54
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
8e44c65ac5b896da534ef2440121c953?d=identicon&s=25 Ezra Zygmuntowicz (Guest)
on 2005-12-18 05:05
(Received via mailing list)
On Dec 17, 2005, at 7:54 PM, joe-balck wrote:

>
>
> all regards
>
> --
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> 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

Cheers-

-Ezra Zygmuntowicz
WebMaster
Yakima Herald-Republic Newspaper
ezra@yakima-herald.com
509-577-7732
E13ba8e702211be152c640df2d8e141f?d=identicon&s=25 joe-balck (Guest)
on 2005-12-18 05:17
Ezra:
  thanks a lot.  i do like here. i think here is the best forum.
  god bless here.
cheers


Ezra Zygmuntowicz wrote:
> On Dec 17, 2005, at 7:54 PM, joe-balck wrote:
>
>>
>>
>> all regards
>>
>> --
>>
>> _______________________________________________
>> Rails mailing list
>> Rails@lists.rubyonrails.org
>> 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
>
> Cheers-
>
> -Ezra Zygmuntowicz
> WebMaster
> Yakima Herald-Republic Newspaper
> ezra@yakima-herald.com
> 509-577-7732
E13ba8e702211be152c640df2d8e141f?d=identicon&s=25 joe-balck (Guest)
on 2005-12-18 05:38
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 Zygmuntowicz wrote:
>> On Dec 17, 2005, at 7:54 PM, joe-balck wrote:
>>
>>>
>>>
>>> all regards
>>>
>>> --
>>>
>>> _______________________________________________
>>> Rails mailing list
>>> Rails@lists.rubyonrails.org
>>> 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
>>
>> Cheers-
>>
>> -Ezra Zygmuntowicz
>> WebMaster
>> Yakima Herald-Republic Newspaper
>> ezra@yakima-herald.com
>> 509-577-7732
This topic is locked and can not be replied to.