.gemrc containing "gem: --no-ri --no-rdoc"

I put a .gemrc file in my home directory, the same directory my Gemfile is in, with just “gem: --no-ri --no-rdoc” but when i install gems the docs still get installed, causing me to have to wait

Gemfile should in the root directory of the rails application, not in
the users home directory, which is where .gemrc should be (at least
that is where mine is). So on Ubuntu linux it is
/home/username/.gemrc

Colin

Thanks Colin