Do I need to config.gem a gem that's already been unpacked?
In theory, no - you don't need to as far as you require it somewhere else by using the require method. In other words, yes, add it to your configuration as well. If you do so, Rails will find and require it for you.
It comes in very handy if you later distribute your app as open source, or someone else comes on to maintain it. You've got one handy list of all the gems your app requires, which versions, etc. Helps to self-document your app.
Do I need to specify any attributes of the gem I need to add except the gem name and version..
i.e.
Rails::Initializer.run do |config| config.gem('paperclip' , :version => '~> 2.3.3') config.gem('shoulda' , :version => '~> 2.11.1') config.gem('factory_girl' , :version => '~> 1.3.1') config.gem('authlogic' , :version => '~> 2.1.5') config.gem('cancan' , :version => '~> 1.1.1'
end
and if so, from where I can know the other attributes. ?