Recently I made an upgrade from Bootstrap 3 to Bootstrap 4 in a bigger project. Here are some tips how...
Consider the following models and form models: class Parent < ApplicationRecord has_many :children, class_name: 'Child', foreign_key: 'parent_id...
Rails 6 includes a WYSIWYG editor, Action Text. It works out of the box quite well, but chances are that...
Rails supports alert and notice as default flash types. This allows you to use these keys as options in e.g...
I just finished migrating a project from the Asset Pipeline to Webpacker, this is what my diff to master looks...
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...
The linked blog post contains some background information about the alt attribute and the figure / figcaption element. It is interesting...
Git diffs show the surrounding contexts for diff hunks. It does so by applying regular expressions to find the beginning...
Here is a short summary of Cucumber hooks in Ruby taken from https://github.com/cucumber/cucumber-ruby. Note that the BeforeStep is...
If you're experiencing problems with your Google Chrome installation after an update, it might help downgrading Chrome to check...
There is a common view that extracting text from a PDF document should not be too difficult. After all, the...
Good reference how to build bootstrap forms with simple_form.
After a recent Ubuntu update I didn't see the main menu bar of the RubyMine IDE (File | Edit | View...
grep is the go-to CLI tool to accomplish tasks like filtering large files for arbitrary keywords. When additional context...
CSP hat zum Ziel einen Browser-seitigen Mechanismus zu schaffen um einige Angriffe auf Webseiten zu verhindern, hauptsächlich XSS...
"Open-source software (OSS) is great. Anyone can use virtually any open-source code in their projects." Well, it depends...
Nokogiri is great. It will even fix invalid HTML for you, like a browser would (e.g. move block elements out...
# Basic HTML example # Javascript API (notable methods and properties) video = document.querySelector('video') video.play() video.pause() video.load() // Reset to the beginning and...
RubyMine has a HTTP Client that can be useful to test web APIs. Just create a .http scratch file an...
In a web application you sometimes have tasks that can not be processed during a request but need to go...
Select2 comes with AJAX support built in, using jQuery's AJAX methods. ... For remote data sources only, Select2 does not...
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...