# More than one parameter in URL

**URL:** <https://www.ruby-forum.com/t/more-than-one-parameter-in-url/181313>\
**Category:** Rails\
**Created:** [January 9, 2010, 12:33pm UTC](https://www.ruby-forum.com/t/more-than-one-parameter-in-url/181313 "2010-01-09T12:33:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Szymszy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a8b319/32.png) [@Szymszy](https://www.ruby-forum.com/u/Szymszy)\
**Post date:** [January 9, 2010, 12:33pm UTC](https://www.ruby-forum.com/t/more-than-one-parameter-in-url/181313/1 "2010-01-09T12:33:03Z")

</div>

Hello.

I’m trying to make my site work with OAI-PMH (http://  
[oai.rubyforge.org/](http://oai.rubyforge.org/)). Whilst running the tests on [http://re.cs.uct.ac.za/](http://re.cs.uct.ac.za/)  
it seems that it can’t process more than two parameters. For example:

[http://mysite.com/oai?verb=Identify](http://mysite.com/oai?verb=Identify) works fine, but  
[http://mysite.com/oai?verb=Identify&test=tes](http://mysite.com/oai?verb=Identify&test=tes) end ups with an error  
with any second parameter

Processing OaiController#index (for 0.0.0.0:3030 at 2010-01-09  
00:47:21) [GET]  
Parameters: {“verb”=\>“Identify”, “test”=\>“tes”}

TypeError (can’t convert nil into Array):  
oai (0.0.12) lib/oai/provider/response.rb:67:in `-' oai (0.0.12) lib/oai/provider/response.rb:67:in `valid?’  
oai (0.0.12) lib/oai/provider/response.rb:31:in `initialize’  
…

Line 67 is: return false unless (@options.keys -  
self.class.valid\_options).empty?  
where, ofcourse, self.class.valid\_options is nil. But why?  
Any thoughts?
