# Using ruby array in Ajax call

**URL:** <https://www.ruby-forum.com/t/using-ruby-array-in-ajax-call/118624>\
**Category:** Rails\
**Created:** [October 29, 2007, 4:00pm UTC](https://www.ruby-forum.com/t/using-ruby-array-in-ajax-call/118624 "2007-10-29T16:00:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hustler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a8b319/32.png) [@hustler](https://www.ruby-forum.com/u/hustler)\
**Post date:** [October 29, 2007, 4:00pm UTC](https://www.ruby-forum.com/t/using-ruby-array-in-ajax-call/118624/1 "2007-10-29T16:00:56Z")

</div>

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

Add to search
