[Nitro] Nitro::Dispatcher::ROOT and running nitro in a subdirectory...
Andrew Thompson
vagabond at cataclysm-software.net
Tue Apr 11 15:25:45 EDT 2006
Bryan Soto wrote:
> Yeah, my 0.29 isn't exactly standard either. :)
>
> I think this patch and setting
>
> Nitro::Router.strip_path = '/portion_of_path_to_remove_goes_here'
>
> in your run.rb file will do it. It routes correctly, so I'm hoping
> that everything else will work from there. You might need to
> re-install the gems though, depending on the changes you made.
>
> Let me know if it works or if it has any problems. Hopefully I can help. :)
>
> Bryan
This *kinda* works (you had a sub instead of a sub! in your patch). I
had to hack redirect too because it was redirecting to the document
root. It seems to otherwise work except that links are also incorrect. I
guess I'd have to dive into the template code to fix that bit...
Andrew
More information about the Nitro-general
mailing list