I need to send a class name with my observe_field call so I can update the correct text_field (there are multiples on the same page)
<%= observe_field "songlists_" + section.id.to_s + "_song_name",
:frequency => 0.5, :url => { :controller => :songlists, :action =>
:get_artist }, :update => text_class ,
:with => "'song_name=' +encodeURIComponent(value)+'&songlists_classname='+ xxxxxxxx" %>
Is there a way of inserting a ruby variable into the :with statement where 'xxxxxxxx' is displayed above?
Or any other way?