Given you have an array column like this: create_table "users", force: :cascade do |t| t.integer "movie_ids", default: [], array...
View specs are a powerful tool to test several rendering paths by their cases instead of using a more costing...
The linked rbenv plugin rbenv-each is very helpful to keep QoL gems up to date that are not part...
You don't want sensitive user data in your logs. Background Rails per default filters sensitive data like...
Disclaimer This card is a collection of guides and things to have in mind when upgrading to a specific version...
Both knapsack and parallel_tests have the option to split groups by historic execution time. The required logs for this...
For my computer science bachelor's thesis I programmed and evaluated a CLI Test Case Prioritization (TCP) tool for makandra...
The git doc states on the difference of these two commands: git-restore[1] is about restoring files in the...
There are multiple ways to redirect URLs to a different URL in Rails, and they differ in small but important...
Rails' url_for is useful for generating routes from a Hash, but can lead to an open redirect vulnerability.
Rails' Strong Parameters enable you to allow only specific values from request params to e.g. avoid mass assignment.
An introduction to mangling When you minify ("compress", "optimize") your JavaScript for production, the names of your functions and variables...
Rails offers several methods to manage three types of different cookies along with a session storage for cookies. These...
Intel CPUs receive updates, including security relevant upgrades, through 2 channels: Firmware/UEFI BIOS updates can also update the microcode in...
When you write your next CarrierWave uploader, consider processing your images with libvips instead of ImageMagick. Reasons for libvips
It most cases it's not necessary to add a version constraint next to your packages in the package.json. Since...
It most cases it's not necessary to add a version constraint next to your gems in the Gemfile. Since...
Debugging your integration tests, that run a headless Chrome inside a docker image, is tricky. In many cases you can...
When you allow file uploads in your app, a user might upload content that hurts other users. Our primary concern...
Rack::SteadyETag was a Rack middleware that generates the same default ETag for responses that only differ in XOR-masked...
Every Rails response has a default ETag header. In theory this would enable caching for multiple requests to the same...
If your irb or rails console keeps randomly crashing and you can't figure out why then you can try...
In Ruby on Rails ActiveRecord::Relation#merge overwrites existing conditions on the same column. This may cause the relation to...
If you're using a Redis cache in Rails (e.g. :redis_cache_store), it's possible to configure additional parameters...