I was doing some work with ActiveRecord transactions and I noticed a strange behavior where some of my after_commit callbacks (yes, unfortunately I had to use callbacks) were not being called.
This is the third of a series of six articles on how to improve the way you interact with your DBMS, especially in the context of Rails development. The previous one was entitled “Meet Triggers, SQL’s Callbacks”. Enjoy!
This is the second of a series of six articles on how to improve the way you interact with your DBMS, especially in the context of Rails development. The previous one was entitled “Notes on Sqlphobia and Database…
First things first. The why. I’ve got started with coding in March 2015 and Rails in September 2015 to be able to code this app: faskyn. Prior to that I didn’t really know what coding is about. I’ve got a strong math background and…
There is a tendency in the Rails community to avoid SQL like the plague. We don’t want to write SQL, we don’t want to read SQL and, above all, we don’t want to understand SQL. That’s what…
Recently, I needed to validate some attributes in a model that were divisible by 0.5. My initial approach was to write a method that would perform the validations and run it with validate:
At Gigster, we are big fans of DRY. That is why we are costantly developing and maintaining a…
Add caching or your Rails app in just a few minutes!
For me, like many others, Rails has a very “magical” feel. You don’t really even need to know Ruby to…