This RailsCast demonstrated a very convenient method to activate VCR for a spec by simply tagging it with :vcr.

You want to use fields in your applications. However, your desktop users may encounter some weird quirks: Aside from allowing...

Event delegation is a pattern where a container element has a single event listener that handles events for all descendants...

Sometimes a link or input field has no visible label. E.g. a text field with a magnifying glass icon 🔎 and...

git --fixup is very handy to amend a change to a previous commit. You can then autosquash your commits with...

Ruby lets you re-use existing RegExp objects by interpolating it into new patterns: locales_pattern = /de|en|fr|es/i...

With cd .. you can navigate one directory up from the one you are at now. If you use that a...

There is an option you can set so that when using the cd command, small typos are automatically corrected. Add...

It is generally discouraged to load your JavaScript by a tag in the : The reason is that a tag will pause the DOM parser until the script has loaded and executed. This will delay the browser's first contentful paint. A much better default is to load your scripts with a tag: A deferred script has many...

Our gem spreewald supports a few helpers for development. In case you notice errors in your Cucumber tests, you might...

en.wikipedia.org

Formerly 301 (Moved Permanently) and 302 (Found) were used for redirecting. Browsers did implement them in different ways, so since...

makandra dev
poinz.herokuapp.com

If you are using scrum in a project you might be familiar with planning poker, a playful way to agree...

The Node Version Manager allows installing multiple NodeJS versions and switching between them. By default, it does not automatically switch...

moncefbelyamani.com

The linked article points out that COUNT queries might be unexpectetly slow in psql. If you just need to know...

When testing JavaScript functionality in Selenium (E2E), you may need to access a class or function inside of a evaluate...

Matching the "space" character class For matching whitespaces in a regular expression, the most common and best-known shorthand expression...

rspec.info

rspec >= 3.1 brings a method and_wrap_original. It seems a bit complicated at first, but there are use cases...

When deleting a record in your Rails app, Carrierwave automatically takes care of removing all associated files. However, the file...

This card is a general reminder to avoid the short version of a command option in shared code. It's...

If a project ist configured to spawn CI runners for tests or deployment when pushing to the Repo, a habit...

To attach files to your records, you will need a new database column representing the filename of the file...

makandra dev
web.archive.org

The attached article examines what the percent unit (%) is relative to in CSS The article does a great job of...

ruby-lang.org

Ruby 3.0 introduced a breaking change in how it treats keyword arguments. There is an excellent blog post on the...

When your Rails application server raises error, Capybara will fail your test when it clears the session after the last...