# Active record basics

**URL:** <https://www.ruby-forum.com/t/active-record-basics/56296>\
**Category:** Rails\
**Created:** [March 30, 2006, 12:38am UTC](https://www.ruby-forum.com/t/active-record-basics/56296 "2006-03-30T00:38:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjkiesch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc79bd/32.png) [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Post date:** [March 30, 2006, 12:38am UTC](https://www.ruby-forum.com/t/active-record-basics/56296/1 "2006-03-30T00:38:09Z")

</div>

i am reading Agile Web D. with Rails and i have some noob  
questions about it. i’ve gone through the depot application with hardly  
any problems and now i’m reading through the chapters that explain some  
of the deeper facets of rails.

on chapter 14 it starts talking about active record. all the sudden,  
it’s showing examples of how to connect to the database. other than  
setting up the database.yml file, i never had to do that before. is it  
just showing how to do it for the sake of doing it, and the connection  
code is taken care of somewhere else when you generate your rails apps,  
or is this something that i’m going to have to do on occasion? it also  
has code before the connection that require different gems in the  
application. i never had to require those when working through the depot  
application though.

on top of that, it also starts talking about this library called pp. i  
have no idea what it does other than displaying data from the database.  
but we displayed it from the database in the depot app… again, why do  
i need this? i just wish there was a little more documentation for  
someone like me. i’m trying to digest the book slowly so i can  
understand as much as i can.

maybe my answers are staring me right back in the face, but i don’t see  
them and i am a little confused. sorry for the noob questions, but  
thanks in advance for your help

josh

---

<div class="post-metadata">

**Author:** ![jjkiesch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc79bd/32.png) [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Post date:** [March 30, 2006, 1:11am UTC](https://www.ruby-forum.com/t/active-record-basics/56296/2 "2006-03-30T01:11:49Z")

</div>

after further reading, it does say that the prefered way of data  
connection is through the database.yml file. so that answers one  
question. i still don’t understand the pp stuff.

---

<div class="post-metadata">

**Author:** ![jjkiesch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc79bd/32.png) [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Post date:** [March 30, 2006, 1:58am UTC](https://www.ruby-forum.com/t/active-record-basics/56296/3 "2006-03-30T01:58:41Z")

</div>

[http://www.ruby-doc.org/stdlib/libdoc/pp/rdoc/files/pp\_rb.html](http://www.ruby-doc.org/stdlib/libdoc/pp/rdoc/files/pp_rb.html)
