reedlaw/rails3-jquery-autocomplete — comment on commit fd8c6b2bdf80aa6502f5cf1cb464d89916d242b1
File: lib/rails3-jquery-autocomplete/helpers.rb line 114
By gorn:

for some reason primary_key is sometimes nil, so in this case it should default to id