Archive for the ‘ruby’ Category

ruby’s respond_to? for checking if a method exists

October 16th, 2007 by Prateek Dayal View Comments

Ruby has a function called respond_to? that can be used to seeing if a particular class or object has a method with a certain name. The syntax is something like User.respond_to?(‘name’) # returns true is method name exists otherwise false This came in very handy the other day when I wanted to send emails in [...]

Popularity: 81% [?]

Rubyworks on Debian Etch

October 13th, 2007 by Prateek Dayal View Comments

I recently got a new VPS account and it runs 64 bit Debain Etch (4.0). I installed rubyworks on it and the installation went pretty smooth. After that, I tried to move muziboo.com files to this server and a lot of error started happening in trying to get the app up. First one was muziboo@debian:~/muziboo/muz$ [...]

Popularity: 13% [?]

Ruby issues and backgroundrb

July 29th, 2007 by Prateek Dayal View Comments

Well on a fine saturday morning, i set a breakpoint in my code so that I can read the values of params being passed on a form submit (i wanted to try checkbox arrays) and I get an error saying breakpoints not supported in ruby-1.8.5. I had installed ruby sometime back on my ubuntu fiesty [...]

Popularity: 8% [?]