I'm using camping with reststop to do a html front end for sending
pre-defined messages to different devices (puts will work) depending on the
time (will parse cron).  No real deadline.

Works great up to now, much fun, forgot to sleep.

Problem is when I pass a URL of the form /device/1/ping without a "Ping"
controller method.  It will send me a "501 Not Implemented".  Interestingly
enough, /device/1/1/ping will give me "404 Not Found" which I have properly
handled.

So my question are:
In what part of the code can I catch the 501?
How can I implement a catch-all controller method?
Who's giving me the nicely formated web page when the 501's happening?
Where could I have found that out?
If I stop using reststop, will the problem go away?

Attached is what I have worked up till now.  Has a postamble, will work with
webrick.

Attachment: ctd.rb
Description: Binary data

_______________________________________________
Camping-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to