views:

27

answers:

1

by default bundler install gems into system root.
but I want to install gems into $HOME.
how can I do it?

+1  A: 

You need to edit your ~/.gemrc file and add to it:

gem: --local
yltsrc
`gemrc` file is a lot more awesome than people realize. `~/.gemrc` and `/etc/gemrc` can fix a lot of things.
tadman
the full solution is on the page http://wiki.railsplayground.com/railsplayground/show/How+to+install+gems+and+non+root+user
yltsrc