We use CarrierWave in many of our projects to store and serve files of various formats - mostly images. A common...
In case you want to use pry with an older version of Ruby, you can try the following configurations.
You can install rubygems 3.0.8 (released on February 18, 2020) to keep all the Gem::Specification#rubyforge_project deprecation warnings...
The linked GitHub repository is a bit like our "dev" cards deck, but groomed from a single person (Josh Branchaud...
Sometimes it's nice to have some coloring in your logs for better readability. You can output your logs via...
Browsers come with a set of built-in elements like or . When we need a new component not covered by...
This is a bookmarklet you can add to Chrome or Firefox which will allow you to create a story in...
When using Chrome for Selenium tests, the chromedriver binary will be used to control Chrome. To debug problems that stem...
The main benefit of our convention to prefix commits by their corresponding Pivotal Tracker ID is that we can easily...
Capistrano automatically logs each (successful) deployment into a file on your application servers. It is located at the root of...
From Ubuntu 17, rbenv fails to install Ruby below 2.4 because of a mismatching OpenSSL dependency: it needs libssl1.0-dev for...
In Ruby on Rails, all objects have a useful blank? method. It returns true for nil but also for empty...
When you update your ChromeDriver to version 75 or beyond, you might get w3c errors in your tests.
jQuery has a function $.fn.trigger(). You can use it to dispatch an event on a jQuery object: let $element = $('.foo...
If you get e.g. this error message when you try to run puppet agent: Error: Failed to apply catalog: undefined...
In Rails, we usually have a mailer setup like this: class MyMailer < ActionMailer::Base def newsletter mail to: 'receiver@host.tld',
The standard way to abort async code is that your function takes a AbortSignal { signal } property. The caller can use...
Remember How to skip Sprockets asset compile during Capistrano deployment and Automatically skipping asset compilation when assets have not changed...
When your code does not behave as expected, you can use a debugger statement ("breakpoint") at any point in your...
There are two ways to lock a user in devise. Using the lockable module Customizing the user account status validation...
In this example we assume that not only the storage gem changes but also the file structure on disc.
A JavaScript error in an E2E test with Selenium will not cause your test to fail. This may cause you...
Geordi's cucumber command has a --rerun option that reruns failing tests the given number of times. Usage: geordi cucumber...