app/controllers/accounts_controller.rb
def account_params
      attribute_names = LdapAttribute.attribute_names.map{|n| n.underscore.to_sym}
      account = params.require(:account).permit(*attribute_names)
      account
    end
# Never trust parameters from the scary internet, only allow the white list through.
Never trust parameters from the scary internet, only allow the white list through.
Never trust parameters from the scary internet only allow the white list through .
def account_params
      attribute_names = LdapAttribute.attribute_names.map{|n| n.underscore.to_sym}
      account = params.require(:account).permit(*attribute_names)
      account
    end
def account_params attribute_names = LdapAttribute . attribute_names . map { | n | n . underscore . to_sym } account = params . require ( :account ) . permit ( * attribute_names ) account end
Never trust parameters from the scary internet, only allow the white list through.
Never trust parameters from the scary internet only allow the white list through .