Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tried google groups -- can I do groups with searchlogic and if so, how? #133

Open
timfong888 opened this issue Nov 4, 2010 · 0 comments

Comments

@timfong888
Copy link

I have the following using searchlogic:

@todos = Todo.contact_user_id_is(current_user).
          contact_campaign_id_is(@campaign).
          current_date_lte(Date.today).
          done_date_null.
          ascend_by_current_date

I only want @todos to contain a Todo record for a single contact_id (contact_id is an attribute on Todo).

Question: how can I group so that I there is only one record per contact_id in the @todos array?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant