[LRUG] Querying APIs
Viktor Trón
viktor.tron at gmail.com
Fri Nov 23 06:23:59 PST 2012
Try squeel ex meta_where with meta_search .
Best thought-out form-to-params-to-ar search setup.
I used them everywhere
On 23 Nov 2012 14:57, "Tom Blomfield" <tom at gocardless.com> wrote:
> I'm currently playing with the new(ish) Rails-API Project -
> https://github.com/rails-api
>
> I'm using it to build internal services - I'm currently wondering if
> there's a best practice for taking querystring params and mapping them to
> an ActiveRecord query.
>
> Obviously, it's possible to build a "Searchable" module/class, but I
> wondered if anyone has already solved this problem?
>
> Eg, pagingation, querying on date-ranges, ordering, filtering etc.
>
> Thanks!
>
> Tom
>
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20121123/796abacb/attachment.html>
More information about the Chat
mailing list