Prev | Current Page 42 | Next

Kevin Marshall, Chad Pytel, and Jon Yurek

"Pro Active Record: Databases with Ruby and Rails"

We weren??™t required to do any additional
configuration or set up any special files or instructions. We just opened a text program and
typed a few short lines of code, and before you knew it, we had a fully functional Active Record
program.
In fact, the lack of configuration and taking advantage of the default assumptions
Active Record makes on our behalf is most likely why the previous example felt like magic.
Later in the book, we??™ll go into more detail about configuration and the default assumptions
Active Record makes, as well as how to override any of those assumptions whenever you need.
CHAPTER 1 ?–  INTRODUCING ACTIVE RECORD 3
Active Record Is One Part of the MVC Concept
Active Record is probably most famous as being an important part of the Ruby on Rails framework.
And if we had to pick one single thing about the Rails framework that we think makes it
successful, it would be the fact that it adheres to the MVC design. The concept of MVC is to
break code into logical groupings and programs into logical functional groupings.


Pages:
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54