I''m doing some customized autocompleting on a text field in my view and in my auto_responder_for method, I have to use render :inline => "<%= auto_complete_result @users, ''name'' %>" to get it to work. My problem is, I want to show more than just name, how can I pass more parameters as opposed to just using ''name'' ? I tried "<%= auto_complete_result @users, ''collection => name, yahoo, ext'' %>" and render :partial, :collection=>[user.name <http://user.name>, user.yahoo] (as previously recommended) but to no avail (get element.className has no proerties). Any suggestion? _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Curtis, Have you looked at the customized auto complete demo? http://script.aculo.us/demos/ajax/autocompleter_customized Cody On 11/7/05, Curtis Edmond <curtis.edmond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m doing some customized autocompleting on a text field in my view and in > my auto_responder_for method, I have to use > > render :inline => "<%= auto_complete_result @users, ''name'' %>" > > to get it to work. My problem is, I want to show more than just name, how > can I pass more parameters as opposed to just using ''name'' ? > I tried "<%= auto_complete_result @users, ''collection => name, yahoo, ext'' > %>" > and > > render :partial, :collection=>[user.name, user.yahoo] > > (as previously recommended) > > but to no avail (get element.className has no proerties). Any suggestion? > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >
Cody, I have looked at and it was a great help but I get "element.className has no properties" errors when I try to render my results in a partial instead of just inline. _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails