With this command you can run all the spec files which have been edited or added in the current branch...

It's possible to implement simple custom RuboCop cops with very little code. They work exactly the same like existing...

Sometimes we have to write code that behaves differently based on the version of a specific gem or the Ruby...

tl;dr To adjust code templates in RubyMine, navigate to Settings -> Editor -> File and Code Templates. Example You can navigate...

github.com

I was recently asked to optimize the response time of a notoriously slow JSON API endpoint that was backed by...

makandra dev

While most Rails Apps are tied to at least one external REST API, machine-to-machine communication via GraphQL is...

Modern JavaScript includes Intl.NumberFormat to format numbers in different formats and locales. In this card, we describe a wrapper for...

Some rubygems come in platform-specific versions (i.e. "x86_64-linux") in addition to the usual "ruby" platform. This is...

chrisboakes.com

Debouncing a method call delays its execution until after a specified time has passed. If it's called again before...

This cards describes an example with a Github Client on how to keep your Rails application more maintainable by extracting...

This card is a short summary on different ways of assigning multiple attributes to an instance of a class.

Using Capistrano, we usually have some array configurations in the config/deploy.rb file, like set :linked_files, %w[config/database.yml], so in...

I used two lab days to read the The framework field guide - Fundamentals, the first of a three part series...

When you mocked method calls in RSpec, they are mocked until the end of a spec, or until you explicitly...

If you are using the routing-filter gem in your Rails 7.1 app for managing URL segments for locales or...

As we're switching from PT to Linear, I've updated the existing bash script to work for commits that...

If an view spec crashes due to undefined helper methods, you can enable this option: # config/application.rb config.action_controller.include_all_helpers = true...

What is makandra cards? We are makandra, a team of 60 web developers, DevOps and UI/UX experts from Augsburg, Germany...

Raising errors for required and permitted attributes makes it easier to find errors in your application during development and in...

This card describes four variants, that add a more intuitive workflow when working with nested attributes in Rails + Unpoly:

open-ui.org

tl;dr When browsers start to adapt proposals from Open UI, it might not be necessary to use any 3rd...

makandra dev

Postgres works differently See PostgreSQL: Difference between text and varchar columns for PostgreSQL-specific info MySQL has 4 different column...

Note Using rem only ever makes sense when the root font size is dynamic, i.e. you leave control to the...

Developing or debugging SAML functionality can be a hassle, especially when you need to go back and forth with someone...