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 [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