ActiveRecord provides the ids method to pluck ids from a scope, but what if you need to pluck Global IDs...
A flat folder structure can be cool if you have only a few folders but can be painful for huge...
Rails 5.2+ supports "verbose query logs" where it shows the source of a query in the application log.
When you use Sentry to monitor exceptions, an important feature is Sentry's error grouping mechanism. It will aggregate similar...
Rails middlewares are small code pieces that wrap requests to the application. The first middleware gets passed the request, invokes...
If you migrate a Rails application from Sprockets to Webpack(er), you can either transpile your CoffeeScript files to JavaScript...
If you have a :string or :text field, you should pair it with a model validation that restricts its length...
PostgreSQL offers three character types for your columns: character varying(n) (also called varchar or just string): Contents are limited...
Speaker today is Henning Koch, Head of Development at makandra. This talk will be in German with English slides.
In Active Record you can use named bindings in where-conditions. This helps you to make your code more readable...
"Everything in Ruby is an object". This is also true for nested hashes and arrays. If you copy a hash...
A recent patch level Ruby update caused troubles to some of us as applications started to complain about incompatible gem...
We can use ActiveRecord's where to add conditions to a relation. But sometimes our condition is not on the...
PostgreSQL and ActiveRecord have a good support for storing dynamic attributes (hashes) in columns of type JSONB. But sometimes you...
Debugging image color profiles is hard. You can't trust your eyes in this matter, as the image rendering depends...
It's every developer's nightmare: SQL queries that get large and unwieldy. This can happen fairly quickly with the...
Bundler 2 introduced various incompatibilites und confusing behavior. To add to the confusion, Bundler's behavior changed after the release...
WProofreader is a spelling and grammar checking tool that integrates with textareas and numerous WYSIWYG editors. While it usually activates...
Rails is split into a large number of (sub-) frameworks. The most important and central of those are activesupport (extends...
With ActiveType 1.2 you can modify associations (has_many etc.) after they have been defined. One common use case for...
Travis changed their default distribution from Ubuntu 14.04 (trusty) to 16.04 (precise). This might break your test setup for new...
Was ist Elastic? Suchmaschine, basierend auf Apache Lucene größtenteils Open-Source einige kommerzielle Features ("Elastic Stack", früher "X-Pack") Zugriffsrechte...
Tod is a gem for working with daytimes. That's a tuple of (hour, minute second) without a day, month...
When doing some meta-programming magic and you want to do something for all attributes of a class, you may...