简体   繁体   English

活动记录关联

[英]Active record associations

Is it possible to build two scaffolds independently and then add active record associations to them from scratch? 是否可以独立构建两个支架,然后从头开始向它们添加活动记录关联? Finding it difficult to find a solution on line that does it this way. 很难找到以这种方式实现的在线解决方案。

Thanks 谢谢

Scaffold simply "dumps" code into your project, you can/should edit it later. 脚手架只是将代码“转储”到您的项目中,您可以/以后应该对其进行编辑。 The templates scaffolding use, are not meant to create production apps, rather a jump start, specially for new developers. 模板脚手架的用途并不是为了创建生产应用程序,而是为新开发者专门设计的快速入门。

If you want to re-run scaffold you can do so, and the generator will ask you to override files or not. 如果您想重新运行脚手架,则可以这样做,并且生成器将要求您覆盖文件或不覆盖文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM