convert value to string before passing to erb template