| slapaho | seems ambiguous to not use self. because when you read the code, you have to think 'wait did i want th elocal var here, or the instance method?' |
| GarethAdams | the ambiguity would be using a local variable to cover up the object which is already in self |
| slapaho | hmm |
| kedare_ | oGMo, i can upload the server as a zip , if you want (its just 1 file with 1 cgi) |
| oGMo | kedare_: eh paste them someplace? |
| slapaho | but if you're writing a method and wanna use a local var named params... you have to know params is a rails provided instance method for a controller you dont always know those |
| kedare_ | oGMo, oki |
| oGMo | like the paste bin in the topic |
| kedare_ | oGMo, http://rafb.net/p/6c3bEm86.html (comments are in french , sorry ^^) |
| oGMo | french isn't too tough to figure out ;) |
| patanisca | hey there! is there any easy way of listing all the subclasses of a given class? |
| oGMo | mm .. don't you need a servlet? |
| slapaho | gareth, you still here? i hav ean additional question... |
| kedare_ | oGMo, i just put the ruby.cgi on the www/ directory |
| slapaho | people have told me to access @ivars via self.ivar and wrap @ivars in a method accessor method now that makes great sense to me... so why not give params the same self. love ? self.params |
| oGMo | so i assume DocumentRoot actually makes a HTTPServlet::FileHandler for you |
| slapaho | so you *always* refer to an instance method in the same way, self. |
| oGMo | kedare_: paste your cgi..? |
| GarethAdams | slapaho: the advice was to wrap an instance method in accessors, not necessarily to use self. I'm almost certain of that |
| kedare_ | oGMo, i can access to the web server, and download images par exemple , its just all CGI are bugued :/ oGMo, ok |
| slapaho | well, you have a point... |
| kedare_ | oGMo, http://rafb.net/p/MVVgf927.html oGMo, you can access to the server here : http://kedare.ath.cx:8383/ |
| oGMo | oh hah you're not outputting anything |
| kedare_ | yes |
| slapaho | it just seems too easy to have a conflict if you use localvar and method (implying self.) |
| kedare_ | i know ^^ |
| oGMo | well then it's not seeing headers :) if you don't puts cgi.headers or whatever, you'll see that error even if you don't have any content to serve |