I need a place to keep last request time for user and don't want to use database for that
                +1 
                A: 
                
                
              
            if you want to do this user-wise, and don't mind losing it between sessions, then the place to store it is a session like session[:last_request]
                  Maximiliano Guzman
                   2009-03-19 14:33:36
                
              
                
                A: 
                
                
              Thanks... I got it ... there is no easy solution .. I will use database :)
                  cobranet
                   2009-03-19 14:50:25
                
              This is not an answer.
                  Time Machine
                   2010-10-30 23:46:26
                
                +1 
                A: 
                
                
              
            There is an easy solution - you can put it as a constant in config/environment.rb
                  Ghoti
                   2009-03-22 18:04:22
                
              
                
                A: 
                
                
              
            there is an easy way (although not so elegant)
if Thread.main[:uuid] == nil 
  Thread.main[:uuid]=0
end
uid = Thread.main[:uuid] += 1
                  Gilad Manor
                   2010-10-30 23:43:35