Librmpd & rails

Hi all!

I’m trying to create a mpd ruby on rails client. librmpd supports
callbacks. For example the “CURRENT_SONG_CALLBACK” callback. But If
there’s no request for a rails webpage, the callback isn’t triggered (of
course).

Does anyone have a way to overcome this problem? I thought about using
something like backgroundrb, but I can’t come up with a decent solution.

Does anyone have a good idea to make this work?

I found daemon_generator tonight. Does someone has any experience with
this?
I also read these slides:

which also seems a decent solution but it looks a bit separate from
rails.