While deploying an Ruby update to an old application these days, we encountered the following misleading error: *** [err :: some-host.makandra.de] You...
When you have a powerful machine with many CPU cores, you might run into an error like
Here is how to make Rome datepicker look like the rest of your Bootstrap 4 application. Rome comes with very...
Rails' params hash contains any request parameters (URL parameters or request payload) as well as routing parameters like :controller, :action...
RSpec >= 3.3 added aggregate_failures, which allows multiple failures in an example and list them all, rather than aborting on...
Class-level process definitions are only applied to the original file Versions are generated based on the processed original file...
Bundler 2 requires at least Ruby 2.3.0 and RubyGems 2.5.0. You might get the following error when you try to...
To remove all tables from a database (but keep the database itself), you have two options. Option 1: Drop the...
I had this error: > gem install bundler Successfully installed bundler-2.0.1 1 gem installed > bundle install Traceback (most recent call...
Suggested Workflow Set the ruby version in .ruby-version to 2.3.5, then perform these steps one by one, fixing errors...
Remember How to skip Sprockets asset compile during Capistrano deployment and Automatically skipping asset compilation when assets have not changed...
In ruby you can easily read and write CSVs with the standard CSV library class. On top of this, you...
The Ace editor is a great enhancement when you want users to supply some kind of code (HTML, JavaScript, Ruby...
Occasionally, your designer will hand you designs where elements break the layout's horizontal container width, like navigation buttons of...
Accessing pseudo elements via JavaScript or jQuery is often painful/impossible. However, accessing their styles is fairly simple. Using getComputedStyle
There are two ways to lock a user in devise. Using the lockable module Customizing the user account status validation...
Font Awesome 5 is a comprehensive solution for vector icons on your website. Originally, Font Awesome came as an icon...
Geordi's cucumber command has a --rerun option that reruns failing tests the given number of times. Usage: geordi cucumber...
Let's say you have a gem which has the following module: module SuperClient def self.foo 'Foo' end
Option 1: JSON dump In config/webpack/environment.js you can get inspect environment which includes all webpack config options set for the...
Why secure-only cookies used to be necessary Cookies have an optional secure flag. It tells the browser to not...
Background information about session storage in Rails Rails has a default mechanism to store the session in the CookieStore. This...
If possible your code should detect features, not browsers. But sometimes you just need to sniff the browser. And when...
When your JavaScript bundle is so massive that you cannot load it all up front, I would recommend to load...