@raskchanky user.username is a method that gets their oc-id username, use that one. :) https://github.com/opscode/supermarket/blob/master/app/models/user.rb#L170