Search code examples
ruby-on-railsactiveadminformtastic

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?


Solution

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

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