# Getting aditional data from auto\_complete

**URL:** <https://www.ruby-forum.com/t/getting-aditional-data-from-auto-complete/91119>\
**Category:** Rails\
**Created:** [April 4, 2007, 9:33pm UTC](https://www.ruby-forum.com/t/getting-aditional-data-from-auto-complete/91119 "2007-04-04T21:33:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fipa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/9e8a1a/32.png) [@fipa](https://www.ruby-forum.com/u/fipa)\
**Post date:** [April 4, 2007, 9:33pm UTC](https://www.ruby-forum.com/t/getting-aditional-data-from-auto-complete/91119/1 "2007-04-04T21:33:56Z")

</div>

Hi again.  
I’m using auto\_complete to search people in my DB. I have one input  
field with auto\_complete that search and shows first\_name and last\_name.  
So, showing first and last name is good for the view but in my  
controller what I need to know is the id.

So what I need is auto completing first and last name but after that  
processing just the id.

thx

---

<div class="post-metadata">

**Author:** ![fipa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/9e8a1a/32.png) [@fipa](https://www.ruby-forum.com/u/fipa)\
**Post date:** [April 4, 2007, 10:06pm UTC](https://www.ruby-forum.com/t/getting-aditional-data-from-auto-complete/91119/2 "2007-04-04T22:06:22Z")

</div>

I already found the answer in  
[http://ricardo.pacheco.name/blog/articles/2006/09](http://ricardo.pacheco.name/blog/articles/2006/09)
