RubyFlow The Ruby and Rails community linklog

MetaSearch: A better Searchlogic-ish plugin for Rails 3

MetaSearch is extensible searching for your form_for enjoyment. It “wraps” one of your ActiveRecord models, providing methods that allow you to build up search conditions against that model, and has a few extra form helpers to simplify sorting and supplying multiple parameters to your condition methods as well.

Comments

I love this gem. I’ve been using it quite a bit on a recent project. Thanks again Ernie :)

The rd_searchlogic gem seems to bring searchlogic support to Rails 3. What is the difference between this and MetaSearch?

Greg, the main difference is that rd_searchlogic still adds a bunch of scopes to your models to do its thing. MetaSearch works using ARel instead of named scopes, and separates the searching object from the AR object itself.

It’s quite possible to get searchlogic-style scopes out of meta-search: see git://gist.github.com/730167.git

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in