Just starting to work with Ruby/Rails - coming from a PHP background, I'm wondering how Active Record populates it's model objects. I've found that in PHP you have to hard code the model attributes but ActiveRecord does this automatically, does it just read through the database columns and add the attributes dynamically? The Rails book I'm reading is very good but doesn't seem to go into enough detail about the class structure and interfaces. Too much use of "automagically" and "knitted together", still a good book though.