I have a model
class Car
@@RPCServer = XMLRPC::Client.new("localhost", "/", 8080)
def self.count
@@RPCServer.call("cars.count")
end
end
If server is not running on localhost:8080 I've got a Errno::ECONNREFUSED error.
I want to display an error message to user, how can a handle this error?
Hi!
I want to create a framework fo rails application. It will be a rails application but packed into gem (like a Radiant CMS).
It must work like this:
gem install cmsframework
and then:
cmsframework the_app
After that we have a sceleton of rails app without any controllers etc.. - all controllers loaded from cmsframework gem.
If I want to…
I have a model
class Car
@@RPCServer = XMLRPC::Client.new("localhost", "/", 8080)
def self.count
@@RPCServer.call("cars.count")
end
end
If server is not running on localhost:8080 I've got a Errno::ECONNREFUSED error.
I want to display an error message to user, how can a handle this error?
I have a class like this:
class Router :: Mongrel::HttpHandler
def process(req, res)
status, header, body = [200, {"Content-type"="text/html"}, Model.all.to_xml]
res.start(status) do |head, out|
header.each_pair { |key, value| head[key] = value }
out.write body
end
end
end
It's an server and I use an…
Kyle has a good post on how to modify the size and number of WebCenter Content (WCC) trace files.
His post reminded me I have been meaning to write a post on WCC trace sections for a while.
searchcache - Tells you if you query was found in the WCC search cache.
searchquery - Shows the processing of the query as it…