using Broker.find(@policy.broker_id).id  instead of Broker.find(@policy.broker_id)
using Broker.find(@policy.broker_id).id  instead of Broker.find(@policy.broker_id)

dchbx/gluedb,dchbx/gluedb,dchbx/gluedb,dchbx/gluedb