I think what you've said is a little misleading. Yes, Ruby is a scripting language but it isn't used _in_ webpages, it's used to generate web pages.
What I would do, next time you get the message, is to open up Activity monitor, find the ruby process, select it, and click info. It should tell...