Tutorials

Enhancing Rails Log Output with SQL Query Count | Saeloun Blog
Rails developers often faced challenges optimizing performance due to logs that lacked detailed SQL query information.This made it difficult to identify specific performance bottlenecks, as the logs only provided general data on database interacti...

Refactoring for Readability in Ruby: a Showcase - DEV Community
My personal solution to this: write the code as readable as possible from the very beginning. The key skill to do this is an ability to recognize levels of abstraction in your code. Once properly recognized, they can be isolated from each other, w...

The Amazing Blog - Using Local Font Files in the Rails 7.1 Asset Pipeline
I wanted to play with the new hotness of Rails asset handling in a sideproject, and ran into some fiddliness in getting FontAwesome webfonts to be seen when loading them from an SCSS file. I'm using propshaft and Dart Sass in this app to build my ...

Installing Older Ruby Versions on Ubuntu 24.04 and 22.04 | deanpcmad
This post was originally written in 2022 for Ubuntu 22.04 but has been updated for 24.04 tooI’ve recently upgraded to Ubuntu 24.04 on my main machine and laptop. As I use a mixture of Rails versions for different apps I maintain, I needed to insta...

ActiveRecord::Base pluck adds support for hash values in Rails 7.2 | Saeloun Blog
In day-to-day life, we see many dashboards which consist of charts and reports. To build these charts or reports quickly, we required specific data from different database tables in faster queries.The ActiveRecord::Base pluck method is used to que...

Add your Ruby gems to AWS CodeArtifact | AWS News Blog
Applications often use numerous packages to speed up development by providing reusable code for common tasks like network access, cryptography, or data manipulation. Developers also embed SDKs–such as the AWS SDKs–to access remote services. These ...

We just released v0.16.5 of the Ruby LSP with the first iteration of method support for go to definition!
We just released v0.16.5 of the Ruby LSP with the first iteration of method support for go to definition!We will continue iterating to handle more method types and improve accuracy as much as possible. Please let us know if you have feedback and h...


Backup strategies for SQLite in production – Oldmoe's blog
Introduction If you are relying on SQLite as your production database, then it makes sense to have some sort of a backup strategy. Those backups would come handy in a multitude of situations. For example, if you face a catastrophic hardware failur...

Fixing a footgun in ActiveRecord::Core inspect | Rails at Scale
The inspect method on Active Record models returns a string including the model’s class and a list of all its attributes and their values. In Rails 7.2, you can configure which attributes are included in the output of inspect. In this post, I’ll d...