阅读背景:

如何验证关联是否有效

来源:互联网 

I have a model called Profile which is belong_to User, so there is 'user_id' for the database to keep track of. In the local admin interface I made for this model I wanted to provide the flexibility of allowing admin to enter an username to a field in the editing screen, and then resolve that to user_id for saving in controller.I have a model called Profile which is belong_t




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: