[Nitro] Arbitrary length URIs

Jon A. Lambert jlsysinc at alltel.net
Tue Jun 6 07:16:03 EDT 2006


I want to pass the URI parameters as an array to my action, because it's a 
file path and can be an arbitrary length.

http://myssite.com/repository/index/dir_1/dir_2/dir_n

In Rails I would do:
  map.connect 'repository/index/*path', :controller => "repository", :action 
=> "index"

I tried this in my repository controller
def index(*fpath)
end

And am I going to have problems with periods?   Is something going to 
intercept what look like file requests before they get to my controller?
As in..
http://myssite.com/repository/show/dir_1/dir_2/dir_n/file.txt


Thanks

J. Lambert





More information about the Nitro-general mailing list