ruby on rails - Use time condition with Active Record -


I am trying to make a request with the condition of time I want something like this:

  model. Where {updated_at & gt; Definitely this last code is not working.  

I have not found any solution to this problem till now.

Do anyone have any ideas to solve this problem?

Finally, I did it like this:

  models . Where {updated_at & lt; Date time Now - 10.minutes}    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

Installing croogo for cakephp -