In order to understand exactly when the various model validators are
called, I installed ruby-debug and added “debugger” just before say
validates_numericality field of a model (say Product). I see that this
gets called (debugger break-point is reached) when I am just “Show”ing
the products (e.g. http://localhost:3000/products/4). It’s counter-
intuitive to me that just showing (not updating) a product should
result in a call to model validation.
Can someone please explain?