ri duplicate entries

Hello,

Does anybody know why when I type, for example, 'ri form_for' ri comes
back with duplicate entries for form_for?

Now, I noticed that I have rails as an Ubuntu package and a gem. Is
the gem and the package the same thing?

Thanks for any ideas!