search for: auto_complete_for_vorgang_bez

Displaying 1 result from an estimated 1 matches for "auto_complete_for_vorgang_bez".

2007 Jan 11
2
text_field_with_auto_complete() - problem
...m and at last 5 empty-spaces. doeas anybody know why? and maybe how to solve this problem? my code is following: view: <td><%= text_field_with_auto_complete(:vorgang, :bez, {:class => ''auto_complete_schmal''}, {:skip_style => true} ) %></td> controller: def auto_complete_for_vorgang_bez() search = params[:vorgang][:bez].downcase # content of the text-field search = ''%'' + search + ''%'' # format string for request conditions = [''(LOWER(bez) LIKE ?)'', search] # sql @vorgaenge = Vorgang.find(:all, :conditions => c...