tl;dr In Chrome DevTools in the Sources tab you can activate Event Listener Breakpoints for debugging events. Example

tl;dr In Chrome DevTools in the Elements tab or in Firefox in the Inspector tab you can right click...

Git allows you to set push options when pushing a branch to the remote. You can use this to build...

github.com

ActiveType::Object inherits from ActiveRecod::Base and is designed to behave like an ActiveRecord Object, just without the database...

If you're experiencing that your bundle install command fails with an error message like this, rubygems.org might...

makandra dev

tl;dr git checkout is the swiss army of git commands. If you prefer a semantically more meaningful command for...

Here are a few common patterns that will probably lead to flaky specs. If you notice them in your specs...

makandra dev

tl;dr git checkout is the swiss army of git commands. If you prefer a semantically more meaningful command for...

You have uncommited changes (you can always check by using git status), which you want to discard.

Ruby's standard library includes a class for creating temporary directories. Similar to Tempfile it creates a unique directory name...

When you build a JSON API you need to come up with a style to represent attributes, pagination, errors or...

If you need to convert an SVG source to PS or EPS, the most common suggestion on the interwebs is...

greg.molnar.io

Greg Molnar has written a neat article about creating a single-file Rails app. This is not meant for production...

Working with a self-signed certificate is much easier, when the browser accepts it. Google Chrome Warnings from chrome might...

github.com

Note Use yarn dedupe in Yarn v2+: https://yarnpkg.com/cli/dedupe This package only works with Yarn v1. Yarn v2 supports...

tl;dr The :is() pseudo selector - specificity of its most specific argument - matches against a comma-separated list of selectors...

tl;dr The :where() pseudo selector - zero specificity - matches against a comma-separated list of selectors. Example Compound selectors like...

When your Rails application offers downloading a bunch of files as ZIP archive, you basically have two options:

To read the Rails session from a Rack middleware, use env['rack.session']. It's an ActionDispatch::Request::Session object.

Ruby includes many standard gems that are bundled into the Ruby installation. Here is an example for the gem strscan...

When changing code in mailers, updating the corresponding mailer preview can be forgotten very easily. Mailer previews can be tested...

Recent IRB versions include a multi-line autocomplete which may be helpful to novice users but can be distracting.

Testing file download links in an end-to-end test can be painful, especially with Selenium. The attached download_helpers.rb provides...

While verifying doubles in RSpec is a good default, it is limited in the amount of methods it actually is...