You mentioned in a comment that you're using the Ruby package from archlinux's package manager. What you need for ri
is to install the ruby-docs
package:
$ pacman -S ruby-docs
I guess they separate the packages so people who don't want the docs can save on disk usage.