# Help - auto complete

**URL:** <https://www.ruby-forum.com/t/help-auto-complete/174127>\
**Category:** Rails\
**Created:** [August 21, 2009, 4:56am UTC](https://www.ruby-forum.com/t/help-auto-complete/174127 "2009-08-21T04:56:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![newb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/2acd7d/32.png) [@newb](https://www.ruby-forum.com/u/newb)\
**Post date:** [August 21, 2009, 4:56am UTC](https://www.ruby-forum.com/t/help-auto-complete/174127/1 "2009-08-21T04:56:04Z")

</div>

hi  
i am using rails auto complete plugin.  
I’m autocompleting over UserInfo Firstname as so  
auto\_complete\_for :user\_info, :first\_name, :limit =\> 30  
everything works fine.  
but I want to filter out the first name given by auto\_completer to those  
which has conditions  
:conditions =\> [“login !=?”,‘admin’])  
I tried overriding the call to  
auto\_complete\_for :user\_info, :first\_name, :limit =\> 30, :conditions =\>  
[“login !=?”,‘admin’])  
What is overriding the :conditions within the plugin so now,  
it doesn’t do auto\_complete anymore but simply listing all first\_name  
except the admin’s first\_name.  
Any Solutions to my Problem
