Datetime ranges with Searchlogic

Searchlogic is a Rails plugin that adds useful named scopes to all of your models.

I had a little trouble building a search form for a datetime attribute. After reading a blog called Craic Computing Tips and the Issues section on Searchlogic’s Github page, I arrived at this simple solution:

Post a Comment

Your email is never published nor shared. Required fields are marked *