Check out ez_where:
http://www.brainspl.at/articles/2006/06/30/new-release-of-ez_where-plugin
On Sunday 10 September 2006 2:43 am, Gareth Adams wrote:> I often find that the way I put arrays together to pass multiple conditions
> into ActiveRecord::Base.find''s :conditions parameter is ugly.
>
> So I wrote a class to make it nicer :D
>
> http://pastie.caboo.se/12591
>
> I''d like some feedback on how other people have solved this, and
whether my
> approach is useful to anyone else. I could well tralsform it into a plugin
> if people think it works
>
> Thanks for looking,
> Gareth
>
>
>
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---