Make sure that you use the correct property when editing an HTML attribute. Using innerHTML with unsafe arguments makes your...

When you find similar groups of expect calls in your tests, you can improve readability by extracting the group into...

docs.ruby-lang.org

The sprintf method has a reference by name format option: sprintf("% d : % f", { :foo => 1, :bar => 2 }) # => 1 : 2.000000

Most of our applications use CarrierWave for file uploads. CarrierWave has an integrated processing mechanism for different file versions with...

thegnar.com

View specs are a powerful tool to test several rendering paths by their cases instead of using a more costing...

We regularly have tasks that need to be performed around a deploy. Be it to notify operations about changed application...

ruby-doc.org

Do you remember finding where a method is defined? I recently that Method objects are quite useful within a debugging...

Browsers can auto fill-in one time codes if advised. Use it like this: Demo: https://twitter.com/sulco/status/1320700982943223808 Browser support...

You don't want sensitive user data in your logs. Background Rails per default filters sensitive data like...

You can tell npm to install a package globally with npm -g install @puppeteer/browsers. However, it seems that its not...

Rails offers several methods to manage three types of different cookies along with a session storage for cookies. These...

Note: You won't need this for single lines of text. In this case it is better to just use...

When you write your next CarrierWave uploader, consider processing your images with libvips instead of ImageMagick. Reasons for libvips

So you have a heading that is just barely wider than the container it should fit into, and it wraps...

We have a long-standing checklist for merge requests. However, it hardly matches the intricate requirements for design. This checklist...

github.com

Geordi will now suggest related commands and options (hand-picked). If a command has suggestions, a single suggestion is printed...

With this Ruby script you can print all values in a Redis database to your console (derived from this bash...

adactio.com

Web forms can be made much more usable with a few HTML attributes. Short summary: type: Tells browsers about the...

makandra dev
gist.github.com

Context and further resources Even though you can get 90% of debugging done with up to 5 basic byebug commands...

When you allow file uploads in your app, a user might upload content that hurts other users. Our primary concern...

Every Rails response has a default ETag header. In theory this would enable caching for multiple requests to the same...

tl;dr Individual transform properties are great because they allow you to write more readable and maintainable CSS, especially when...

Sidekiq 7 adds a new feature called capsules. Use cases: a chrome queue limited to 1 for e.g. PDF processing...

Let's say we have posts with an attribute title that is mandatory. Our example feature request is to tag...