Ruby on Rails is the foundation for server-side code in Ruby.
Chrome extensions are written in pure Javascript.
And your never meet.
You might want to use CoffeeScript, which is a Ruby-like language that converts to Javascript.
(I have never tried writing Chrome extensions in it, but I assume that it will work correctly)
SLaks source share