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...
When you load a dump for development, records may reference images that are not available on your machine.
Note: The behaviour of Spreewald's within step is as described below for version < 1.9.0; For Spreewald >= 1.9.0 it is...
This is a visualization of the files that will be generated by some useful rails generators. Invoke a generator from...
Crontabs are often unordered, especially when generated for an application where you usually group tasks by their domain/scope.
There seems to be a nasty bug in Chrome 56 when testing with Selenium and Capybara: Slashes are not written...
Adding a gem means you take over the liability towards the external code. Checklist Based on "To gem, or not...
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...
Chrome gives you the currently selected element in the inspector with $0. If you select a button in the DOM...
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...