Displaying 1 result from an estimated 1 matches for "auto_complete_schmal".
2007 Jan 11
2
text_field_with_auto_complete() - problem
...nput=text in a way that is unacceptable.
the first 6 characzers are empty-spaces, than the item 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 = ['...