how to ri-rdoc for Ruby on suse

Hello guys,

This is suse SLES 9.2.

I want to get ri working for all users on this system. I used

gem rdoc --all --ri

to generate documentation and it went on doing it successfully.

Then I tried

ri Array 

It shows following message :

Nothing known about Array

Therefore I ran "rdoc --ri" as that user and after a long time it generated the documentation and this time "ri Array" did show some result (Same as when you do "man <command>"

but this works only for that user and for other users they always get Nothing known about array.

Is there anyway to generate documentation which would be globally accessible using ri command?

I don't use ruby or gems much, so any help in this matter is really appreciated.

Thanks:b: