When you need to store structured data (like Ruby hashes) in a single database column with ActiveRecord, a simple way...
Authentication is a special part of web applications. On the one hand, it usually is a crucial security mechanism restrict...
RSpec let's you chain a matcher with .or. The expectation will then pass if at least one matcher matches...
Browsers' printing methods usually don't print background colors. In most cases this is the desired behavior, because you don...
In medium-sized to large Rails applications, asset compilation can take several minutes. In order to speed up deployment, asset...
There is a kinda secret, yet well supported CSS feature called currentColor. It's like a special CSS variable that...
Create a user without password (recommended) Replace newuser with your desired username: mysql -uroot -p CREATE USER 'newuser'@'localhost' IDENTIFIED...
A matcher is a function that returns an object with a compare key. Usually it is registered with beforeEach...
TL;DR Append your locale keys with _html to have them marked as html_safe and translate them with = t...
CoffeeScript and JavaScript (ECMAScript) both have operators in and of. Each language use them for more than one purpose. There...
When your application is running on a multi-server setup, application logs are stored per server (unless you choose a...
By default, Capistrano truncates server responses and places an ellipsis at the end of lines that are longer than your...
When your JavaScript bundle is so massive that you cannot load it all up front, I would recommend to load...
If your rails application is unable to send mails, it might be useful to debug your settings using the rails...
For outputting a given String in HTML, you mostly want to replace line breaks with or tags.
When you have a large PG database, you may want to find out which tables are consuming the most disk...
Webpacker uses Babel and Webpack to transpile modern JavaScript down to EcmaScript 5. Depending on what browser a project needs...
Sometimes, the IRB prints a warning during boot: irb: warn: can't alias source from irb_source. Explanation
Touch devices have their own set of events like touchstart or touchmove. Because mobile browsers should also work with with...
CarrierWave comes with some RSpec matchers which will make testing more comfortable. Let's say you have an Uploader like...
Recent Bundler (1.16.1) started complaining about missing dependencies in the Gemfile. This is due to a stricter handling of specifications...
Lets say we have a user with a contract whereas contract is a mounted carrierwave file. Now we want to...
This might be a known issue with Rubygems 2.5.1. This will help: gem update --system
CSS Flexbox has become extremely popular amongst front-end developers the last couple of years. This isn’t surprising, as...