ernie/ransack — Issue #38: Any way to scope the search object to current_user
Author: johnmdonahue
Created: 2011-10-31 23:49:53+00:00
State: open

Is there any equivalent of the meta_search query below in ransack?

@search = current_user.projects.search(params[:search])

I am trying this:

@q = current_user.projects.search(params[:q])

But I get an undefined search method, I assume because it's an array:

undefined method `search' for #