If your app does not need to support IE11, you can use most ES6 features without a build step. Just...
The standard way to abort async code is that your function takes a AbortSignal { signal } property. The caller can use...
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...
When doing Basic Authentication, your browser will send an "Authorization" header. Its value is simply a Base64-encoded representation of...
In ruby you can easily read and write CSVs with the standard CSV library class. On top of this, you...
The rendered font often depends on the local font your system provides, therefore you often find a rule like below...
To reload a single-item association in Rails 5+, call #reload_ : post.reload_author In older Railses you can say
Cucumber factory supports polymorphic associations out of the box. Just keep in mind that you need to use named associations...
When upgrading Rails versions -- especially major versions -- you will run into a lot of unique issues, depending on the exact...
The Ace editor is a great enhancement when you want users to supply some kind of code (HTML, JavaScript, Ruby...
There are many ways to optimize SVGs. Ideally, your build pipeline does that automatically for you (e.g. via postcss-svgo...
When projects run for many years, they require special regular maintenance to stay fresh. This kind of maintenance is usually...
If your Rubymine does not recognize a file type correctly although you have entered the unmistakeable file extension like material_orders_controller.rb...
We figured out, that ActiveJob Inline might lead to autoloading problems in development. The result was an exception when running...
Occasionally, your designer will hand you designs where elements break the layout's horizontal container width, like navigation buttons of...
Deployment ready for Opscomplete Copying view and controller templates over to target application during basics configuration or via...
When you created a project on the Google API Console which is not being used, you may receive an e...
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...
jQuery's removeClass removes the given class string from an element collection. If you want to remove multiple/unknown classes matching...
When you are using lambdas in RSpec to assert certain changes of a call, you know this syntax: expect { playlist.destroy...
Ubuntu has decided to disable PDF processing because ImageMagick and the underlying Ghostscript had several security issues. When your Ghostscript...
This repository was created with the intention of helping developers master their concepts in JavaScript. It is not a requirement...