You could try ambition -> http://ambition.rubyforge.org/

-
Maurício Linhares
http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/ (en)



On Thu, Dec 11, 2008 at 6:00 PM, Grayson Piercee
<[email protected]> wrote:
>
> Hello,
>
> 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",
> current_user.preferences.attributes.collect(&:id)])
>
> you get the idea ...
>
> Thank you.
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to