makandra dev

Rails 6 includes a WYSIWYG editor, Action Text. It works out of the box quite well, but chances are that...

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

TinyMCE is a WYSIWYG editor which is quite customizable. Add a custom button to the tinyMCE toolbar and tell tinyMCE...

simple-form-bootstrap.plataformatec.com.br

Good reference how to build bootstrap forms with simple_form.

CSP hat zum Ziel einen Browser-seitigen Mechanismus zu schaffen um einige Angriffe auf Webseiten zu verhindern, hauptsächlich XSS...

Speaker today is Henning Koch, Head of Development at makandra. This talk will be in German with English slides.

Test-Driven Development (TDD) in its most dogmatic form (red-green-refactor in micro-iterations) can be tedious. It does...

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

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...

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

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

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

makandra dev

CSS transitions are a simple animation framework that is built right into browsers. No need for Javascript here. They're...

When an AJAX request raises an exception on the server, Rails will show a minimal error page with only basic...

Jasmine has long standing support for writing asynchronous specs. In days gone by we used the done callback to achieve...

With ActiveType 1.2 you can modify associations (has_many etc.) after they have been defined. One common use case for...

makandra dev

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

Spammers have started abusing other application to send their spam. This works like this: The application has some form that...

makandra Curriculum

When your code does not behave as expected, you can use a debugger statement ("breakpoint") at any point in your...

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

In general, the tracker should always be the definitive source of truth of what needs to be done as part...