As of this writing, there are not a lot of great resources out there to show you how to replace the last occurrence of a pattern in any language. Here I’ll show you the Ruby version, but for the most part you can use a similar technique in other languages. We’ll begin by solving the […]
While it is definitely good to have a slim controller for sake of code reusability, readability, and testing, it is also good to have a skinny model (for the exact same reasons). In fact, its just good to have a skinny everything.