Forum: Ruby on Rails Facing a problem with rails version

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
27c1d5470227584808ba5d88c022e894?d=identicon&s=25 Charanya Nagarajan (charanya)
on 2009-04-17 13:41
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?
44391f94143d129bdfdcd8b52aa51674?d=identicon&s=25 Schalk Neethling (Guest)
on 2009-04-17 14:09
(Received via mailing list)
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
This topic is locked and can not be replied to.