SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Threaded View

  1. #1
    SitePoint Zealot
    Join Date
    May 2001
    0 Post(s)
    0 Thread(s)

    confused about relationships

    How would I express the following with relationships:
    I have an "articles" table, an "authors" table, a "collections" table, and an "articles_collections" table.
    An "article" has a reference to an "author_id".

    Here is what I have, but not sure it's correct:

    PHP Code:
      class Collection ActiveRecord::Base
    class Author ActiveRecord::Base
    class Article ActiveRecord::Base
    Thanks for any help or suggestions.
    Last edited by MikeShank; Jul 1, 2006 at 18:57.


Posting Permissions

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