On 3 Jan 2006, at 20:00, rails-request@lists.rubyonrails.org wrote: >def auto_complete_for_dealing_which_store > search = params[:dealing][:which_store] > @stores = Dealing.search(search) unless search.blank? > render :partial => ''live_search'' >end > >and my entire partial: ><ul class="autocomplete_list"> ><% for deal in @dealings.to_a %> ><li class="autocomplete_item"><%= link deal.which_store, deal %></li> ><% end %> ></ul> It looks like you''re assigning to a variable @stores, but trying to read from a variable called @dealings. I''m not familiar with autocomplete, but that looks like it might be a prob ? A. -- mailto:alancfrancis@gmail.com http://blog.alancfrancis.com/
On 3 Jan 2006, at 20:00, rails-request@lists.rubyonrails.org wrote: >def auto_complete_for_dealing_which_store > search = params[:dealing][:which_store] > @stores = Dealing.search(search) unless search.blank? > render :partial => ''live_search'' >end > >and my entire partial: ><ul class="autocomplete_list"> ><% for deal in @dealings.to_a %> ><li class="autocomplete_item"><%= link deal.which_store, deal %></li> ><% end %> ></ul> It looks like you''re assigning to a variable @stores, but trying to read from a variable called @dealings. I''m not familiar with autocomplete, but that looks like it might be a prob ? A. -- mailto:alancfrancis@gmail.com http://blog.alancfrancis.com/