阅读背景:

如何获得可以批量分配的activerecord模型的属性列表

来源:互联网 

I would like to have a list of all attribute names that can be mass assigned. I need this for a custom form builder that will not add input fields by default that cannot be mass assigned. For example if I have a model like :I would like to have a list of all attribute na




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

分享到: