Rails controllers have callbacks that can be useful when we want to execute a particular piece of code before or after other methods have been invoked. However, there is no Rails built-in after_response_sent callback that could be used to invoke a method after we have rendered the response to the user, either via an HTML or JSON response. Continue reading
Tag: job
On February 26, an image of a dress showed at a Tumblr page, for which people were arguing whether it has a black and a blue color, or a white and a yellow color. A lot of people started to give their opinion based on their look and say which type of color they saw, and found it a bit weird that their opinion was not the same as the opinion of other people. I was curious to see this image and, because I am a bit biased, I tend to view things from different points of view that are mostly related with extracting the benefits from them. As a resultĀ I decided to write this article about the lessons that we can get from this dress that got a lot of attention recently. Continue reading