I've successfully applied an html[dir=rtl] attribute to the document based on locale, but any CSS that specifies handedness (margin-right, text-align, etc.) needs to be flipped explicitly.
There might be a Ruby on Rails equivalent to CSSJanus, Stylesheet Flipper could be an alternative.