---
title: "Polymorphic Associations in Rails"
author: "huangyiiiiii"
date: "2007-05-30T04:28:47Z"
tags: []
slug: "polymorphic-associations-in-rails"
draft: false
lastmod: "2007-05-30T04:28:47Z"
id: 84845
url: "https://codeplayer.iteye.com/blog/84845"
---

[Polymorphic Associations with SQLAlchemy](http://techspot.zzzeek.org/?p=13 "Permanent Link to Polymorphic Associations with SQLAlchemy")  
[SQLAlchemy 老大](http://techspot.zzzeek.org/)展示怎么用 [sqlalchemy](http://www.sqlalchemy.org) 实现 rails 的 [Polymorphic Associations](http://wiki.rubyonrails.com/rails/pages/UnderstandingPolymorphicAssociations)  
顺便看了下 Rails 所谓[Polymorphic Associations](http://wiki.rubyonrails.com/rails/pages/UnderstandingPolymorphicAssociations) 的介绍，才发现其实就是我很早就[介绍过](http://codeplayer.blogspot.com/2006/09/django-contribs-contenttype.html)的 django 的 content-type app 所干的事情，app 就是插件的意思。