# Passing two or more parameters from mocha request

**URL:** <https://www.ruby-forum.com/t/passing-two-or-more-parameters-from-mocha-request/177368>\
**Category:** Ruby\
**Created:** [October 15, 2009, 6:54pm UTC](https://www.ruby-forum.com/t/passing-two-or-more-parameters-from-mocha-request/177368 "2009-10-15T18:54:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark42](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/65b543/32.png) [@mark42](https://www.ruby-forum.com/u/mark42)\
**Post date:** [October 15, 2009, 6:54pm UTC](https://www.ruby-forum.com/t/passing-two-or-more-parameters-from-mocha-request/177368/1 "2009-10-15T18:54:38Z")

</div>

I am trying to make a call to a function using a mocha request to a  
controller. The functions title is ‘index’ and the parameters are  
‘Parameter1’ and ‘Parameter2’. In javascript it would be  
SomethingController.index(Parameter1, Parameter2); [i think] but in  
ruby, i don’t know how to get the second parameter to pass correctly.  
Any help is appreciated.

```auto
 new MUI.Panel({
  id: 'something',
  title: 'something',
  contentURL: "<%=
SomethingController.r(:index,'Parameter1','Parameter2') %>",
.
.
.
.
.
```

JB
