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

jasper reports - How to center align barcode using jasperreports and barcode4j -

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

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -