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

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -