Re: Re: Controller Search Strategy

Shai Shefer
Sun, 14 Feb 2010 02:03:46 -0000

Hey Luke,

Yeah - I''ve used search logic in the past.  I''m trying to make
search calls
using ajax requests and as I understand it I can''t do that with search
logic
(I may be wrong).



On Sat, Feb 13, 2010 at 5:45 PM, Luke Pearce
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:

> sshefer wrote:
> > I''m trying to create a search action for one of my
controllers that
> > can take in different params.  Something I can use like an api call:
> >
> > ../users/search?first_name=john&org_id=1
> >
> > Any idea how I can start this?  I''d like to have a clean
"search"
> > action but this is also copying the index action.  I''m
thinking that
> > the action needs to serialize the params and apply them to a find but
> > I''m not sure if this is the best way.
> >
> > Thanks.
>
> Have you looked at searchlogic?
>
> http://github.com/binarylogic/searchlogic
>
> Sounds exactly what you are looking for.
>
> Cheers
> Luke
> --
> 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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.