[Nitro] Arbitrary length URIs
john at oxyliquit.de
Tue Jun 6 12:08:27 EDT 2006
>>> def index(*fpath)
>> Which is almost the right way to do it :)
>> def show(*fpath)
> What's the difference?
The difference being (like you note later in this post) that
/repository/ is the same as /repository/index
>> 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 think I got confused by your last url, which is:
(note the /show/ here), and my assumption that you maybe didn't know
about that the index method gets mapped to /repository/.
> I had assumed that http://myssite.com/repository/ and
> http://myssite.com/repository/index both call the index method of
This is correct, yes.
Feel the love
More information about the Nitro-general