Displaying 2 results from an estimated 2 matches for "online_us".
Did you mean:
online's
2005 Dec 18
3
could you give me a hand?
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/.
2011 Jul 30
22
Question about Helpers
Studying the RoR 3 Tutorial book by Michael Hartl
and on page 345 there''s the code inside the SessionsHelper:
_________________________________________________________
module SessionsHelper
def sign_in(user)
cookies.permanent.signed[:remember_token] = [user.id, user.sault]
self.current_user = user
end
end
__________________________________________________________
What is the purpose