after talking with @abenari , I'm building @host with params['host'] serialized from the form, rather than retrieving from the db. If  params['host'] was not sent by the form, then @host is reteived from the db