Using the Ransack gem is a great way to add search functionality to your application without the need for additional libraries or dependencies. Check out this post to see how to set empty-string JSONB values to null when sorting with Ransack.