> You have to remember that Rails reloads it's controllers on every > request in development mode. That's probably your problem. > > Couple of options I see: > > 1. Move the code into a file that won't be reloaded on every request > (lib/ for example ?) > 2. Use BackgrounDRb as you suggest > 3. Web Services or something > Oh..yes, i forgot that. After running the stuff in production mode, it worked nicely. so i guess it would be ok to use rubyinline in rails.