Drag and drop sorting in Rails takes an hour with acts_as_list, SortableJS and Stimulus. Here is that hour, plus the seven things that break once people use it, and how we handle each one in the Avo app that orders our own pricing page.
Active Storage tutorials stop at `resize_to_limit`. Here is what happens at 1,916 photos: variants generated inside the Puma request, `preprocessed:` enqueuing 17,250 jobs, an N+1 that only appears once you move to a CDN, and a CDN that never considered your images cacheable in the first place. All measured on a gallery that is live and open source.
New themable UI, dark mode, keyboard navigation, and a wave of new addons. Unbundled pricing so you pick exactly what you need. Start a trial and have it running today.
The Avo 4 Open Beta is here. Try the new UI4 visual style, new features like Collaboration, Forms, Kanban, HTTP Resources, REST API, and Reactive Fields — plus a comprehensive upgrade guide to help you migrate from Avo 3.
When debug queries in the console I often want to see the raw DB queries being made.
Here's a quick little piece of code which will make those queries visible in the console.