Hi Ken,

Here are some links that should answer your questions:

http://guides.rubyonrails.org/2_2_release_notes.html#configgems
http://ryandaigle.com/articles/2008/4/1/what-s-new-in-edge-rails-gem-dependencies

Let me know if you come across any better references.


justin

On Jan 27, 10:39 am, Ken Hudson <[email protected]>
wrote:
> 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