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 -- Posted via http://www.ruby-forum.com/.
On Dec 17, 2005, at 7:54 PM, joe-balck wrote:> 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 > > -- > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.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-gdxLOakOTQ9oetBuM9ipNAC/G2K4zDHf@public.gmane.org 509-577-7732
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-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.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-gdxLOakOTQ9oetBuM9ipNAC/G2K4zDHf@public.gmane.org > 509-577-7732-- Posted via http://www.ruby-forum.com/.
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-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.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-gdxLOakOTQ9oetBuM9ipNAC/G2K4zDHf@public.gmane.org >> 509-577-7732-- Posted via http://www.ruby-forum.com/.