[Nitro] Problem with Nitro In Flames tutorial

Jos Backus jos at catnook.com
Thu Dec 22 16:36:02 EST 2005


On Thu, Dec 22, 2005 at 09:15:19PM +0000, Chris Farmiloe wrote:
> Quick fix... in your run file somewhere (after require 'nitro')
> do an
> 
> include Nitro
> 
> I'll add put the correct scope on the call in admin, but i think it  
> is handy/common to include the main nitro module in your projects anyway
> since you probably dont want to be prefixing everything with Nitro::
 
Thanks Chris. The problme with not prefixing is that Server is such a common
class name. If Nitro uses its own version it should use the proper include (or
prefix) rather than having the application do it.

Jos

> chrisfarms
> 
> 
> On 22 Dec 2005, at 19:58, Jos Backus wrote:
> 
> >http://www.nitrohq.com/view/Tutorials%3ANitro_In_Flames%3AChapter2
> >
> >First I fixed the Timestamped mixin not working. Now I see:
> >
> >E, [2005-12-22T11:52:22.736477 #24193] ERROR -- : Error while handling
> >'/admin/stylesheet/system'.
> >E, [2005-12-22T11:52:22.737191 #24193] ERROR -- : uninitialized  
> >constant
> >AdminController::Server
> >  /usr/local/lib/ruby/gems/1.8/gems/nitro-0.26.0/lib/../src/part/ 
> >admin/controller.rb:54:in
> >  `stylesheet'
> >    (eval):12:in `stylesheet_action'
> >    etc.
> >
> >-- 
> >Jos Backus
> >jos at catnook.com
> >_______________________________________________
> >Nitro-general mailing list
> >Nitro-general at rubyforge.org
> >http://rubyforge.org/mailman/listinfo/nitro-general
> 
> 

-- 
Jos Backus
jos at catnook.com



More information about the Nitro-general mailing list