[Nitro] Can't set initialize for controller

George Moschovitis george.moschovitis at gmail.com
Wed Aug 31 05:42:51 EDT 2005


Hello,

You probably have to call super from the initialize method.

-g.

On 8/31/05, Peter Abrahamsen <rainhead at gmail.com> wrote:
> Good Morning,
> 
> So, I'm just starting to write my first Nitro app, and am a little
> stumped by this. I have a default controller (Nitro.run Game).
> Everything's just peachy until I define initialize for that
> controller, which seems to be a normal thing to do. Nitro throws
> errors like this:
> 
> ERROR: Error while handling '/'.
> ERROR: undefined method `session' for nil:NilClass
>    /usr/lib/ruby/gems/1.8/gems/nitro-0.22.0/lib/nitro/render.rb:
> 167:in `session'
>    /usr/lib/ruby/gems/1.8/gems/nitro-0.22.0/lib/nitro/flash.rb:82:in
> `flash'
>    (eval):5:in `index_action'
> ... etc
> 
> ideas? pointers?
> 
> Thanks, Peter
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
> 


-- 
http://www.gmosx.com
http://www.navel.gr
http://www.nitrohq.com




More information about the Nitro-general mailing list