ActiveRecord: How to get all attributes of a model that can be mass-assigned?

前端 未结 0 321
不知归路
不知归路 2020-12-23 04:45

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

相关标签:
回答
  • 消灭零回复
提交回复
热议问题