阅读背景:

Rails 5,更新控制器中的特定表单字段

来源:互联网 

I have admin account to edit some posts from other users, mostly typo stuff. When I use the controller below, it updates user_id since I get that from current_user (admin in my case), so it updates the post with my account, and post looks like submitted by me. it overwrites actual user id. I have admin account to edit some posts from ot




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

分享到: