Prev | Current Page 7 | Next

Kevin Marshall, Chad Pytel, and Jon Yurek

"Pro Active Record: Databases with Ruby and Rails"

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Building Your First Active Record Program . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Your First Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Active Record Assumptions and Conventions. . . . . . . . . . . . . . . . . . . 19
Overriding the Assumptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Retrieving Objects from the Database . . . . . . . . . . . . . . . . . . . . . . . . . 21
Exploring Active Record Relationships . . . . . . . . . . . . . . . . . . . . . . . . . 22
Them??™s the Basics! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
vii
?– CHAPTER 2 Active Record and SQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Creating a Record . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Reading a Record . . . . . . . . . . .


Pages:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25