When we write a form with date fields, we often use graphical data picker like Rome to get a consistent...

Turns out, Cucumber::MultilineArgument::DataTable#diff! caches some stuff. Code of the following form will not work as intended:

By default, Devise redirects to a sign-in form when accessing a route that requires authentication. If for some reason...

makandra dev

Code comments allow for adding human readable text right next to the code: notes for other developers, and for your...

makandra dev

If you need to test some HTML, e.g. an embed code, you can use RubyMine's "scratch files":

makandra dev

Or: How to avoid and refactor spaghetti code Please note that I tried to keep the examples small. The effects...

This is a personal post-mortem analysis of a project that was mainly build to provide a REST API to...

This checklist should help you to check edge cases that are not part of the default Carrierwave configuration.

Debugging image color profiles is hard. You can't trust your eyes in this matter, as the image rendering depends...

Browsers come with a set of built-in elements like or . When we need a new component not covered by...

When tests might not run with skipping RSpec in the RSpec.describe failing with the error undefined method 'describe' for main...

You can use the Youtube API to get data from youtube. Here are some resources and some things that are...

matthewphillips.info

A while ago I tweeted a thread about how a small JavaScript snippet, one that can fit in a single...

There is a kind of features in web applications that hinder automated integration tests. Examples include cookie consent banners or...

caniemail.com

The french Tilt Studio built a caniuse clone for email clients. Note that while checking styling support helps using (or...

api.rubyonrails.org

ActiveSupport (since 4.1) includes test helpers to manipulate time, just like the Timecop gem: To freeze the current time, use...

Capybara provides execute_script and evaluate_script to execute JavaScript code in a Selenium-controlled browser. This however is not...

Rails uses a CSRF token in forms and AJAX requests to verify a user request. Internally it compares the injected...

Projects with more than one developer should always consider to enforce code review even for small changes to improves the...

This collection contains some useful design resources for developers. Many of them were mentioned in the Refactoring UI tutorials.

As an application exists, data accumulates. While you'll be loosely monitoring the main models' record count, some supportive database...

There are a few ways to access view helpers from the Rails console. The easiest way is the helper shortcut...

You can use constraints in your routes.rb to avoid getting ActionView::MissingTemplate errors when wrong routes are called. Instead, the...