Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
I'm trying to find Items with any one of a given set of tags
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Haruki Zaemon  
View profile  
 More options Feb 18 2008, 5:19 pm
From: Haruki Zaemon <haruki_zae...@mac.com>
Date: Mon, 18 Feb 2008 14:19:57 -0800 (PST)
Local: Mon, Feb 18 2008 5:19 pm
Subject: I'm trying to find Items with any one of a given set of tags
Were I to use regular ruby objects, I'd probably do something like
this:

    tags = [...]
    Item.tags.any? { |t| tags.include?(t) }

Any suggestions as to how I can get the same behaviour using ambition?

Simon


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Haruki Zaemon  
View profile  
 More options Feb 20 2008, 6:50 am
From: Haruki Zaemon <haruki_zae...@mac.com>
Date: Wed, 20 Feb 2008 03:50:17 -0800 (PST)
Local: Wed, Feb 20 2008 6:50 am
Subject: Re: I'm trying to find Items with any one of a given set of tags
No one have any ideas? I have some fairly complex joins I need to
perform and this is the simplest. I'm in fear of losing the fight for
ambition within the project because we'll end up with some queries
using ambition and others using standard SQL in which case, the
argument goes, why not just be consistent.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »