Forum: Ruby on Rails condition metadata / dyanmic conditions

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Grayson P. (Guest)
on 2008-12-11 23:00

Is there a plugin / gem out there that would help me construct a dynamic
set of conditions for a finder?

In other words, I have a user with multiple attributes (some 50+).  I
have other users that want to express preferences for befriending users
based on criteria (which I'd like to store) such as specific interests,
personality types, etc. (both values, ranges)

The scenario I'm confused about is how do you construct the finder for
something like this

User.find(:all, :conditions => ["not sure what goes here because it'll
be different for each user",

you get the idea ...

Thank you.
Maurício L. (Guest)
on 2008-12-11 23:03
(Received via mailing list)
You could try ambition ->

Maurício Linhares (pt-br) |

On Thu, Dec 11, 2008 at 6:00 PM, Grayson P.
This topic is locked and can not be replied to.