What is Ruby doing on Rails?
Hello, you're reading Infinum Ruby Drops, bringing you the latest Ruby and Rails related news straight to your inbox every week.
How to Debug Non-Deterministic Test Failures With RSpec
I recently wrote a spec and had no idea why it was randomly failing. This is an article to explain the process I followed to debug this issue.
Read More
Using ActionviewPrecompiler to precompile ActionView templates at app boot.
Now, we can create and remove foreign key constraints using add_foreign_key and remove_foreign_key in SQLite3.
Today I was writing some code and it just felt weird when I started to write this long conditional.
Over the last 2 months, I’ve been scheduling some time to work on a specific Ruby code which is designed to be a good starting point for a refactoring. Those exercises are called Refactoring Katas.
Beyond Ruby
If you use an object-oriented domain model, and you don't put behavior in your objects, you're missing out on most of the benefits of that pattern.
This post will try to share some best practices when writing a Dockerfile for a Ruby application. Most of these suggestions should be valid for any other runtime as well.
Blast from the past
A post on the steps we took to cut Postgres query response times from an average of ~100ms with peaks to 1 second to a steady 1ms to 10ms.
Bring consistency to the structure of your pull requests.
Gem of the week
Go faster, off the Rails - Benchmarks for your whole Rails app