rdoc and ri

I installed rails and it runs perfectly using the following command

sudo gem install rails

but i was supposed to run ...

sudo gem install rails --no-rdoc --no-ri

this is to avoid memory problems

I assume that that rdoc and ri could be removed or can i just run the
command as I should have and would that remove rdoc and ri

Any help appreciated thanks

you could uninstall then reinstall it the way you want.
-R