Select2 comes with AJAX support built in, using jQuery's AJAX methods. ... For remote data sources only, Select2 does not...
If you render markdown from user input, an attacker might be able to use this to inject javascript code into...
When an event listener on a DOM element throws an error, that error will be silenced and not interrupt your...
An unresponsive service can be worse than a down one. It can tie up your entire system if not handled...
There is a reasonable simple way to move data between Redis servers: Simply temporarily configure the new server as a...
CSS selectors are a very simple tool to select elements from a Nokogiri document. However, the colon in the XML...
Speaker today is Henning Koch, Head of Development at makandra. This talk will be in German with English slides.
Running Cucumber tests while your cucumber.yml is 100% valid may still produce the following error. cucumber.yml was found, but could...
We use CarrierWave in many of our projects to store and serve files of various formats - mostly images. A common...
tl;dr Don't forget require 'English' if you use a named global such as $LAST_MATCH_INFO. Otherwise this...
betterspecs.org is a documentation on how to write better RSpec tests. Note that there are also other approaches like The...
With Rspec you can mock objects or functions, for example like this: expect(my_object).to receive(:my_function).and...
We use the whenever gem to automatically update the crontab of the servers we deploy to. By default, whenever will...
One of the earliest pieces of wisdom we are given as programmers is to not write duplicate code: Don’t...
Using git fixup helps you to speed up appending changes further back in the git history of your feature branch...
In case you want to use pry with an older version of Ruby, you can try the following configurations.
To make CSS rules dependent on the screen size, we use media queries: @media (max-width: 500px) { // rules for screen...
Ruby and Rails have several methods for creating a new object that looks like another: clone, dup, deep_dup. When...
You can install rubygems 3.0.8 (released on February 18, 2020) to keep all the Gem::Specification#rubyforge_project deprecation warnings...
You can run bundle install in parallel. This might be helpful for development, where you often install many new gems...
When you have many changes, and you want to spread them across different commits, here is a way to stage...
The linked GitHub repository is a bit like our "dev" cards deck, but groomed from a single person (Josh Branchaud...
With puma you can have concurrent requests. There are two concepts on how Puma can handle two incoming requests: Workers...
Test-Driven Development (TDD) in its most dogmatic form (red-green-refactor in micro-iterations) can be tedious. It does...