Slides for Henning's talk on Sep 21st 2017. Understanding sync vs. async control flow Talking to synchronous (or "blocking...
If you are using PDFKit / wkhtmltopdf, you might as well want to use custom fonts in your stylesheets. Usually this...
TL;DR: Bundler 2.0 will rename Gemfile to gems.rb and Gemfile.lock to gems.locked (sic). The old filenames will be supported...
While the hardware mute button of my Lenovo x230 worked on Ubuntu 14.04 out of the box, it does not...
FactoryBot allows a :class option to its factory definitions, to set the class to construct. However, this option is not...
After loading a staging dump into development, you might get an ActiveRecord::EnvironmentMismatchError when trying to replace the database (like...
When localizing model attributes via I18n you may run into errors like this: I18n::InvalidPluralizationData: translation data {...
...} can not be...
If another session is accessing your database you are trying to reset or drop you might have seen the following...
Here is some JavaScript code that allows you to click the screen and get the clicked element's text contents...
Use return to return from a method. return accepts a value that will be the return value of the...
Sometimes modern Javascript projects get out of hand. A major culprit in this can be the messy handling of asynchronous...
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...
You can use local copies of gems in your Gemfile like this: gem 'spreewald', path: '~/gems/spreewald' As soon as you...
Use Traim to build a RESTful API for your ActiveRecord models with very little code. Traim assumes your API resources...
ImageMagick can automatically crop surrounding transparent pixels from an image: convert input.png -trim +repage output.png
ActiveRecord::RecordNotFound errors provide quite meaningful error messages that can provide some insight on application details. Consider the following:
If your Snom 300 always keeps the same volume for headset and ringtone (as soon as you change one you...
Webpack is the future. We're using it in our latest Rails applications. For tests, we want to compile assets...
This card will show you a cool way to define a class using Struct.new. A common usecase for Structs are...
When using GROUP BY, MySQL now complains if the SELECT includes columns which are not part of the GROUP BY...
Since Rails 5, domain models inherit from ApplicationRecord by default. This is the place to put code that should be...
Rails supports time zones, but there are several pitfalls. Most importantly because Time.now and Time.current are completely different things and...
Ubuntu might create several keyrings for you. Note that keyring passwords are initially set to the user password but do...