Displaying 3 results from an estimated 3 matches for "auto_complete_responder_for_clients".
2006 May 17
5
text_field_with_auto_complete (newbie question)
I have the text_field_with_auto_complete woking on my user DB using
last_name. so looking for ''ivanoff'' works great, but I can''t find
''john''. Plus I like to have ''last_name, first_name'' show up in the
dropdown.
what I can''t figure out is how to concat first_name and last_name to
make a name and use that to look it.
working
2006 Mar 14
2
autocomplete using other models
...ext_field_with_auto_complete :placement, :clwholename, {} %>
if I put the same code into placements/new or placements/edit, I get a
No method ''clwholename'' error
The method is defined at the top of placements_controller.rb ...
def auto_complete_for_placement_clwholename
auto_complete_responder_for_clients params[:placement][:clwholename]
end
I have taken the entire code from the view file placements/find.rhtml
and pasted it into placements/new and still get the same error.
The only difference of any significance I can figure out is that the
methods are slightly different...
def find
@placem...
2006 Mar 12
0
undefined method and auto_complete
...2 lines in the ''find'' definition,
into the ''new'' definition and the result is the same.
and I do have the method in my controller that should works for ''find''
but not ''new''...
def auto_complete_for_placement_clwholename
auto_complete_responder_for_clients params[:placement][:clwholename]
end
Why would ''find'' work but not ''new'' ?
Craig