Ruby's File class has a handy method binary? which checks whether a file is a binary file. This method...
If you want to prevent that two processes run some code at the same time you can use the gem...
If you migrate a Rails application from Sprockets to Webpack(er), you can either transpile your CoffeeScript files to JavaScript...
CSP hat zum Ziel einen Browser-seitigen Mechanismus zu schaffen um einige Angriffe auf Webseiten zu verhindern, hauptsächlich XSS...
We're pleased to announce Ruby 3’s new language for type signatures, RBS. One of the long-stated goals...
GoodJob is a new background worker gem. It's compatible with ActiveJob. We're huge fans of Sidekiq for its...
These warnings are printed when the etc Gem is installed, while etc is also included in Ruby. Fix with:
"Open-source software (OSS) is great. Anyone can use virtually any open-source code in their projects." Well, it depends...
If you have a :string or :text field, you should pair it with a model validation that restricts its length...
Nokogiri is great. It will even fix invalid HTML for you, like a browser would (e.g. move block elements out...
FactoryBot allows to create traits from Enums since version 6.0.0 The automatic definition of traits for Active Record enum attributes...
Here is an ES5 object literal with two string properties and a function property: let user = { firstName: 'Max', lastName: 'Muster...
Let's say you want to merge the properties of two JavaScript objects: let a = { foo: 1, bar: 2 }
TL;DR PostgreSQL handles Rails 4+ text and string columns the same. Some libraries may still reflect on the column...
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...
If you render markdown from user input, an attacker might be able to use this to inject javascript code into...
An unresponsive service can be worse than a down one. It can tie up your entire system if not handled...
Speaker today is Henning Koch, Head of Development at makandra. This talk will be in German with English slides.
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...
We use the whenever gem to automatically update the crontab of the servers we deploy to. By default, whenever will...
This seems to be obvious, but you can expect Rake tasks to be called in RSpec. it 'deletes all Users...
In case you want to use pry with an older version of Ruby, you can try the following configurations.