Galera,quero pegar o valor selecionado de uma tag collection_select num elemento button_to_remote,algo do tipo:
collection_select("xxxx", "yyyyy", @aaa, :inf_codigo,:descricao,{:include_blank => true},{:style=>'width:200px'
}
)%>
<%= button_to_remote "Add", :url => {:action => 'testa',:parametro=>'valor_do_collection_select'}%>
Como fazer isso?