We're usually running Ubuntu LTS versions. Sometimes newer hardware requires packages from more recent Ubuntu releases that only come...
An end-to-end test (E2E test) is a script that remote-controls a web browser with tools like Selenium...
Slides for Henning's talk on Sep 21st 2017. Understanding sync vs. async control flow Talking to synchronous (or "blocking...
When you want to group rails models of a logical context, namespaces are your friend. However, if you have a...
After loading a staging dump into development, you might get an ActiveRecord::EnvironmentMismatchError when trying to replace the database (like...
If another session is accessing your database you are trying to reset or drop you might have seen the following...
I frequently find myself needing a combination of group_by, count and sort for quick statistics. Here's a method...
before(:all) runs the block once before all of the examples. before(:each) runs the block once before each...
There are many approaches out there how you can import data from a legacy application to a new application. Here...
Use Traim to build a RESTful API for your ActiveRecord models with very little code. Traim assumes your API resources...
When using GROUP BY, MySQL now complains if the SELECT includes columns which are not part of the GROUP BY...
Rails supports time zones, but there are several pitfalls. Most importantly because Time.now and Time.current are completely different things and...
Dump this method into your Ruby console to quickly print data in columns. This is helpful for e.g. comparing attributes...
Database connections are not thread-safe. That's why ActiveRecord uses a separate database connection for each thread.
This card compares patterns to store trees in a relation database like MySQL or PostgreSQL. Implementation examples are for the...
The parallel-gem is quite easy to use and can speed up rendering time if you want to render the...
This is not an issue in newer versions of HAML (starting with 5.0.0), as the ugly-option was removed...
If you have a replication error with MySQL and you know the "error" is okay (e.g. you've executed the...
This error message may occur when rspec gets loaded by rake, e.g. when you migrate the test database. NoMethodError: undefined...
Reminder of what you can do with Geordi. Note: If you alias Geordi to something short like g, running commands...
A comprehensive introduction to sending HTML emails. Intro: HTML email: Two words that, when combined, brings tears to a developer...
In general, you should not put a block element inside an inline element. So don't do this: text
Like you know from "How to tell ActiveRecord how to preload associations (either JOINs or separate queries)", you can tell...
Closure_tree lets your ActiveRecord models act as nodes in a tree data structure. This promises a few improvements over...