Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 869
Will Taylor Avatar asked May 02 '26 03:05

Will Taylor


1 Answers

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

f.inputs :except => [:featured, :something_for_admin_only]
like image 97
Maxim Avatar answered May 05 '26 00:05

Maxim