small medium large xlarge

Generic-user-small
22 Apr 2009, 02:56
Kedar Mhaswade (21 posts)

Maybe there are too many questions in my mind and I should just hold them off, but should I make attempts to understand the “flow” of a rails web application when I am around page 80 in AWDwR3?

For example, in order to understand exactly when the various validators are called, I installed ruby-debug and added “debugger” just before validates_numericality_of on page 81 in the Product model. I see that this gets called when I am just “Show”ing the product (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?

-Kedar

Generic-user-small
06 May 2009, 14:44
James West (104 posts)

I think this is a browser issue. I seem to have validaion methods being called for a show method when viewing in i.e.6 but this does not happen when using firefox 3.

You must be logged in to comment