Ruby issues and backgroundrb

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 fawn and i decided to upgrade it to 1.8.6 because that is what i am using in windows (instant rails). I grab a new package from ruby-lang.org and install it (source package).

Trouble begins … nothing works fine. There is no rails !!!. I grab rubygems, install that and install rails and other gems that i need. Now i open script/console and it says


/usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require': no such file to load -- readline (LoadError)

After a lot of effort and searching on the web, I found instructions here that fix it. Steps 27-33 if you wanna skip everything else.

Now to backgroundrb: It is so damn tough to figure out where to install backgroundrb from. I think I had installed it from rubyforge or someplace and turns out if was an older version. I finally grabbed the latest version from trunk from here and looks like it is. I could create an example worker and call it from my application controller and pass some data back from worker to the application using the results hash.

I find the backgroundrb documentation here to be quite useful. Next I will try to do some MP3 encoding stuff using backgroundrb

Popularity: 14% [?]

find this blog feedworthy. Click on the number to subscribe!

Related Posts

Ruby on rails learning curve!

Finding a webhost !

About

Comments

Hey, you too a Ubuntu + Rails fan ! Nice, nice :-)

Loved the content on Muziboo. Good effort.

cheers
nilesh

Leave a comment

(required)

(required)