tl;dr In Chrome DevTools in the Elements tab or in Firefox in the Inspector tab you can right click...
Unpoly's [up-observe], [up-autosubmit] and [up-validate] as well as their programmatic variants up.observe() and up.autosubmit...
You have uncommited changes (you can always check by using git status), which you want to discard.
The robots.txt file and HTML tag can be used to control the behavior of search engine crawlers. Both have different...
For Rails models where only one of multiple attributes may be filled out at the same time, there is no...
Here's a one-liner to view base64 encoded secrets in kubernetes. Make sure you have jq installed.
Recently we detected a memory leak in one of our applications. Hunting it down, we found that the memory leak...
The linked content includes a few design patterns implemented with Ruby on Rails. What is the card indented to achieve...
While working on a Rails application, your code base will grow a collection of different file types including: Ruby (business...
You can use the code below to check whether the browser can make connections to the current site: await isOnline...
I recently wanted to add a model for address information but also wanted to add a unique index to those...
It might sometimes be useful to check whether your Rails application accesses the file system unnecessarily, for example if your...
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...
tl;dr You can use attribute? as shorthanded version of attribute.present?, except for numeric attributes and associations. Technical Details
Redis.current will be removed without replacement in redis-rb 5.0. Version 4.6.0 adds deprecation warnings for Redis.current and Redis.current=: `Redis.current...
We use foreman to start all necessary processes for an application, which are declared in a Procfile. This is very...
Building application assets with esbuild is the new way to do it, and it's great, especially in combination with...
Attaching files to a field that is handled by Carrierwave uploaders (or maybe any other attachment solution for Rails) in...
When Capybara locates elements in the DOM, by default it allows only accessing visible elements -- when you are using a...
Jasmine is a great tool to unit test your JavaScript components without writing an expensive end-to-end test for...
Resources RubyGuides: Mastering Ruby Regular Expressions Using regular expressions in JavaScript Testing regular expressions visually Regular Expressions: Quantifier modes...
JavaScript code can access and manipulate the browser's DOM tree. Using JavaScript we can add interactive behavior to our...
Proxy caching is a good feature to serve your publicly visible application content faster and reduce load on your servers...