[Nitro] confused about app.dispatcher.root

George Moschovitis george.moschovitis at gmail.com
Sat Aug 18 11:36:29 EDT 2007


>
> class StoreController < Nitro::Controller


no need to extend Nitro::Controller (in fact there is no Nitro::Controller
class, it is Raw::Controller now)


  def index
>     @time = Time.now
>     redirect 'catalog'


where is catalog defined?

  end
>
>   # ...
>
> end
>
> app = Application.new
> app.dispatcher.root = StoreController


app.start ???




...the error I'm getting is:
>
>
> DEBUG: Rendering '/status_500'
> ERROR: Error while handling StoreController#index(status_500)
> ERROR: wrong number of arguments (1 for 0)



please show as the  error BEFORE 'Rendering /status_500'.

So am I doing the wrong thing by setting app.dispatcher.root
> directly to my controller?
>

you are doing this right.

-g.


-- 
http://www.me.gr
http://phidz.com
http://blog.gmosx.com
http://cull.gr
http://www.joy.gr
http://nitroproject.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20070818/a57c7eff/attachment-0001.html 


More information about the Nitro-general mailing list