When your Rails application offers downloading a bunch of files as ZIP archive, you basically have two options:
By default, browsers will not wrap text at syllable boundaries. Text is wrapped at word boundaries only. This card explains...
...yourself mixing in the same ETag inputs in all actions, you may also use a controller-wide etag {...
class UsersController < ApplicationController etag { current_user } # Mix the current user into...
1. Saving files to a directory that is not shared between deploys or servers If you save your uploads to...
Im Kapitel 502 Eine Applikation als Container mit CI pipelines deployen hast du eine Applikation auf AWS deployed. In diesem...
config.before do # stuff that_fancy_method if is_a? Spec::Rails::Example::ControllerExampleGroup # more stuff end Find out if you are in a spec that knows about request...
To allow HTTP 304 responses, Rails offers the fresh_when method for controllers. The most common way is to pass...
If you need to implement newsletter sending, rapidmail is a solid option. Support is very fast, friendly and helpful, and...
When HTTP clients make an request they can define which response formats they can process. They do it by adding...
In diesem Kapitel lernst du die grundsätzlichen Konzepte von Kubernetes kennen. Hier geht es weniger um die API Objekte wie...
Du verstehst, was ein Pod ist und warum es Sinn macht, Container auf diese Weise zu gruppieren.
Debugging performance issues in your Rails app can be a tough challenge. To get more detailed insights consider using the...
To use a form model with devise, you can simply override #resource_class in a controller. A typical use case...
(Rails has a method ActiveRecord::Relation#merge that can merge ActiveRecord scopes. However, its behavior has never been clear, and...
While verifying doubles in RSpec is a good default, it is limited in the amount of methods it actually is...
Let's say we have posts with an attribute title that is mandatory. Our example feature request is to tag...
Angular 1.3+ has an alternative getter/setter pattern: You can bind ng-model to an accessor function. This is a function...
Or: How to avoid and refactor spaghetti code Please note that I tried to keep the examples small. The effects...
When your controller action raises an unhandled exception, Rails will look at the exception's class and choose an appropriate...
In dieser Card geht es um Netzwerke in Kubernetes. Schau noch einmal kurz auf Netzwerke zurück und schau dir die...
There are multiple ways to redirect URLs to a different URL in Rails, and they differ in small but important...
By activating strict_loading you force developers to address n+1 queries by preloading all associations used in the index...
In this card we will learn to write code that scales with a large number of database records. We will...
If you are using PDFKit / wkhtmltopdf, you might as well want to use custom fonts in your stylesheets. Usually this...