<p>Song Name:<%= text_field :songlists, :song_name, :id => "songlists_" + section.id.to_s + "_song_name" %></p>
<%= auto_complete_field "songlists_" + section.id.to_s + "_song_name", :method => :get,
:with => "'search=' + element.value", :url => formatted_songlists_path(:js) %>
<p>Artist:<%= text_field :songlists, :artist, :id => "songlists_" + section.id.to_s + "_artist" %></p>
<%= observe_field ("songlists_" + section.id.to_s + "_song_name", :update => "songlists_" + section.id.to_s + "_artist", :with => "element.value" , :url => { :controller => :songlists, :action => "get_artist" }) %>
J'ai l'auto-complet-champ fonctionne très bien, et le champ d'observer déclenche selon Firebug, mais je ne suis pas sûr comment mettre à jour le champ de texte de la observer sur le terrain.Rails passent ID de auto_complete champ observe_field
je soit besoin d'obtenir l'ID que les trouvailles auto-complet, ou même le texte saisi afin que je puisse passer dans l'url du champ d'observer.
Des idées?