# Action with multiple parameters

**URL:** <https://www.ruby-forum.com/t/action-with-multiple-parameters/128636>\
**Category:** Rails\
**Created:** [February 9, 2008, 6:19pm UTC](https://www.ruby-forum.com/t/action-with-multiple-parameters/128636 "2008-02-09T18:19:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![martin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/73ab20/32.png) [@martin](https://www.ruby-forum.com/u/martin)\
**Post date:** [February 9, 2008, 6:19pm UTC](https://www.ruby-forum.com/t/action-with-multiple-parameters/128636/1 "2008-02-09T18:19:31Z")

</div>

Hello all!

I would like to delete multiple records on a single call. Something  
similar to the following line.

new Ajax.Request(’/myctrl/delete/1,2,3,4,5’, {asynchronous:true,  
evalScripts:true});

However, I don’t know how to pass multiple parameters to one action  
(in a AJAX call). Is it possible? How could I do that?

In other words, I want the Delete action to take multiple parameters.  
Something like that : controller/action/1,2,3,4,5.

Thank you for your help!

Martin
