public
Description: Rails plugin: provides a nice and easy DSL to search ActiveRecord models, including any associations thereof.
Home | Edit | New

Home

Welcome to the easy_search wiki!


Tips & Tricks

rph wrote:

Actually, it does support associations. Here’s how you use it (I’ll use the infamous posts/comments relationship, here):

RPH::EasySearch::Setup.config do
  setup_tables do
    posts :title, :body, :comments => [:name, :body]
  end
end

… woot, that’s just what I needed :)

Last edited by GreenAsJade, Sat Apr 18 19:41:57 -0700 2009
Home | Edit | New
Versions: