Auto_complete_for - return id

I’m using an auto_complete_for. Is there an easy way to return the id of
the item the user selects from the list?

For example - I have an auto complete drop down that has 3 items in it.

phones
computers
monitors

when the user types in “p” it shows “phones” in the auto complete. When
I click enter I want to view phones so I need to pass the id to the
appropriate action. How do I pass the id using auto complete? Is there
a better way to do this?

I basically want it to work similar to the typical drop down but I also
want auto complete.

On Jun 27, 2007, at 7:43 PM, David M. wrote:

want auto complete.
That’s provided by model_auto_completer:

http://agilewebdevelopment.com/plugins/model_auto_completer

– fxn

Thank you.

I’ve actually never installed a plugin and have been having trouble
connecting to the rubyforge repository through creating a new repository
location through radrails. Do you have any suggestions?

thanks…I get this error:

svn: Can’t connect to host ‘rubyforge.org’: No connection could be made
because
the target machine actively refused it.

is there some sort of log in process?

On Jun 28, 2007, at 4:42 PM, David M. wrote:

thanks…I get this error:

svn: Can’t connect to host ‘rubyforge.org’: No connection could be
made
because
the target machine actively refused it.

is there some sort of log in process?

You could try again with -v:

script/plugin -v install URL

– fxn

On Jun 27, 2007, at 9:54 PM, David M. wrote:

I’ve actually never installed a plugin and have been having trouble
connecting to the rubyforge repository through creating a new
repository
location through radrails. Do you have any suggestions?

The usual idiom is to cd into the root directory of your Rails
application and execute this command:

script/plugin install svn://rubyforge.org/var/svn/model-ac/trunk/
vendor/plugins/model_auto_completer

Please note that is a single line, in case the mail gets wrapped.

– fxn