logo       

Re: Catching a list of variables with a Controller: msg#00019

lang.ruby.camping.general

Subject: Re: Catching a list of variables with a Controller

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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise