# Rails autocomplete

**URL:** <https://www.ruby-forum.com/t/rails-autocomplete/148661>\
**Category:** Rails\
**Created:** [September 16, 2008, 12:45am UTC](https://www.ruby-forum.com/t/rails-autocomplete/148661 "2008-09-16T00:45:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrewdon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e9bcb4/32.png) [@andrewdon](https://www.ruby-forum.com/u/andrewdon)\
**Post date:** [September 16, 2008, 12:45am UTC](https://www.ruby-forum.com/t/rails-autocomplete/148661/1 "2008-09-16T00:45:02Z")

</div>

I have got the rails autocomplete plugin working fine, all works very  
well, but in my form I have this

\<%= text\_field\_with\_auto\_complete :memberid, :description, {:size =\> 15}  
%\>

So when I make a new item I enter a memberid, and it saves it to the  
database, no problems.  
But when I want to edit this item the memberid field is blank, so I  
can’t see what the memberid is.

Is there a way I can have the text appear in the filed, and so I can  
change it using autocomplete, like with a standard text\_field.

Andrew

---

<div class="post-metadata">

**Author:** ![andrewdon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e9bcb4/32.png) [@andrewdon](https://www.ruby-forum.com/u/andrewdon)\
**Post date:** [September 16, 2008, 2:45am UTC](https://www.ruby-forum.com/t/rails-autocomplete/148661/2 "2008-09-16T02:45:31Z")

</div>

On Sep 16, 6:34 am, Andrew D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Is there a way I can have the text appear in the filed, and so I can  
> change it using autocomplete, like with a standard text\_field.
> 
> Andrew

Are you sure it’s memberid and not member\_id?

---

<div class="post-metadata">

**Author:** ![andrewdon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e9bcb4/32.png) [@andrewdon](https://www.ruby-forum.com/u/andrewdon)\
**Post date:** [September 16, 2008, 9:11am UTC](https://www.ruby-forum.com/t/rails-autocomplete/148661/3 "2008-09-16T09:11:52Z")

</div>

Erol F. wrote:

> > can’t see what the memberid is.
> > 
> > Is there a way I can have the text appear in the filed, and so I can  
> > change it using autocomplete, like with a standard text\_field.
> > 
> > Andrew
> 
> Are you sure it’s memberid and not member\_id?

Yes, does this mean that I should get the memberid appear in the field  
when I edit an item.
