# Activate a gem

**URL:** <https://www.ruby-forum.com/t/activate-a-gem/159401>\
**Category:** Rails\
**Created:** [February 4, 2009, 8:44am UTC](https://www.ruby-forum.com/t/activate-a-gem/159401 "2009-02-04T08:44:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zeba-momin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/8e7dd6/32.png) [@zeba-momin](https://www.ruby-forum.com/u/zeba-momin)\
**Post date:** [February 4, 2009, 8:44am UTC](https://www.ruby-forum.com/t/activate-a-gem/159401/1 "2009-02-04T08:44:22Z")

</div>

hi…  
I have gems actionmailer 2.0.2 and actionmailer 2.1.0 both installed an  
my m/c…  
But I want the gem actionmailer 2.0.2 to be used by my rails  
application…  
How do I do this???  
Thank you…

---

<div class="post-metadata">

**Author:** ![zeba-momin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/8e7dd6/32.png) [@zeba-momin](https://www.ruby-forum.com/u/zeba-momin)\
**Post date:** [February 4, 2009, 12:47pm UTC](https://www.ruby-forum.com/t/activate-a-gem/159401/2 "2009-02-04T12:47:49Z")

</div>

Hi,

Try this in your config/environment.rb  
config.gem “actionmailer”, :version =\> ‘2.0.2’

If you wanna use 2.0.2 for the whole app then it’s  
RAILS\_GEM\_VERSION = ‘2.0.2’

## ciao, tom

Thomas R. “TomK32” Koll \<\> [http://ananasblau.com](http://ananasblau.com)  
just a geek trying to change the world  
[TomK32 (Thomas R. Koll) · GitHub](http://github.com/TomK32)

---

<div class="post-metadata">

**Author:** ![zeba-momin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/8e7dd6/32.png) [@zeba-momin](https://www.ruby-forum.com/u/zeba-momin)\
**Post date:** [February 4, 2009, 1:11pm UTC](https://www.ruby-forum.com/t/activate-a-gem/159401/3 "2009-02-04T13:11:21Z")

</div>

Thomas r. Koll wrote:

> Hi,
> 
> Try this in your config/environment.rb  
> config.gem “actionmailer”, :version =\> ‘2.0.2’
> 
> If you wanna use 2.0.2 for the whole app then it’s  
> RAILS\_GEM\_VERSION = ‘2.0.2’
> 
> ## ciao, tom
> 
> Thomas R. “TomK32” Koll \<\> [http://ananasblau.com](http://ananasblau.com)  
> just a geek trying to change the world  
> [TomK32 (Thomas R. Koll) · GitHub](http://github.com/TomK32)

Hey…  
Thank you so much…  
that works gr8…!!!  
thanks again…
