Fixed bugs where calling valid? would change the record's state.

When you have a powerful machine with many CPU cores, you might run into an error like

Rails' params hash contains any request parameters (URL parameters or request payload) as well as routing parameters like :controller, :action...

For searching in large database tables we usually use PostgreSQL's fulltext search capabilities. While this works reasonably well for...

makandra dev

This is a presentation from 2019-01-21. Summary We want to move away from jQuery in future projects

tableplus.io

To remove all tables from a database (but keep the database itself), you have two options. Option 1: Drop the...

makandra dev

Suggested Workflow Set the ruby version in .ruby-version to 2.3.5, then perform these steps one by one, fixing errors...

Rails ships with two separate build pipelines: Sprockets ("asset pipeline") and Webpacker. Webpacker has many more moving parts, but allows...

We figured out, that ActiveJob Inline might lead to autoloading problems in development. The result was an exception when running...

github.com

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

api.jquery.com

jQuery's removeClass removes the given class string from an element collection. If you want to remove multiple/unknown classes matching...

github.com

Setting array columns When using PostgreSQL array columns, you can set an array attribute to a value with square brackets...

In this example we assume that not only the storage gem changes but also the file structure on disc.

If validations failed for a record, and you want to find out if a specific validation failed, you can leverage...

Most forms have a single submit button that will save the record when pressed. Sometimes a form needs additional submit...

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

Google Chrome has a subtle rendering bug that hits me once in a while. It usually occurs in sliders with...

Having a unique selector for an element is useful to later select it from JavaScript or to update a fragment...

When you need to store structured data (like Ruby hashes) in a single database column with ActiveRecord, a simple way...

Create a user without password (recommended) Replace newuser with your desired username: mysql -uroot -p CREATE USER 'newuser'@'localhost' IDENTIFIED...

There are two ways within systemd to manage the fact that you need the gluster service active before mounting the...

github.com

Recent Bundler (1.16.1) started complaining about missing dependencies in the Gemfile. This is due to a stricter handling of specifications...

Don't sum up columns with + in a sql-query if NULL-Values can be present. MySQL and PostgreSQL cannot...

If you have a single node elasticsearch instance and indices with replicas enabled your cluster state will be yellow. If...