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...
The rack-contrib gem brings a JSONP middleware that just works™. Whenever a JSON request has a callback parameter, it...
Sometimes huge refactorings or refactoring of core concepts of your application are necessary for being able to meet new requirements...
dumple uses --clean option for PostgreSQL/pg_dump
TLDR: A function is hard to use when it sometimes returns a promise and sometimes throws an exception. When writing...
Like you know from "How to tell ActiveRecord how to preload associations (either JOINs or separate queries)", you can tell...
There is no CSS selector for matching elements that contains a given string ¹. Luckily, Capybara offers the :text option to...
When you're writing specs for ActiveRecord models that use memoization, a simple #reload will not do: it 'updates on...
We used zeroclipboard.js in some of our projects but now we switched to clipboard.js because it does not rely on...
A haml angular 1 template with .thing(class="is-{{:: item.type }}") will be compiled (by haml) to which is not what...
Closure_tree lets your ActiveRecord models act as nodes in a tree data structure. This promises a few improvements over...
Instantiating ActiveRecord objects comes expensive. To speed up things, you can choose a more direct way to talk to your...
When working with custom transactions and use ActiveRecord::Rollback you may encounter unexpected behaviour if you try to roll back...
When a directory has more than a few thousand entries, ls will start taking really long to list its content...
If you want to find the commits that touched a specific text in a file, use git log -G 'text...
#reverse_order does not work with complex sorting constraints and may even silently create malformed SQL for rails < 5.
Rails 5 / 6 / 7 Method Uses Default Accessor Saves to Database Runs Validations Runs Callbacks Updates updated_at/updated_on Respects Readonly...
1. Sometimes you have search entries in the autocomplete of the address bar, which are higher weighted than your bookmarks...
Detect if a gem has been activated A gem is activated if it is either in the current bundle (Gemfile.lock...
We have released a new library Gemika to help test a gem against multiple versions of Ruby, gem dependencies and...
This error can be caused by the mysql2 gem under mysterious circumstances. You need to remove it with gem uninstall...
Same requests are recorded only once in vcr. Replaying a test fails, if you trigger the same request multiple times...