I want to have Rails 1.1 + Rails 1.0 on the same PC and be able to load my script with a different version each time. Is it possible? -- Posted via http://www.ruby-forum.com/.
Fully explain yourself if you want decent help -- Posted via http://www.ruby-forum.com/.
well, you could do a few things...here is just my opinion. install rails systemwide as 1.1 (actually, 1.1.2 is now available). then for the apps you want to run as 1.0, run: rake rails:freeze:edge TAG=rel_1-0-0 inside your app directory. this will install rails local to the app (specifically, it installs rails to the vendor directory in your app) if you want to go back to the system install of rails: rake rails_unfreeze (normally this would be rake rails:unfreeze but that is a 1.1+ thing apparently) for more options, run rake -T in your app directory hope this helps. On 4/11/06, r00by n00by <a52p8cwbpjz91m7@jetable.net> wrote:> > I want to have Rails 1.1 + Rails 1.0 on the same PC and be able to load > my script with a different version each time. Is it possible? > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060411/69e9ffb2/attachment.html
You can do this quite easily with Instant Rails, as each is a stand-alone ''package''. Can''t have both running at the same time, though. hth, Bill ----- Original Message ----- From: "r00by n00by" <a52p8cwbpjz91m7@jetable.net> To: <rails@lists.rubyonrails.org> Sent: 2006-04-11 7:14 AM Subject: [Rails] Two versions of Rails on one PC> I want to have Rails 1.1 + Rails 1.0 on the same PC and be able to load > my script with a different version each time. Is it possible? > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Instant Rails looks like a good idea if I hadn''t already have Rails and MySql installed. I installed Rails 1.1.2 and tried running my app. Of course there were some errors as expected. Then I ran "rake rails:freeze:edge TAG=rel_1-0-0" and it seems that I got the old version back now. But there is one strange thing - while running a test under 1.1.2 I got this warning: don''t put space before argument parentheses This was the first time I got it. After returning to 1.0 I expected this warning to be gone, but it''s still there. Does it mean that the old version was not restored completely? -- Posted via http://www.ruby-forum.com/.