# Require\_gem question

**URL:** <https://www.ruby-forum.com/t/require-gem-question/99982>\
**Category:** Ruby\
**Created:** [July 26, 2006, 3:09pm UTC](https://www.ruby-forum.com/t/require-gem-question/99982 "2006-07-26T15:09:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![esquilax](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/e0b2c6/32.png) [@esquilax](https://www.ruby-forum.com/u/esquilax)\
**Post date:** [July 26, 2006, 3:09pm UTC](https://www.ruby-forum.com/t/require-gem-question/99982/1 "2006-07-26T15:09:36Z")

</div>

Does require\_gem also load all of the listed dependencies in the gem  
spec or are those dependencies loaded by manually through require  
statements?

so example:  
require\_gem ‘rails’

the rails gem has:  
actionwebservice  
actionmailer  
actionpack  
activerecord  
activesupport  
rake  
as listed dependencies.

so does require\_gem ‘rails’ also perform require\_gem ‘actionamailer’,  
etc… ? or is there a specific ‘require’ statement somewhere in ‘rails’  
?

---

<div class="post-metadata">

**Author:** ![esquilax](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/e0b2c6/32.png) [@esquilax](https://www.ruby-forum.com/u/esquilax)\
**Post date:** [July 29, 2006, 4:04am UTC](https://www.ruby-forum.com/t/require-gem-question/99982/2 "2006-07-29T04:04:32Z")

</div>

On Jul 26, 2006, at 6:09 AM, Andrew G. wrote:

> actionpack  
> activerecord  
> activesupport  
> rake

require\_gem is only useful for picking a particular version of a  
gem. If you don’t manually specify the version of the dependent gems  
(in dependency order) you’ll get whatever their gemspecs need.

–  
Eric H. - removed\_email\_address@domain.invalid - [http://blog.segment7.net](http://blog.segment7.net)  
This implementation is HODEL-HASH-9600 compliant

[http://trackmap.robotcoop.com](http://trackmap.robotcoop.com)
