Rails is passing blank strings into the related_ methods

this probably just needs rewriting