阅读背景:

Ruby on Rails:在控制器中设置字段

来源:互联网 

I have the following code to create a new Player. Player.location is NOT NULL in the database but I do not want to show it in the new player form. How can I set the Player.location attribute (say they're all set to "UK" for now) in here?I have the following code to create a new Playe




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

分享到: