Ruby on Rails Friday, November 22, 2019

talent_scout is a gem for searching and sorting: https://github.com/jonathanhefner/talent_scout

I wrote talent_scout because existing gems for searching and sorting had shortcomings that I couldn't easily fix.  Their view helpers seemed cumbersome (or were non-existent), and I had security and performance concerns about the kinds of queries the helpers could build.

In comparison, talent_scout creates a search object that can be used directly with Rails' form_with.  It provides helpers for creating both search links (e.g. facet links) and sort links.  Queries are based on predefined scopes, which helps mitigate security and performance issues.  And it handles typecasting user inputs, invalid user inputs, and omitted user inputs.

I've tried to make the talent_scout README and docs as thorough as possible, but I would be delighted to answer any questions. Feedback is welcome!

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CANWNky9BW41gYso7qDtnLEYpy2z5Rw2JRsvwa7fw3sfhAjncGw%40mail.gmail.com.

No comments:

Post a Comment