#​716 — August 22, 2024

Read on the Web

Together with  Crunchy Bridge

Ruby Weekly

Transformers.rb: State-of-the-Art Transformers for Ruby — Put down that Python – great things are continuing to happen for ML aficionados in Ruby. Andrew, now widely known for his work on pgvector, has shipped a way to use Torch.rb to use transformer models from Hugging Face directly from Ruby.

Andrew Kane

The Rails Router Handbook — A free online book all about the Rails router that covers all the hits, including resources, nested routes, segment constraints, routing concerns, and more.

Akshay Khot

💡 Notably, the book above uses 37signals' free Rails app Writebook.

Streamline Postgres with Crunchy Bridge — Honeybadger moved from self-hosted Postgres to Crunchy Bridge, gaining expert support, saving time on routine maintenance, and simplifying compliance. Discover how Crunchy Bridge can take the burden off your team and let you focus on growth.

Crunchy Bridge sponsor

What About Static Typing in Ruby? — Noel works through his thoughts and feelings about static typing and its limitations and costs. There’s no strong conclusion, other than this stuff is complicated to weigh up but worthy of thought nonetheless.

Noel Rappin

A List of Forthcoming Ruby Conferences — If you want to see what Ruby events are coming up, this great resource continues to be maintained, and even has iCal feeds for both event and CFP dates.

Jon Allured

IN BRIEF:

  • Ruby's REXML XML library seems to be one of those libraries you really need to upgrade on a frequent basis lately, with several DoS vulnerabilities found and fixed in the past couple of months. Today, there's a fresh one.

  • 📅 If you're determined to make it to 2025's last-ever RailsConf, Ruby Central has opened up sales of 'supporter' level tickets. Regular tickets will become available later on.

  • Ruby Central's latest August 2024 newsletter brings us up to speed with news on their events, as well as work on the RubyGems system.

Should private Work on Constants Too? — Lucian goes back to a proposal rejected by Matz and argues for why it’s worth another look.

Lucian Ghinda

Building a Better bin/dev Script for Railsrun-pty offers a few advantages over Foreman, such as the ability to switch between pseudo-terminals for each running process.

Matt Brictson

Rails + AI: Turn Ideas into Apps. Book a Meeting — Struggling with AI integration in Rails? We use (OpenAI, Claude, AWS Bedrock etc) to build amazing Rails apps. Let's discuss.

reinteractive::Custom AI integrations with RoR sponsor

🎵  Sonic Pi: Ruby as a Composition Tool? — If you’ve ever argued coding is more art than science, here’s a chance to drive that home by creating music with Sonic Pi’s Ruby-adjacent DSL. Sean (a music major turned Rubyist) walks through some examples.

Sean Morrissey

📄 A Decoupled Approach to Relaying Events Between Stimulus Controllers Justin Searls

📄 Conditionally Render a Turbo Frame Shared Between Multiple Views Steve Polito

📄 Configuring SSH Keys for Multiple GitHub Accounts Steven Harman

📄 A Look at a Sidekiq to Solid Queue Migration Apoorv Tiwari

🛠 Code & Tools

sqlite-vec: A Vector Search Extension for SQLite — If using a dedicated vector storage database is beyond your immediate requirements, you can now use SQLite for the task. While this is an SQLite extension, it’s easy to use with numerous languages, including Ruby.

Alex Garcia

Chartkick 5.1: Attractive JavaScript Charts in One Line of Ruby — A long standing library that saves you from fighting with charting libraries. GitHub repo.

Andrew Kane

Free eBook: Indexing Postgres - Create The Best Index For Your Queries — Learn how to make effective index choices for your Rails application. A deep dive into index types, operators, and more.

pganalyze sponsor

ActualDbSchema: Keep a Rails DB Schema Consistent When Switching Branches — Migrations can get messy if you’re switching branches in a Rails app. The job of this project is to clean up that mess. Now includes a Web UI to look at and manage the migrations.

Andrei Kaleshka

RubyGateway: Embed Ruby in Swift — Load gems, run Ruby scripts, and invoke APIs seamlessly in both directions.

John Fairhurst