Rails with / Without rdoc and ri

Make –no-ri –no-doc default for gem install

Add: gem: --no-document

To: ~/.gemrc

Remove ri and rdoc of installed gems

rm -R gem_env_dir/doc

Source: Stackoverflow Stackoverflow