auto_complete_for not working

3 views
Skip to first unread message

P L Patodia

unread,
Aug 19, 2006, 10:06:32 PM8/19/06
to rubyonra...@googlegroups.com
I have around one million customers in postgre table.

I want a select box in my form when I type characters (few),
the first 10 records should be displayed.

When I use auto_complete_for in controller, I get the following
error message:

undefined method `auto_complete_for' for #<AdminController:0x37a3318>

--
Posted via http://www.ruby-forum.com/.

jcb...@gmail.com

unread,
Aug 19, 2006, 11:49:48 PM8/19/06
to Ruby on Rails: Talk
Check out the source at http://demo.script.aculo.us/ajax/autocompleter,
it gives a pretty good example. Also, make sure your fields don't have
reserved names. I know I had a problem with a field named "description"
so I assume that was a reserved word. I changed it to desc and had no
problem.

Reply all
Reply to author
Forward
0 new messages