I am exploring acts_as_ferret, and the first question that pops to mind
is scoping, i.e. how to restrict searches in various ways.
For example, I have a Post model with title, content, and user_id as
attributes, and I want users to be able to search through their own
Normally, of course, I would do
Post.find(:all, :conditions=>[“user_id=?”, current_user],
What about ferret-ized models?
Is there a clean way to impose such restrictions to the ferret search
itself, or should one search the entire model first, and then use the
returned ids to run a regular query with a “in” clause?
Apologies if the answer to this is trivial, I cannot seem to google the