sample vt-direct implementation on Rails