[Nitro] Arbitrary length URIs

Jon A. Lambert jlsysinc at alltel.net
Tue Jun 6 10:13:00 EDT 2006

Jonathan Buch wrote:
> Hi,
>> I tried this in my repository controller
>> def index(*fpath)
>> end
> Which is almost the right way to do it :)
> def show(*fpath)
> end

What's the difference?

> should be used (like your url below) because mapping *fpath to index
> isn't going to work if you have a url like:
> /repository/dir_1/ etc (because it will look for a method called
> `dir_1` in the controller.

My urls aren't like..
I have the action, 'index', in the url.

I had assumed that http://myssite.com/repository/ and 
http://myssite.com/repository/index both call the index method of 

J. Lambert

More information about the Nitro-general mailing list