On Apr 1, 7:39 am, vimal <[email protected]> wrote:
> In application.rb, i have,
> ---------------------------------------------------------------------------
> ---------
> class ApplicationController < ActionController::Base
> require 'xmlrpc_server'
>
> @hostname = "127.0.0.1"
> @port = 8080
> @server = ServerProxy.new(@hostname, @port)
>
> session[:server] = @server ===> i get the error for this line
>
> end
> ---------------------------------------------------------------------------
> ---------
> But i keep on getting the error
> Symbol as array index
>
> Am i going wrong anywhere, please suggest
Yes - the session doesn't exist at that point (this code is run when
the application is started, not when a request is being processed
(which is the only time a session is available).
Fred
>
> Thanks and Regards,
> Vimal Das
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---