When an object is created / updated, various callbacks are executed in this order: before_validation after_validation before_save
Bundler so far ignored the version specified under BUNDLED_WITH in the Gemfile.lock. This had two annoying consequences:
TLDR if you define a equality method for a class you must also implement def hash. Ruby has a lot...
Timecop is a great gem to set the current time in tests. However, it is easy to introduce flakyness to...
We usually rely on VCR and WebMock to prevent any real network connection when running our unit tests.
Du möchtest deinen AWS Account auf bestimmte Fehlkonfigurationen hin überwachen. Dafür wirst du AWS Config einsetzen. Über gebrochene AWS Config...
tl;dr git checkout is the swiss army of git commands. If you prefer a semantically more meaningful command for...
tl;dr In RubyMine you can use find and replace with capture groups (.*?) and backreferences $1 (if you have several...
Ruby's standard library includes a class for creating temporary directories. Similar to Tempfile it creates a unique directory name...
A memory leak is an unintentional, uncontrolled, and unending increase in memory usage. No matter how small, eventually, a leak...
If you need to convert an SVG source to PS or EPS, the most common suggestion on the interwebs is...
Greg Molnar has written a neat article about creating a single-file Rails app. This is not meant for production...
When your Rails application offers downloading a bunch of files as ZIP archive, you basically have two options:
The linked content includes a few design patterns implemented with Ruby on Rails. What is the card indented to achieve...
These are the results of the "personal tech stack survey". I've included only the most popular mentions, maybe it...
This should be fixed in the latest LTS-branches of our mysql2 fork, 0.2.x-lts and 0.3.x-lts...
There's a simple way in bolt to run commands from a file without caring about BASH escaping: # /home/user/foo.sh
While working on a Rails application, your code base will grow a collection of different file types including: Ruby (business...
Ruby includes many standard gems that are bundled into the Ruby installation. Here is an example for the gem strscan...
Bei Automatisierungsaufgaben kannst du dich nicht immer auf fertige Tools verlassen. Häufig musst du eine Schnittstelle zu einem bestehenden System...
Siehe Gems, bundler, rbenv [1d] im Developer Curriculum.
Based on the Ruby Basics Card in the developer Curriculum Ruby is the programming language we use on the backend...
Somewhat regularly, you will need to filter a list down to some items and then map them to another value...
Testing file download links in an end-to-end test can be painful, especially with Selenium. The attached download_helpers.rb provides...