upgrading rails to 2.1 windows
|
|
Is there a procedure to do this manually on windows ? |
|
|
Hi, Yes, you can update rails to 2.1.0 version. You must to run rubyconsole in ‘Start>Programs>BitNami Rubystack>Use BitNami Rubystack’ (right click>run as administrator) and type the following:
This action will update actionpack, actionmailer, activeresource and rails gems to 2.1.0 version. I hope it helps you. Cheers, |
|
|
Is there anything else I need to do…I had a working app – I did a ruby gems update and a gem update rails. Did I make a mistake by updating the gems ? is there an easy way to correct this ? Exiting |
|
|
Hello thunderkel, Can you check if you have the constant RAILS_GEM_VERSION defined in config/environment.rb ? You should modify it to be: If it doesn’t work with that change you can try to update rubygems by calling: Have you any “config.gem” call in your code ? |
|
|
Just came to the forum to ask rails 2.1 question :-). But I need something extra: My PC, where I need rails 2.1 is not (and never will be) connected to Internet. So I need to move downloaded gem to the PC first and then install it with -l switch. So, what else should I download to have rails 2.1 working within BitNami Stack without headache? Thank you in advance. |
|
|
Yes, these are the steps to upgrade rails without internet connection. You should not have any problem but you can post here and we will try to reply your question :) |
|
|
Thank you for reply. Trying to clarify my concern regarding internetless rails 2.1 installation. 1. Should I upgrade to 1.1-1 (which is NOT rails 2.1) first? 2. Has the Stack some extra stuff non-recognizible by the standard gem command, so I would not notice potential problems, keeping Stack-specific things non-upgraded to comply with Rails 2.1. It will be difficult to catch the problem later. |
|
|
Hi, See below for answers to your questions
No, it is not necessary.
I think that you should not have any problem upgrading rails 2.1. I only typed “gem update rails” in the rubyconsole and everything runs well. You have take into account the previous Carlos post, you should modify the RAILS_GEM_VERSION in your config/environment.rb configuration file. I hope it helps. |
|
|
Tnank you. |
