[Nitro] Problem with controller arguments

George Moschovitis george.moschovitis at gmail.com
Wed Aug 17 14:58:02 EDT 2005


Hello,

On 8/17/05, Miikka Koskinen <arcatan at gmail.com> wrote:
> Hello!
>... 
> Is this possible?

Dunno why you would do that, but try something like this:

def my_action(foo, bar)
  ..
end
action :my_action, :route => /my_action\/(.*)\/(.*)/, 'foo' =>
'foodefault', 'bar' => 'bardefault'

you use a regular expression in the route. The above is an example, it
does not much exactly what you want, but I am sure you can work this
out yourself with a nice regexp reference.

regards,
George.



-- 
http://www.gmosx.com
http://www.navel.gr
http://www.nitrohq.com




More information about the Nitro-general mailing list