my thought was, that it is done this way so there is less code duplication, but then I discovered the
To begin with, just see the js console network tab, to know what is captured on the frontend and passed to the server when a post is created. Which means that all of the data sent to the rails api are processed further by rails. Then in the posts table, you will see raw and cooked columns which tells you the unprocessed and processed form of the post.
Okay, thanks for your answer. I think I will just explore this piece by piece. I think maybe this “reason about it from first principles”-approach that I took does not work because this grew out of historical reasons.