search for: set_default_handl

Displaying 1 result from an estimated 1 matches for "set_default_handl".

Did you mean: set_default_handler
2006 Feb 18
0
activerecord connections with xmlrpc
...# etc. etc. ) end # given a user id get the user name def get_username(id) u = User.find(id) return u.username end s = XMLRPC::Server.new(8080) s.add_handler("get_username") do |user_id| get_username(user_id) end s.set_default_handler do |name, *args| raise XMLRPC::FaultException.new(-99, "Method #{name} missing" + " or wrong number of parameters!") end --------------------------------------------------------------------- client code: ------------------------------------...