We covered the details of overriding each of the configuration settings in Chapter 7.
Finder methods: Finder methods are probably the most used methods in Active Record
programs, so exploring these methods is highly recommended and educational. Of particular
interest is the use of connection.select_all for the find_by_sql method (we??™ll come
back to this point later when we review the private and protected methods of this file). We
covered the details of the find methods in numerous places throughout this book.
Other CRUD methods: The create, update, and delete methods have also been covered in
numerous spots throughout this book. Again, the interesting thing to note about the update
and delete methods is the fact that they all eventually boil down to connection.update or
connection.delete methods.
Guessing table names and keys: Here, you see just how Active Record attempts to guess
your table names and primary and foreign keys based on your Active Record class names.
This guessing relies heavily on the Active Support Inflector class.
Pages:
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434