Many voices. One Flagrant.

Development

Simple Polling With Turbo Frames

One cool feature that comes with Turbo are Eager Loaded Frames. By simply adding a src attributes to your turbo frame Turbo will make an asynchronous request to the given url when the turbo frame is rendered on the page. This simple feature while powerful in itself can be the jumping off point...

Jonathan Greenberg
By Jonathan Greenberg
December 12, 2023

Fixing a Common N+1 Query

ActiveRecord can be so seamless, that it can make something that’s relatively costly in the DB look cheap in terms of characters you need to type. One place where this crops up is in an N+1 Query. Set the scene Let’s say we have a common “Posts” with “Comments” structure of something. Here...

Chris Wilson
By Chris Wilson
August 10, 2023