Im trying to pass a ruby array (@search_params) to the server but the returned array is always empty even though it contains data in the view. Can someone please tell me what im doing wrong <button id="full_competence_button" onClick="new Ajax.Request(''/report/update_competence_search/'',{asynchronous:true, evalScripts:true, parameters:''id=''+ full_competence_list.value +''&'' +''command=add_param''+ ''&'' +''competence='' + ''<%= @search_params %>''})">Add to search</button> -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---