The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

I think you are getting confused with AJAX. Ruby and JS are generally used in a complementary way (Ruby for backend, JS for frontend). AJAX is just a very very specific use of Ruby generally found in Rails, and a very small amount of Ruby code is used like this.

Like any language, (such as PHP, .NET based "languages", etc etc), you should always practice the normal things of validating all of your input. This doesn't just apply to Ruby, it applies to any language. Generally speaking security isn't a level language things, but rather a framework/application level issue (OK, Some exceptions here as PHP is very specific to web programming so in someways it crosses into the framework releam by design)

Generally speaking, Ruby and JS are very different. buy looking at what you've stated, you are pointing out issues that are relating to the implementation of the JS VM across different browsers. Generally, with ruby, most people use the C implementation of the Ruby VM, so Ruby doesn't suffer these issues