# Facing a problem with rails version

**URL:** <https://www.ruby-forum.com/t/facing-a-problem-with-rails-version/165787>\
**Category:** Rails\
**Created:** [April 17, 2009, 1:41pm UTC](https://www.ruby-forum.com/t/facing-a-problem-with-rails-version/165787 "2009-04-17T13:41:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![charanya](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/b5e925/32.png) [@charanya](https://www.ruby-forum.com/u/charanya)\
**Post date:** [April 17, 2009, 1:41pm UTC](https://www.ruby-forum.com/t/facing-a-problem-with-rails-version/165787/1 "2009-04-17T13:41:23Z")

</div>

I hava an app completely developed in rails 2.1.3 and i have another app  
developed in Rails 2.3.2. Now I have to run the rails app 2.1.3 in my  
system which has rails 2.3.2. But i am not able to run it.it gives  
versioning errors.I changed in environment.rb too Then too throwing  
errors.

Can Somebody help me in this?

---

<div class="post-metadata">

**Author:** ![charanya](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/b5e925/32.png) [@charanya](https://www.ruby-forum.com/u/charanya)\
**Post date:** [April 17, 2009, 2:09pm UTC](https://www.ruby-forum.com/t/facing-a-problem-with-rails-version/165787/2 "2009-04-17T14:09:32Z")

</div>

Hi Charanya,

Are you freezing your apps before deploying them? Adding the appropriate  
version in your environment.rb is good but, you also need to freeze your  
apps so it deploys with it’s version of Rails.

Very simple to do, just use the Rake command and add the version you  
want to freeze to. The last might not be needed as it should be piccked  
up from the environment.rb but it couldn’t heard.

rake rails:freeze:gems VERSION=2.1.3

HTH,  
Schalk
