Displaying 2 results from an estimated 2 matches for "somejoin".
Did you mean:
somejoins
2007 May 24
1
Search scoping in acts_as_ferret
...ct 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
posts only.
Normally, of course, I would do
Post.find(:all, :conditions=>["user_id=?", current_user],
:joins=>"somejoins")
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...
2006 Jan 09
7
Large select list, speed issues
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Verdana">I have a piece of code in my page
to generate