there's a nice method called `dom_id` (http://api.rubyonrails.org/classes/ActionController/RecordIdentifier.html) - you should use it here