When Ruby objects are inspected in any modern IRB, some objects (like ActiveRecord instances) are rendered with neat colors and...
Capistrano 3 has a doctor task that will print information about Environment: Ruby, Rubygems and Bundler versions List of Capistrano...
YJIT is Ruby's default just-in-time compiler. It is considered production-ready since Ruby 3.2 (source).
Git has the concept of hooks: bash scripts that are invoked at certain points in the Git lifecycle. One handy...
Newer Rails projects come with a gem that allows you to access .method(:foo).source. Added a corresponding section to...
When handling nested hashes the RSpec output is often hard to read. Here the gem super_diff could help.
Rails' default logger prefixes each log entry with timestamp and tags (like request ID). For multi-line entries, only the...
Sometimes we have to write code that behaves differently based on the version of a specific gem or the Ruby...
While most Rails Apps are tied to at least one external REST API, machine-to-machine communication via GraphQL is...
When Rails releases a new version of their gems, they also release a number of npm packages like @rails/activestorage or...
Some rubygems come in platform-specific versions (i.e. "x86_64-linux") in addition to the usual "ruby" platform. This is...
Running gem update --system will install the latest version of RubyGems. However the latest version might not be compatible with...
This cards describes an example with a Github Client on how to keep your Rails application more maintainable by extracting...
If you are using the routing-filter gem in your Rails 7.1 app for managing URL segments for locales or...
When making requests using the http gem you might want to automatically follow redirects to get the desired response. This...
Debugging performance issues in your Rails app can be a tough challenge. To get more detailed insights consider using the...
If you need to make an HTTPS connection to a host which uses an expired certificate, do not disable certificate...
It's 2024 and we have tools like ffmpeg, imagemagick and GPT readily available. With them, it's easy to...
There are a few tools to combat the dreaded n+1 queries. The bullet gem notifies you of missing eager...
Here are some hints on best practices to maintain your tasks in larger projects. Rake Tasks vs. Scripts
The linked article suggests an interesting way to speed up tests of Rails + Postgres apps: PostgreSQL allows the creation of...
Getting an entire test suite green can be a tedious task which involves frequent switches between the CLI that is...
This Capistrano task runs a command on all servers. bundle exec cap production app:run cmd='zgrep -P "..." RAILS_ROOT/log/production.log...
In the Gitlab settings the flag Auto-cancel redundant pipelines is enabled by default. This auto-cancels jobs that have...