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...
Browsers' printing methods usually don't print background colors. In most cases this is the desired behavior, because you don...
Just like Ruby Gems tag their version releases to the corresponding Git commit, it can be helpful to track production...
In medium-sized to large Rails applications, asset compilation can take several minutes. In order to speed up deployment, asset...
A matcher is a function that returns an object with a compare key. Usually it is registered with beforeEach...
Using the JS fullscreen API is painful because all browers use different methods and events and you need to use...
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
CarrierWave comes with some RSpec matchers which will make testing more comfortable. Let's say you have an Uploader like...
Lets say we have a user with a contract whereas contract is a mounted carrierwave file. Now we want to...
When you find yourself constantly ignoring a RubyMine warning, you can simple disable that warning and de-clutter your editor...
MySQL and MariaDB have an SQL mode setting which changes how MySQL behaves. The SQL mode value is comprised of...
The httpclient gem comes with a custom SSL cert store. While an customizable, application-level cert store is great when...
You need to update a lof gems. Make sure you don't have any version constraints in your...
Your default postgres user is named like your linux user. That default user has limited access privileges, which can cause...
Trying to open a vnc window with geordi geordi vnc ended up with this error: > VNC viewer could not be...
Understanding your type of cronjob Some cronjobs must only run on a single server. E.g. when you run nightly batch...
When installing gems, a lot of time is spent building locally installed documentation that you probably never use.
Katapult 0.3.0 brings Rails 5 and Ruby 2.5 support with a new design, plus a ton of smaller features, fixes...
Say you want to move a git repository from one remote (perhaps Github) to another (perhaps Gitlab).
ActiveSupport::Dependencies takes care of auto-loading any classes in development. This is usually useful, but when you run into...
TL;DR Use user.update!(remove_avatar: true) to delete attachments outside of forms. This will have the same behavior as...
Situation: You want to write a spec for a function inside an Angular service. This function at some point makes...