# Will Rails 2.0 support my 1.2 rails codes

**URL:** <https://www.ruby-forum.com/t/will-rails-2-0-support-my-1-2-rails-codes/134798>\
**Category:** Rails\
**Created:** [April 15, 2008, 8:24am UTC](https://www.ruby-forum.com/t/will-rails-2-0-support-my-1-2-rails-codes/134798 "2008-04-15T08:24:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahil](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ebca7d/32.png) [@rahil](https://www.ruby-forum.com/u/rahil)\
**Post date:** [April 15, 2008, 8:24am UTC](https://www.ruby-forum.com/t/will-rails-2-0-support-my-1-2-rails-codes/134798/1 "2008-04-15T08:24:17Z")

</div>

Hello,

I am working with rails 1.2, since many books are available for this. I  
am also learning few new things with rails 2.0 also.

I am just confused with this question.

Can i deploy my 1.2 codes on the rails 2.0 framework. I do not know what  
happens sine i have not yet updated my gens with Rails 2.0.2. Will i be  
able to work with my existing codes, if i update my gems with rails  
2.0.2.

Pl. guide me…

Thanks

---

<div class="post-metadata">

**Author:** ![rahil](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ebca7d/32.png) [@rahil](https://www.ruby-forum.com/u/rahil)\
**Post date:** [April 15, 2008, 8:49am UTC](https://www.ruby-forum.com/t/will-rails-2-0-support-my-1-2-rails-codes/134798/2 "2008-04-15T08:49:38Z")

</div>

Yeah, you should be fine.

If your code calls for 1.2, then it must have the 1.2 gems installed.  
That’s all.

They don’t “conflict” terribly much, although installing 2.02 means  
you actually change some of the dependencies for 1.2, so you’ll have  
to change the boot.rb file so it no longer uses require\_gem ~~~~~ and  
instead uses gem ~~~~~

Hope that helps.

Julian.

Learn Ruby on Rails! Check out the FREE VIDS (for a limited time)  
VIDEO #4 coming soon!  
[http://sensei.zenunit.com/](http://sensei.zenunit.com/)

---

<div class="post-metadata">

**Author:** ![rahil](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ebca7d/32.png) [@rahil](https://www.ruby-forum.com/u/rahil)\
**Post date:** [April 15, 2008, 9:00am UTC](https://www.ruby-forum.com/t/will-rails-2-0-support-my-1-2-rails-codes/134798/3 "2008-04-15T09:00:50Z")

</div>

By and large the answer is yes. Do make sure however that you have  
squashed any deprecation warnings. You may also have to install  
plugins for functionality that was extracted from core  
(classic\_pagination, acts\_as\_list etc…), and also check that any  
plugins you are using also work on 2.0.

Fred

---

<div class="post-metadata">

**Author:** ![rahil](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ebca7d/32.png) [@rahil](https://www.ruby-forum.com/u/rahil)\
**Post date:** [April 15, 2008, 11:27am UTC](https://www.ruby-forum.com/t/will-rails-2-0-support-my-1-2-rails-codes/134798/4 "2008-04-15T11:27:12Z")

</div>

and a final word about installing Rails 2.0: It will NOT remove 1.2 😉  
They will co-exist (wih gems, old versions always stay in the system  
until explicitly uninstalled)

And if you don’t change RAI’L\_GEM\_VERSION in your environment.rb file,  
your project will continue to use 1.2

So essentially, just install 2.0, see if it works, if not, see if you  
can fix it without too much trouble. if not, set back the version to  
1.2 (i assume its a “play around app” to learn struff?) and start your  
next project directly on 2.0

On 15 Apr., 09:00, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
