The ActionDispatch module of Rails gives you the helper method flash to access the flash messages in a response.
capybara-lockstep can help you with flaky end-to-end tests: This Ruby gem synchronizes Capybara commands with client-side...
By default parallel_tests will spawn as many test processes as you have CPUs. If you have issues with flaky...
CarrierWave comes with a set of default configuration options which make sense in most cases. However, you should review these...
Insomnia is a GUI tool to help you communicating with an API. There are also other tools to do this...
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...
While both the alt attribute and the figcaption element provide a way to describe images, the way we write for...
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...