Posted over 1 year ago by Arne Hartherz.

The Truemail gem (not to be confused with truemail.io) allows validating email addresses, e.g. when users enter them into a...

Posted over 1 year ago by Henning Koch.

URLs can transport key/value pairs ("parameters") using this syntax: /path?foo=bar If the value is blank, mind these subtle...

Posted about 4 years ago by Tobias Kraze.

Migrating data from a legacy into a new system can be a surprisingly large undertaking. We have done this a...

Posted almost 4 years ago by Emanuel De. github.com

There are two ways to lock a user in devise. Using the lockable module Customizing the user account status validation...

Posted about 9 years ago by Henning Koch.

When two classes implement the same behavior (methods, callbacks, etc.), you should extract that behavior into a trait or module...

Posted about 6 years ago by Tobias Kraze.

PostgreSQL, unlike MySQL, treats strings as case sensitive in all circumstances. This includes comparison with = and LIKE collision detection in...

Posted almost 2 years ago by Dominik Schöler.

When deploying a Rails application that is using Webpacker and Capistrano, there are a few configuration tweaks that optimize the...

Posted over 6 years ago by Henning Koch.

Validations should be covered by a model's spec. This card shows how to test an individual validation. This is...

Posted about 4 years ago by Emanuel De.

Cucumber will save a file tmp/parallel_cucumber_failures.log will the filenames and line number of the failed scenarios after a full test...

Posted almost 2 years ago by Michael Leimstädtner.

This card is mainly an explanation how variable fonts work in CSS, not necessarily a recommendation to actually use them...

Posted almost 9 years ago by Henning Koch.

It is good programming practice to Don't Repeat Yourself (or DRY). In Ruby on Rails we keep our code...

Posted about 7 years ago by Dominik Schöler.

As the web is being used for more and more tasks, expectations rise. Not only should web pages offer rich...

Posted over 3 years ago by Tobias Kraze.

Was ist Elastic? Suchmaschine, basierend auf Apache Lucene größtenteils Open-Source einige kommerzielle Features ("Elastic Stack", früher "X-Pack") Zugriffsrechte...

Posted over 4 years ago by Dominik Schöler. litmus.com

Note: Instead of building your e-mails manually as described below, you probably want to use a tool like MJML...

Posted about 4 years ago by Dominik Schöler.

At makandra, we've built a few gems over the years. Some of these are quite popular: spreewald (> 1M downloads...

Posted almost 2 years ago by Henning Koch. github.com

Minidusen lets you find text in associated records. Assume the following model where a Contact record may be associated with...

Posted about 11 years ago by Henning Koch.

While it might seem trivial to implement an invoice that sums up items and shows net, gross and vat totals...

Posted almost 12 years ago by Tobias Kraze.

If you want to see how long your database queries actually take, you need to disable MySQL's query cache...

This website uses short-lived cookies to improve usability.
Accept or learn more