It also helps us to avoid the confusion that our brains seem to add with pluralization. That
is, when pluralization is turned on, we often find ourselves having to talk (out loud, to the dismay
of those around us) through the relationship a bit more. We have to say things like, ???We
want to get the account_id of the accounts table through an instance of my Account object.???
Then we can type out the actual code to accomplish it. Therefore, we also find ourselves setting
this attribute to false in many of the Active Record systems we start from scratch and
avoiding pluralization confusion all together!
colorize_logging
This is an attribute, which you set directly on the ActiveRecord::Base class, that tells your logger
whether or not to use ANSI codes to colorize your log. Colorizing your log can often help
you quickly find things as you review them, but not all programs you use to review your logs
may display these colors. When the colors cannot be properly displayed, the extra ANSI color
code tends to make the log much harder to read.
Pages:
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381