On Jan 5, 4:21 am, Ram email@example.com wrote:
oh ok… so what about the version in my mac? will that get overridden?
will my existing apps know which Rails to use? I will have to change
the version number in the environment config file if im using edge
First off, you may not want to use edge. You can get basically any
version of rails from git. It might be sensible to stick to the 2.2
stable branch if you were previously on 2.2 (or 2.1 stable if you were
on 2.1 etc…). If you’ve never upgraded rails you may have a slightly
rocky road as the version that came with leopard was 1.2 which is a
fair few version numbers behind.
The way I tend to do things is to freeze rails into the app: the app
has its private copy of rails in vendor/rails which you can patch/
modify as much as you want without affecting other apps. If you git
clone rails into vendor rails your app will start using that version,
no matter what environment.rb says
You could also just edit the rails that came with your machine (gem
which foo tells you where the gem called foo is installed if my memory
is correct) but that doesn’t sound very nice. I’d certainly recommend
freezing rails into your app before you do anything (whether it’s
freezing the version you’re currently using or edge rails).