>
>
> There seems to be nothing wrong in your code.  All I can think of that 
> causes this is if another dom element
> has an id of search-markets.  Can you confirm that your view only has one 
> dom with this id?
>

Yes, I confirm. I modified the code to ensure no interference...

$('#search-markets').autocomplete ->
source: "/searches" 

For what it's worth, the coffeescript compiles to this...

    $('#search-markets').autocomplete(function() { return { source: 
"/searches" }; });

I see other approaches using more of the autocompletion settings, including 
callbacks, but I wonder why my simple attempt fails.

Lille

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/jzbiAgt8o7UJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to