Is there a Ruby/Rails library that I can generate word clouds (output should be an image file) like in Wordle.net?
Why does it have to be a Ruby/Rails library?
You could use JQCloud, which is a nice JQuery plugin to build word and tag clouds.