阅读背景:

如何在需要引用调用模型的相关模型中检索数据

来源:互联网 

I have a controller and two models, a user and a store. A user has_many stores. Inside stores I have a method get_items which lists items. get_items itself needs a reference to the user. What I have done now is the followingI have a controller and two models, a user and




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

分享到: