阅读背景:

通过控制器将当前用户id保存到db是否会在ruby on rails中造成错误的选择?

来源:互联网 

Is line number 3 in my create action considered bad practice? Because a user has many photo_albums and an album needs to be linked to the right user I basically grab the id from current_user and store it in the user_id column of my photo_albums database table.Is line number 3 in my create action considered




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

分享到: