Rails ActiveAdmin “f.inputs, except: [:belong_to field]” doesn't work -
i wanted use except command prevent foreign key field (belong_to) given in link:activeadmin "f.inputs, except: [:field]" doesn't work this:
f.inputs, :except => [:featured, :something_for_admin_only] it works other fields except foreign key, how can foreign key fields?
passing string instead of symbol worked me:
f.inputs except: ['user', :event_name]
Comments
Post a Comment