SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Non-Member
    Join Date
    Jul 2005
    Posts
    606
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Rails] Active Record Question

    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.

  2. #2
    SitePoint Wizard samsm's Avatar
    Join Date
    Nov 2001
    Location
    Atlanta, GA, USA
    Posts
    5,011
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Bob Carologees
    does it just read through the database columns and add the attributes dynamically?
    ding ding ding
    Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •