Hi Everyone,

For most of my time working with Rails I have installed gems using a command like this from the command line:

sudo gem install blahblah

and this has worked great.

Now I am seeing more and more install instructions for gems that call for adding a line like

config.gem 'blahblah'

to your config/environment.rb file and then entering the following:

rake gems:install

Why the difference? What are the advantages to the second approach? If you have have multiple lines in config/environment.rb file like:

config.gem 'abcdef'
config.gem 'xyzzzz'

and then run "rake gems:install" will existing gems be reinstalled or updated? If yes, how do you prevent this from happening?

I suppose these questions might fall into the "dumb" category but I don't know the answers and I'd like to learn more about how this works.

Thanks, Ken






--
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby

Reply via email to