Jeroen Houben wrote:
> Hi,
>
> What's the most reliable way to find out the physical file location when
> given a request.params['PATH_INFO'] ?
> I guess I need to know mongrel's document_root or something similar.
Ah found something myself. This seems to work for me:
def initialize(options = {})
@observe_path = '/flvstream'
@docroot = options[:cwd] + "/" + options[:docroot]
end
Jeroen
_______________________________________________
Mongrel-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/mongrel-users