What about using ``to_param`` instead? http://api.rubyonrails.org/classes/ActiveRecord/Integration.html#method-i-to_param