Many voices. One Flagrant.

Development

Simple Polling With Turbo Frames

December 12, 2023

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

Fixing a Common N+1 Query

August 10, 2023

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