crowdint/rails3-jquery-autocomplete — Issue #112: MissingAttributeError for display_value
Author: dtrce
Created: 2011-10-31 13:06:14+00:00
State: open

I'm using the rails3-jquery-autocomplete gem to autocomplete the name of a user, search attribute is lastname but I want to display full name as the display value. Here's what I have in my controller

```autocomplete :customer, :lastname, :display_value => :display_autocomplete```

Customer Model

```def display_autocomplete
self.firstname + ' ' + self.lastname
end```

Error:

ActiveModel::MissingAttributeError (missing attribute: firstname):