ActiveAdmin “f.inputs, except: [:field]” doesn't work

时间秒杀一切 提交于 2019-12-10 18:30:03

问题


Formtastic has a great tool to prevent certain fields on a model showing up, used as so:

f.inputs, :except => [:featured, :something_for_admin_only]

ActiveAdmin claims to be derived from Formtastic, but it seems that ":except" doesn't work.

Any idea why?


回答1:


Try to remove comma (,) after f.inputs:

f.inputs :except => [:featured, :something_for_admin_only]


来源:https://stackoverflow.com/questions/28943514/activeadmin-f-inputs-except-field-doesnt-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!