Reputation: 60169
It appears that Searchlogic doesn't work with Rails 3. (Among other things, Ryan Bates mentioned in in one of his RailsCasts, and the last question in the Google Group is from 2010.)
So I'm looking for a replacement. I like the functionality where you craft the field names of a search form and have that get turned into a Search object and then you could get the results with @search.all
or @search.paginate
.
At first, Meta Where and Meta Search looked promising. But then I found this notification that "MetaWhere will not be updated to support 3.1". (I'm using Rails 3.2.2.)
The developer is proposing a library called "Ransack" as the replacement for MetaWhere.
OK, maybe. But before I dive into "Ransack," I thought I'd put the question out there: does anyone know of another library available with similar functionality to SearchLogic as I described above? (View form populates a Search object.)
Upvotes: 3
Views: 3233
Reputation: 4745
If you are using Rails 3.0 you should check out MetaSearch
If you are using Rails 3.1+ you should check out Ransack
Both are written by Ernie Miller.
Upvotes: 6