阅读背景:

Ruby on Rails:照片的新控制器?

来源:互联网 

I have a one-to-many relationship between my Profile class and Photos class. Profile holds the user's information and photos holds the user's pictures. Currently, the "Upload photo" link shows at the bottom of the profile view. I want to have the link show up on a separate view instead of cramming everything on the same form. Should I just create a new view called profile_photo.html.erb to show this link or should I create a new controller and model that associates with the photos? What's the recommended practice?I have a one-to-many relationship between my Pr




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

分享到: