Catching a list of variables with a Controller

Jonas Pfenniger zimba.tm at gmail.com
Wed Nov 15 04:58:34 EST 2006


Hi Boris,

welcome to Ruby and Camping :)

Camping doesn't support nested regexp groups like ((\w+)\/) so you'll
have to do it differently. Your second approach is right. You can also
use the multiple arguments input if you don't want to split the string
with the commas. Like ?tag=one&tag=two&tag=three. That will give you a
['one', 'two', 'three'] array in input.tag.

-- 
Cheers,
  zimbatm

http://zimbatm.oree.ch


More information about the Camping-list mailing list