Rails路由复合主键

时间:2012-11-09 15:54:39

标签: ruby-on-rails

所以我有一个模型,其中包含3个整数作为主键。

property :id, Integer, :key => true
property :id2, Integer, :key => true
property :id3, Integer, :key => true

我需要创建一个路径,当用http://myserver.com/item/$id/$id2/$id3查询时,它将返回数据库中的该partiular项。

0 个答案:

没有答案
相关问题