attempt to borrow erb rendering from rails