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

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 -

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

django - CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False -