Posted over 2 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 almost 8 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 almost 5 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 6 months 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 5 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 almost 3 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 7 months 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 over 7 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 over 5 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 about 2 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 about 3 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 almost 3 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 7 months 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 almost 10 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 over 10 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...

Posted about 8 years ago by Henning Koch.

Rails gives you migrations to change your database schema with simple commands like add_column or update. Unfortunately these commands...

Posted 8 months ago by Daniel Straßner. bugs.launchpad.net

Terminator has a cool feature that allows you to split your terminal into many panels and type in all of...

Posted almost 3 years ago by Kim Jahn. github.com

Phusion Passenger changed the way how it gets restarted several times. Through the project's history, these all were valid...

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