Rails: Scaffold to automatically do one-to-many relationship

前端 未结 5 1554
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-09 10:55

Not sure if I\'m reading this right, but it seems like Scaffold will not do a one-to-many relationship in its entirety. For instance, if I create messages with

5条回答
  •  -上瘾入骨i
    2020-12-09 11:43

    Scaffolds are scaffolds. When you want anything other than a CRUD on a table (which is what a scaffold is/does), you need to alter the generated scaffolding code, or roll your own.

提交回复
热议问题