Discover more from Short Ruby Newsletter
👋 Short Ruby News - Edition #26
Briefly about everything happening in Ruby world - week 3 of 2023
Excited about the future
👉 I activated subscriptions for the newsletter. I want to keep the newsletter free for everybody; thus, I don’t have a unique offering for people who decide to pay a subscription.
Do you like this newsletter and can afford to become a paid subscriber for 5$/month?
In that case, you get nothing different except the pleasure of knowing that you’re supporting the Short Ruby News to keep publishing the free edition weekly and pay for some of the tools I use to create this newsletter. And, of course, my gratitude for your big gesture!
I can help you write an email for your manager/leader to expense your subscription from your learning budget, so please reach out to me at firstname.lastname@example.org
If you are already a free subscriber and want to update, you can click on Upgrade your subscription. If you are not a subscriber, you can subscribe as free or paid or just read the newsletter on the web.
You can jump directly to one of the following sections if you like:
More content: 🎥 🎧 🗞 (articles, podcasts, videos, and newsletters)
👐 Our Community
Here are some suggested resources:
👉 All about Code and Ruby
The source code is available at: marcoroth/phlexing
Read the document here.
You should read the entire thread. I just want to underline the announcement Joel made in that thread:
He describes the problem:
And then the solution:
You can explore the full example on this Github repository
Read the thread as it has a lot of code samples showing why this happens and how it works.
You should also read this code sample from Josh Cheek reply along with the link to the Ruby docs:
If you have read so far and you like the content, maybe you take into consideration sharing this and subscribing:
🧰 Gems, Libraries, and Updates
🧰 Avo published a new update for their content management system and admin for Rails: Read the changelog for v.2.24.0
Provides Rails generators to produce Dockerfiles and related files. This is being proposed as the generator to be included in Rails 7.1, and a substantial number of pull requests along those lines have already been merged. This repository contains fixes and features beyond those pull requests.
Persist and restore ephemeral attributes of HTML elements using the Rails cache store and StimulusJS. In short, this plugin will persist UI state changes a user makes on a per-element basis.
transient-recordis a gem to define temporary tables and Active Record models for testing purposes. It's a great tool for testing generic Active Record code and libraries.
🧰 Lázaro Nixon shared a PR for Active Record that will help with generating tokens: Add `ActiveRecord::Base::generates_token_for` by jonathanhefner
🧰 Dhairya Gabhawala shared a gist showing how to extend Trix editor functionality: Rails & Trix: Add Underline, Superscript, and Subscript
🤝 Related (but not Ruby-specific)
Here are some replies:
Here are some replies worth reading:
There were also two resources shared:
More content: 🎥 🎧 🗞
🗞 Greg Molnar published a new edition of This Week in Rails: Active Record regroup, CurrentAttributes name restrictions and more!
🎧 Ruby For All published a new episode about The Database Wizard with Andrew Atkinson | Ruby for All | Episode 26
📽️ Andrew Culver shared the video of Joe Masilotti's talk about Why Are We Afraid to Hire Junior Rails Developers?
Stephen Taylor Witte shared an article written by Vladimir Dementyev and Travis Turner from Evil Martians about Gemfile of dreams: the libraries we use to build Rails apps
Matt Swanson published a new article about Writing better Action Mailers: Revisiting a core Rails concept. You should also read this article by Stephen Margheim about Why parameterized objects in Rails are so powerful
Test Double shared an article written by Ali Ibrahim about Get Bootboot to work on Rails 4.x in deployment environments with Docker
Frédéric Planté published an article about A powerful search feature with what Rails provides out of the box
The Ruby Dev shared an article written by Kane Hooper about Creating an AI email parser using Ruby and OpenAI (GPT-3)
Peter Berkenbosch published an article about How to use ULID primary keys in Rails
Lucian Ghinda published an article about Refactoring instance variables to local variables in Rails controllers
Denis Defreyne published a new article about Avoiding bugs in Ruby code using the state pattern
Thanks for reading Short Ruby Newsletter! If you enjoyed this and want to receive the newsletter weekly in your inbox, consider subscribing: