# Unable to install ruby gems 2.3.5

**URL:** <https://www.ruby-forum.com/t/unable-to-install-ruby-gems-2-3-5/187812>\
**Category:** Rails\
**Created:** [April 29, 2010, 5:46pm UTC](https://www.ruby-forum.com/t/unable-to-install-ruby-gems-2-3-5/187812 "2010-04-29T17:46:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pradeep\_236](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f9ae1b/32.png) [@pradeep\_236](https://www.ruby-forum.com/u/pradeep_236)\
**Post date:** [April 29, 2010, 5:46pm UTC](https://www.ruby-forum.com/t/unable-to-install-ruby-gems-2-3-5/187812/1 "2010-04-29T17:46:14Z")

</div>

Hi,

When I try to add generator to controller, I got error as “Missing the  
Rails 2.3.5 gem. Please `gem install -v=2.3.5 rails`, update your  
RAILS\_GEM\_VERSION setting in config/environment.rb for the Rails version  
you do have installed, or comment out RAILS\_GEM\_VERSION to use the  
latest version installed.”

Can somebody please let me know how to install rails gem 2.3.5  
successfully on a window machine

Thanks in advance for your help  
apr

---

<div class="post-metadata">

**Author:** ![pradeep\_236](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f9ae1b/32.png) [@pradeep\_236](https://www.ruby-forum.com/u/pradeep_236)\
**Post date:** [April 30, 2010, 7:46pm UTC](https://www.ruby-forum.com/t/unable-to-install-ruby-gems-2-3-5/187812/2 "2010-04-30T19:46:05Z")

</div>

Hi  
You have to type following from command prompt  
rails --version  
Probably that version not equal with the veriosn showing in  
config/environment.rb as RAILS\_GEM\_VERSION.

So you have to install 2.3.5 rails by  
gem install rails -v=2.3.5 OR simply gem install rails  
from command prompt

Sijo
