[Nitro] BUG: Using Nitro::Controller as main controller breaks template_root

zimba-tm zimba.tm at gmail.com
Tue Dec 20 11:27:56 EST 2005


Here are the files to reproduce the bug.

Put index.xhtml in public/ and public/child/.

On 20/12/05, zimba-tm <zimba.tm at gmail.com> wrote:
> Hi Chris,
>
> I'm using glycerin at the moment. But I didn't had time to really test
> this behavior. I'll try to come up with a test case today.
>
>
> On 19/12/05, Chris Farmiloe <chris at motionpath.com> wrote:
> >
> > Can't seem to replicate this zimba? I get taken to the correct xhtml.
> >
> > what version are you using?
> >
> >
> >
> > chrisfarms.
> >
> >
> >
> > On 19 Dec 2005, at 21:38, zimba-tm wrote:
> >
> > Sorry I don't have the time to debug this right now but I still wantto
> > report it.
> > ========== test case =========
> > require 'nitro'
> > class MainController < Nitro::Controllerend
> > class ChildController < Nitro::Controllerend
> > Nitro::Server.map = {  '/child' => ChildController,  '/' => MainController}
> > Nitro.run
> > =========================
> > === pulic folder ===index.xhtmlchild/  index.xhtml============
> > Replace MainController with Nitro::Controller in Server.map.Goto to
> > http://localhost:9999/child with your browser.
> > nitro will use public/index.xhtml instead of public/child/index.xhtml
> > --Cheers,  zimba
> > http://zimba.oree.ch
> > _______________________________________________
> > Nitro-general mailing list
> > Nitro-general at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/nitro-general
> >
> > _______________________________________________
> > Nitro-general mailing list
> > Nitro-general at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/nitro-general
> >
> >
> >
>
>
> --
> Cheers,
>   zimba
>
> http://zimba.oree.ch
>


--
Cheers,
  zimba

http://zimba.oree.ch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: run.rb
Type: application/x-ruby
Size: 264 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/nitro-general/attachments/20051220/b7854091/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: index.xhtml
Type: application/xhtml+xml
Size: 103 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/nitro-general/attachments/20051220/b7854091/attachment.xhtml 


More information about the Nitro-general mailing list