[Nitro] default js rendering

Dimitri Aivaliotis aglarond at gmail.com
Thu Jun 22 17:12:20 EDT 2006


Has anybody else noticed this?

D, [2006-06-22T23:00:25.428061 #3634] DEBUG -- : Rendering '/news'.
D, [2006-06-22T23:00:25.428820 #3634] DEBUG -- : Compiling action
'NewsController#index'
D, [2006-06-22T23:00:25.430394 #3634] DEBUG -- : Compiling template
'NewsController: ./templates/news/index.xhtml'
D, [2006-06-22T23:00:25.772553 #3634] DEBUG -- : Rendering
'/js/prototype.js'.
E, [2006-06-22T23:00:25.774243 #3634] ERROR -- : No action for path
'/js/prototype.js' on 'Nitro::Controller'
D, [2006-06-22T23:00:25.774729 #3634] DEBUG -- : Rendering '/error'.
D, [2006-06-22T23:00:25.775546 #3634] DEBUG -- : Compiling action
'Nitro::Controller#error'
D, [2006-06-22T23:00:25.776972 #3634] DEBUG -- : Compiling template
'Nitro::Controller:
~/Projects/nitro/repo/nitrohq/nitro/lib/../proto/public/error.xhtml'
D, [2006-06-22T23:00:25.854314 #3634] DEBUG -- : Rendering '/js/effects.js'.
E, [2006-06-22T23:00:25.855891 #3634] ERROR -- : No action for path
'/js/effects.js' on 'Nitro::Controller'
D, [2006-06-22T23:00:25.856354 #3634] DEBUG -- : Rendering '/error'.
D, [2006-06-22T23:00:25.886745 #3634] DEBUG -- : Rendering
'/js/dragdrop.js'.
E, [2006-06-22T23:00:25.896419 #3634] ERROR -- : No action for path
'/js/dragdrop.js' on 'Nitro::Controller'
D, [2006-06-22T23:00:25.896990 #3634] DEBUG -- : Rendering '/error'.
D, [2006-06-22T23:00:27.065704 #3634] DEBUG -- : File
'./templates/news/index.xhtml' changed


all produced from one hit to /news, which is mapped to NewsController.  '/'
maps to Nitro::Controller.  This behavior has changed from 0.29.0 to 0.30.0,
and is still present in devlab.  It happens with both Webrick and Mongrel.

Note that when there is no 'templates/news/index.xhtml', the error does not
occur.  Could it have something to do with the following?

from RELEASES:

* More flexible Script generator, the developer can use most of
  its features without a Client subclass.

I've not used 'gen' to setup my project, and I've got:

Glue::Template.root = './templates'


Yes, I can diff the sources and see what's changed.  I was just curious if
anybody else had noticed this behaviour, and could provide some immediate
"aha!" feedback.

- Dimitri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060622/4bcab23d/attachment.html 


More information about the Nitro-general mailing list